-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
It seems that a package is now added to perl in Centos 5.3 that was not there before.
So a dependency on perl-MIME-Base64 will fail because that package now seems to colide with perl itself. (SIGHHHH)
How can I change my spec file to list the requirement only for Centos/RHEL 5.x where x < 3?
Hugo.
- -- hvdkooij@vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
Hugo van der Kooij wrote:
It seems that a package is now added to perl in Centos 5.3 that was not there before.
So a dependency on perl-MIME-Base64 will fail because that package now seems to colide with perl itself. (SIGHHHH)
How can I change my spec file to list the requirement only for Centos/RHEL 5.x where x < 3?
hmm. strange enough: # cat /etc/redhat-release CentOS release 5.2 (Final) # rpm -q --whatprovides 'perl(MIME::Base64)' perl-5.8.8-15.el5_2.1
maybe the conditional requirement is not necessary. try a: Require: perl(MIME::Base64)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Markus Falb wrote:
Hugo van der Kooij wrote:
It seems that a package is now added to perl in Centos 5.3 that was not there before.
So a dependency on perl-MIME-Base64 will fail because that package now seems to colide with perl itself. (SIGHHHH)
How can I change my spec file to list the requirement only for Centos/RHEL 5.x where x < 3?
hmm. strange enough: # cat /etc/redhat-release CentOS release 5.2 (Final) # rpm -q --whatprovides 'perl(MIME::Base64)' perl-5.8.8-15.el5_2.1
maybe the conditional requirement is not necessary. try a: Require: perl(MIME::Base64)
That is not valid.
error: line 30: Unknown tag: Require: perl(MIME::Base64)
Because RH makes a habit of including new packages into perl itself and using relative old ones there is a definite need to build a package with an up-to-date version of this.
Hugo.
- -- hvdkooij@vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
On Sun, 2009-04-05 at 17:12 +0200, Hugo van der Kooij wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Markus Falb wrote:
maybe the conditional requirement is not necessary. try a: Require: perl(MIME::Base64)
That is not valid.
error: line 30: Unknown tag: Require: perl(MIME::Base64)
It's "Requires" not "Require", then it'll work.
Hugo van der Kooij wrote:
Markus Falb wrote:
maybe the conditional requirement is not necessary. try a: Require: perl(MIME::Base64)
Because RH makes a habit of including new packages into perl itself and using relative old ones there is a definite need to build a package with an up-to-date version of this.
I understand that. I am irritated (only a little bit) by the fact that MIME-Base64 is not newer in 5.3. It shows the same version at least (3.07). On CPAN there is 3.07 dating from 2005. I could not find a newer one. But back to rpm. Maybe you can add a Version to Requirement:
Requires: perl(MIME::Base64) >= X.XX
And here is a check for centos version:
# check centos version and set macro %{!?old_ver: %define old_ver %(if test `awk '{print $3}' /etc/redhat- release|cut -d'.' -f2` -lt 3 ; then echo "1"; else echo "0"; fi)}
%if %{old_ver} == 1 do something %else do something complete different or not %endif
(i am sure this could be done better, more elegant, etc...)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Markus Falb wrote:
Hugo van der Kooij wrote:
It seems that a package is now added to perl in Centos 5.3 that was not there before.
So a dependency on perl-MIME-Base64 will fail because that package now seems to colide with perl itself. (SIGHHHH)
How can I change my spec file to list the requirement only for Centos/RHEL 5.x where x < 3?
hmm. strange enough: # cat /etc/redhat-release CentOS release 5.2 (Final) # rpm -q --whatprovides 'perl(MIME::Base64)' perl-5.8.8-15.el5_2.1
maybe the conditional requirement is not necessary. try a: Require: perl(MIME::Base64)
That is not valid.
error: line 30: Unknown tag: Require: perl(MIME::Base64)
Because RH makes a habit of including new packages into perl itself and using relative old ones there is a definite need to build a package with an up-to-date version of this.
Hugo.
- -- hvdkooij@vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.