unable to rpm --rebuild cyrus-imapd-2.1.8-3.src.rpm
Simon Matter
simon.matter at ch.sauter-bc.com
Fri Aug 30 07:26:23 EDT 2002
Bernhard Erdmann schrieb:
>
> Hi,
>
> I tried to rebuild Simon Matter's Cyrus RPM on a RHL 6.2 based machine,
> but rpm fails. Unfortunately, I can't find the root of the error rpm
> states at the end.
As usual, it's the perl part which makes problems. RedHat has changed
perl stuff with every release and it was already difficult to make the
source rpm compile on 7.x and the new betas.
What you should try first is to change the perlhack, which is really a
hack:
%define _perlhack %(eval [ %{_rhver} = "7.1" -o
%{_rhver} = "7.2" -o %{_rhver} = "7.3" -o %{_rhver} = "2.1AS" -o
%{_rhver} = "6.2" ] && echo 0 || echo 1)
I hope the problem doesn't come from different rpm macros...
BTW, what does 'rpm -qa | grep db' show you? I don't really understand
why '%(eval rpm -q --quiet db4-devel && echo db4 || echo db3)' doesn't
work in you environment?
I could make the %{name}-2.1.5-gccsnmpfix.patch patch an automatic
feature.
Please let me know how it goes.
Simon
>
> It was necessary to use a patch against the issue gcc/snmp and I had to
> hardcode the db version in the spec file.
> rpm -ba cyrus-imapd-2.1.8.spec > cyrus-build.out 2>&1
>
> Please find the spec file, the diff to Simon's spec file, the gcc/snmp
> patch and rpm's output at
> http://berdmann.dyndns.org/debug/cyrus/rpms/
More information about the Info-cyrus
mailing list