I made the changes you discuss, but rebuild (under 9.1) now fails at:
+ rm -rf /var/tmp/cyrus-imapd-2.1.14-root/usr/lib/cyrus-imapd/bin
+ mv -f /var/tmp/cyrus-imapd-2.1.14-root/usr/lib/cyrus-imapd/master /var/tmp/cyrus-imapd-2.1.14-root/usr/lib/cyrus-imapd/cyrus-master
+ mv -f /var/tmp/cyrus-imapd-2.1.14-root/usr/share/man/man8/master.8 /var/tmp/cyrus-imapd-2.1.14-root/usr/share/man/man8/cyrus-master.8
mv: cannot stat `/var/tmp/cyrus-imapd-2.1.14-root/usr/share/man/man8/master.8': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.10266 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.10266 (%install)
Any ideas?
Thanks,
S
Luca Olivetti wrote:
Luca Olivetti wrote:
Maybe it's possible that the new perl doesn't need a PREFIX at all once you specified a DESTDIR, otherwise your patch shouldn't work
Probably the correct thing to do is:
%if %mdk92
%{__make} install DESTDIR=%{buildroot} mandir=%{_mandir}
%{__make} -C man install DESTDIR=%{buildroot} mandir=%{_mandir}
%else
%{__make} install DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} mandir=%{_mandir}
%{__make} -C man install DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} mandir=%{_mandir}
%endif
Seeing the changelog in perl packages from Ben Reser it seems this is indeed the correct thing to do. As well as
%if %{mdk92}
%exclude %{perl_archlib}/perllocal.pod
%endif
Bye
***** This e-mail was scanned for viruses by RAV Antivirus *****
