[Dovecot] Problems with Dovecot 1.0 beta7 rpm form atrpm for RHEL4
Hi, I just want to install dovecot 1.0 beta7 from atrpm and noted that it depends on a non official dependency.
If you have RHEL4 (Centos) 4.3 fully updated and you try to install: http://dl.atrpms.net/all/dovecot-1.0-0_10.99.beta7.el4.at.i386.rpm You get this error: # rpm -ivh dovecot-1.0-0_10.99.beta7.el4.at.i386.rpm error: Failed dependencies: openssl >= 0.9.7f-4 is needed by dovecot-1.0-0_10.99.beta7.el4.at.i386
The lates official openssl version for RHEL 4.3 is: # rpm -q openssl openssl-0.9.7a-43.8
I think I can solve this problem by compiling the src.rpm, but I get this error: # rpmbuild --rebuild --target=i686 --clean dovecot-1.0-0_10.99.beta7.el4.at.src.rpm Installing /opt/shares/tmp/dovecot-1.0-0_10.99.beta7.el4.at.src.rpm Building target platforms: i686 Building for target i686 error: line 4: Tag takes single token only: Release: 0_%atrelease 10.99.beta7
How can I compile the .src.rpm from atrpm? It seems that there is an error in the spec file:
This line:
Release: 0_%atrelease 10.99.beta7 should it looks like this: Release: 0_%{atrelease}10.99.beta7
Many thanks Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
On Thu, 04 May 2006 13:16:21 -0400 "Oliver Schulze L." <oliver@samera.com.py> wrote:
How can I compile the .src.rpm from atrpm? It seems that there is an error in the spec file:
You need to pass in a value for atrelease, so use --define atrelease=<value> I think.
--
Brian Morrison
bdm at fenrir dot org dot uk
GnuPG key ID DE32E5C5 - http://wwwkeys.uk.pgp.net/pgpnet/wwwkeys.html
On Thu, May 04, 2006 at 01:16:21PM -0400, Oliver Schulze L. wrote:
Hi, I just want to install dovecot 1.0 beta7 from atrpm and noted that it depends on a non official dependency.
If you have RHEL4 (Centos) 4.3 fully updated and you try to install: http://dl.atrpms.net/all/dovecot-1.0-0_10.99.beta7.el4.at.i386.rpm You get this error: # rpm -ivh dovecot-1.0-0_10.99.beta7.el4.at.i386.rpm error: Failed dependencies: openssl >= 0.9.7f-4 is needed by dovecot-1.0-0_10.99.beta7.el4.at.i386
The lates official openssl version for RHEL 4.3 is: # rpm -q openssl openssl-0.9.7a-43.8
The above is taken from Fedora Core, maybe it is too strict.
I think I can solve this problem by compiling the src.rpm, but I get this error: # rpmbuild --rebuild --target=i686 --clean dovecot-1.0-0_10.99.beta7.el4.at.src.rpm Installing /opt/shares/tmp/dovecot-1.0-0_10.99.beta7.el4.at.src.rpm Building target platforms: i686 Building for target i686 error: line 4: Tag takes single token only: Release: 0_%atrelease 10.99.beta7
How can I compile the .src.rpm from atrpm? It seems that there is an error in the spec file:
This line:
Release: 0_%atrelease 10.99.beta7 should it looks like this: Release: 0_%{atrelease}10.99.beta7
Use rpmbuild --define 'atrelease() %1.el4.oliver' ...
or similar.
Let us know whether it works, so I can fix the dependecy on openssl.
The quick and dirty way is to install the package with rpm --nodeps, but that's very dirty (but also very quick ;).
Axel.Thimm at ATrpms.net
Hi Axel, thanks for the reply.
Axel Thimm wrote:
The above is taken from Fedora Core, maybe it is too strict.
It would be nice to have a RHEL4 .i386.rpm that uses only official updates.
Use rpmbuild --define 'atrelease() %1.el4.oliver' ...
It worked! Many thanks.
I was using --define 'atrelease test' but that didn't worked.
Will update the wiki with this info.
Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
Done: http://wiki.dovecot.org/PrebuiltBinaries#head-78ec17ab76c671fd240e72ac12a786...
HTH Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
Axel Thimm wrote:
Let us know whether it works, so I can fix the dependecy on openssl.
The quick and dirty way is to install the package with rpm --nodeps, but that's very dirty (but also very quick ;).
It compiled fine, but still I need to install using --nodeps I know its a little dirty to install using --nodeps, but since I compilled using the older openssl, no problem should happend. Only a dependency overwrite in the rpm DB ;)
Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
On Thu, 04 May 2006 16:17:12 -0400 "Oliver Schulze L." <oliver@samera.com.py> wrote:
I know its a little dirty to install using --nodeps, but since I compilled using the older openssl, no problem should happend. Only a dependency overwrite in the rpm DB ;)
You could just edit the spec file....
--
Brian Morrison
bdm at fenrir dot org dot uk
GnuPG key ID DE32E5C5 - http://wwwkeys.uk.pgp.net/pgpnet/wwwkeys.html
Hi Brian, you're right, but it would be nice to have it fixed in the atrpm repo too.
Oliver
Brian Morrison wrote:
On Thu, 04 May 2006 16:17:12 -0400 "Oliver Schulze L." <oliver@samera.com.py> wrote:
I know its a little dirty to install using --nodeps, but since I compilled using the older openssl, no problem should happend. Only a dependency overwrite in the rpm DB ;)
You could just edit the spec file....
-- Oliver Schulze L. <oliver@samera.com.py>
Hi Axel, another issue. This time with pam.
The included /etc/pam.d/dovecot reads: #%PAM-1.0 auth required pam_nologin.so auth include system-auth account include system-auth session include system-auth
But is should looks like this in order to work on RHEL/CentOS 4.x #%PAM-1.0 auth required pam_nologin.so auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth session required pam_stack.so service=system-auth
Also, there is a need to do this also (I think this is already documented): # cd /usr/share/ssl/certs # make dovecot.pem
HTH Oliver
Oliver Schulze L. wrote:
Axel Thimm wrote:
Let us know whether it works, so I can fix the dependecy on openssl.
The quick and dirty way is to install the package with rpm --nodeps, but that's very dirty (but also very quick ;).
It compiled fine, but still I need to install using --nodeps I know its a little dirty to install using --nodeps, but since I compilled using the older openssl, no problem should happend. Only a dependency overwrite in the rpm DB ;)
Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
On Thu, May 04, 2006 at 04:25:11PM -0400, Oliver Schulze L. wrote:
another issue. This time with pam.
The included /etc/pam.d/dovecot reads: #%PAM-1.0 auth required pam_nologin.so auth include system-auth account include system-auth session include system-auth
But is should looks like this in order to work on RHEL/CentOS 4.x #%PAM-1.0 auth required pam_nologin.so auth required pam_stack.so service=system-auth account required pam_stack.so service=system-auth session required pam_stack.so service=system-auth
Thanks, that needs to be fixed on several distros.
Also, there is a need to do this also (I think this is already documented): # cd /usr/share/ssl/certs # make dovecot.pem
That should have been done in the %post script, but it probably landed under /etc/pki/dovecot/certs/dovecot.pem.
-- Axel.Thimm at ATrpms.net
On Thu, May 04, 2006 at 04:17:12PM -0400, Oliver Schulze L. wrote:
Axel Thimm wrote:
Let us know whether it works, so I can fix the dependecy on openssl.
The quick and dirty way is to install the package with rpm --nodeps, but that's very dirty (but also very quick ;).
It compiled fine, but still I need to install using --nodeps
The dependency did not come through the build environment, but the explicit depedency the maintainer at Red Hat added.
I know its a little dirty to install using --nodeps, but since I compilled using the older openssl, no problem should happend. Only a dependency overwrite in the rpm DB ;)
I also used the older openssl, so we should have the same result - the dependency is artificial.
Axel.Thimm at ATrpms.net
Axel Thimm wrote:
On Thu, May 04, 2006 at 04:17:12PM -0400, Oliver Schulze L. wrote:
Axel Thimm wrote:
Let us know whether it works, so I can fix the dependecy on openssl.
The quick and dirty way is to install the package with rpm --nodeps, but that's very dirty (but also very quick ;).
It compiled fine, but still I need to install using --nodeps
The dependency did not come through the build environment, but the explicit depedency the maintainer at Red Hat added.
Is it posible to fix that in the .spec file? Or should I add an extra note to the wiki about installing the .rpm in RHEL4? The note should say that the option --nodeps should be used.
Thanks Oliver
-- Oliver Schulze L. <oliver@samera.com.py>
On Fri, May 05, 2006 at 06:23:33AM -0400, Oliver Schulze L. wrote:
Axel Thimm wrote:
On Thu, May 04, 2006 at 04:17:12PM -0400, Oliver Schulze L. wrote:
Axel Thimm wrote:
Let us know whether it works, so I can fix the dependecy on openssl.
The quick and dirty way is to install the package with rpm --nodeps, but that's very dirty (but also very quick ;).
It compiled fine, but still I need to install using --nodeps
The dependency did not come through the build environment, but the explicit depedency the maintainer at Red Hat added.
Is it posible to fix that in the .spec file? Or should I add an extra note to the wiki about installing the .rpm in RHEL4? The note should say that the option --nodeps should be used.
No, that should be fixed in the specfile. --nodeps is a last resort for quick & dirty checks before rebuilding just to fix a bogus dependency.
Axel.Thimm at ATrpms.net
participants (3)
-
Axel Thimm
-
Brian Morrison
-
Oliver Schulze L.