Skip Menu |

This queue is for tickets about the Ovid CPAN distribution.

Report information
The Basics
Id: 11946
Status: new
Priority: 0/
Queue: Ovid

People
Owner: gyepi [...] cpan.org
Requestors: shlomif [...] iglu.org.il
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: RPM Building Problems on Mandrake 10.2 and with new ExtUtils::MakeMaker
Attached is a patch that fixes several issues: 1. Newer versions of ExtUtils::MakeMaker see the RPM_BUILD_ROOT env var and as a result put it in DESTDIR. As a result when using PERL_INSTALL_ROOT you get something like ${RPM_BUILD_ROOT}${RPM_BUILD_ROOT} as a prefix. I changed it to DESTDIR, which I believe will also work with older ExtUtils::MakeMaker's. 2. The files ".bs" are installed (they are created for every .so for a Perl extension with hard-coded code), and are being recorded in the file list but are later deleted by the RPM cleanup script. Thus, they generate an RPM building error. Another part of the patch deletes them after installation.
diff -u -r orig/Ovid-0.06/Ovid/Package.pm modified/Ovid-0.06/Ovid/Package.pm --- orig/Ovid-0.06/Ovid/Package.pm 2005-01-05 21:16:41.000000000 +0200 +++ modified/Ovid-0.06/Ovid/Package.pm 2005-03-20 22:56:06.000000000 +0200 @@ -371,11 +371,12 @@ %install make PREFIX=%{_prefix} \ - PERL_INSTALL_ROOT=%{buildroot} \ + DESTDIR=%{buildroot} \ install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress +find ${RPM_BUILD_ROOT} -name '*.bs' | (while read T ; do rm -f "$T" ; done) find ${RPM_BUILD_ROOT} \ \( -path '*/perllocal.pod' -o -path '*/.packlist' \) -a -prune -o \ -type f -printf "/%%P\n" > @name@-filelist diff -u -r orig/Ovid-0.06/ovid.spec modified/Ovid-0.06/ovid.spec --- orig/Ovid-0.06/ovid.spec 2005-01-05 20:58:29.000000000 +0200 +++ modified/Ovid-0.06/ovid.spec 2005-03-20 23:04:24.150864248 +0200 @@ -36,7 +36,7 @@ rm -rf $RPM_BUILD_ROOT make PREFIX=%{_prefix} \ - PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ + DESTDIR=$RPM_BUILD_ROOT \ install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress