Buchan Milne wrote:

Done, I also had to make some minor adjustments for the new perl, but it
should not harm packages on older releases. [If you have problems

Mmm, it seems it does :-( Under 9.0 I get this:

make[2]: Entering directory `/home/luca/rpm/BUILD/cyrus-imapd-2.1.14/perl/imap'
Warning: You do not have permissions to install into /usr/lib/perl5/vendor_perl/ 5.8.0/i386-linux-thread-multi at /usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 8 4.
Cannot forceunlink /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto /Cyrus/IMAP/IMAP.so: Permission denied at /usr/lib/perl5/5.8.0/File/Find.pm line 849
make[2]: *** [pure_vendor_install] Error 255
make[2]: Leaving directory `/home/luca/rpm/BUILD/cyrus-imapd-2.1.14/perl/imap'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/luca/rpm/BUILD/cyrus-imapd-2.1.14/perl'
make: *** [install] Error 1
error: Bad exit status from /home/luca/rpm/tmp/rpm-tmp.27056 (%install)


RPM build errors: Bad exit status from /home/luca/rpm/tmp/rpm-tmp.27056 (%install)


It's not the same

export PREFIX=something
make install

than

make install PREFIX=something


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


Oh, the %exclude doesn't segfault, it just cannot find the file:

RPM build errors:
File not found: /home/luca/rpm/tmp/cyrus-imapd-2.1.14-root/usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod

so it should be conditioned to mdk92 too

Bye

--
Que les importa a las viudas, a los hu�rfanos, a los desvalidos
si las masacres se hacen en nombre del totalitarismo o en el
sagrado nombre de la libertad y la democracia.
    Mahatma Gandhi (1869 - 1948)

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to