FS#4506 - perl-extutils-depends and perl-extutils-pkgconfig not installed in "current"
Attached to Project:
Arch Linux
Opened by Francois Charette (Firmicus) - Monday, 24 April 2006, 21:36 GMT
Opened by Francois Charette (Firmicus) - Monday, 24 April 2006, 21:36 GMT
|
Details
Because the PKGBUILDs of perl-extutils-depends and
perl-extutils-pkgconfig (maintained by Arjan Timmerman) do
not specify the INSTALLARCHLIB, INSTALLSITELIB and
INSTALLSITEARCH directories after "perl Makefile.PL" in the
build() function, the modules are installed to
usr/lib/perl5/site_perl/5.8.7 instead of .../current This caused me problems while building perl modules from AUR. Please correct as follows: build() { cd $startdir/src/ExtUtils-Depends-$pkgver # Force module installation to "current" perl directories. /usr/bin/perl Makefile.PL \ INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \ INSTALLSITELIB=/usr/lib/perl5/site_perl/current \ INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi /usr/bin/make || return 1 /usr/bin/make DESTDIR=$startdir/pkg install # remove perllocal.pod, .packlist, and empty dirs: /usr/bin/find $startdir/pkg -name '.packlist' -exec rm '{}' \; /usr/bin/find $startdir/pkg -name 'perllocal.pod' -exec rm '{}' \; /usr/bin/find $startdir/pkg -depth -type d -empty -exec rmdir '{}' \; } NB: The last three lines offers a general solution to removing perllocal.pod, .packlist, and empty dirs in the build process of ANY cpan module ;-) |
This task depends upon
eval `perl -V:archname`
which will set i686-thread-multi or whatever archname perl uses in the variable "archname".