FS#10971 - [perl] libperl missing
Attached to Project:
Arch Linux
Opened by Daniel D. (danield) - Monday, 21 July 2008, 20:43 GMT
Last edited by Francois Charette (Firmicus) - Friday, 02 October 2009, 06:48 GMT
Opened by Daniel D. (danield) - Monday, 21 July 2008, 20:43 GMT
Last edited by Francois Charette (Firmicus) - Friday, 02 October 2009, 06:48 GMT
|
Details
Description:
I'm not into the details of packaging perl, but as far as I can tell, libperl is missing from the perl package. I'd need it for collectd's perl plugin feature. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Francois Charette (Firmicus)
Friday, 02 October 2009, 06:48 GMT
Reason for closing: Implemented
Additional comments about closing: This is implemented in the perl 5.10.1 currently in testing.
Friday, 02 October 2009, 06:48 GMT
Reason for closing: Implemented
Additional comments about closing: This is implemented in the perl 5.10.1 currently in testing.
$ pacman -Ql perl | grep libperl
perl /usr/lib/perl5/core_perl/CORE/libperl.a
I've seen debian installing libperl.so.* in /usr/lib/ btw.
See http://cpansearch.perl.org/src/DAPM/perl-5.10.1/INSTALL (section "Building a shared Perl library").
So -1 from me.
I think it's good to have a shared perl lib available. Perl doesn't bump that often, and it reduces the size of binaries that embed perl.
I have put the results at http://ankabut.net/varia/perlbench/
Overall there is still a significant penalty! Perhaps the advantage of having a dynamic library overweights this, but I am still not fully convinced.
Could it not be possible to provide a separately compiled libperl.so while keeping a statically compiled perl binary?
This should be manageable using split packages, but one should then find a way to hide libperl.so from perl while making it available to external applications. Just thinking aloud. Perhaps this is not really doable.
The difference in startup time is measured in a separate test: http://ankabut.net/varia/perlbench/startup/noprog/A.txt (32.5) versus .../B.txt (43.1).
The overall average penalty with libperl.so measured by perlbench on my system is -17%. This is not minimal.
http://repos.archlinux.org/viewvc.cgi/perl/trunk/PKGBUILD?r1=51813&r2=53035
It builds and works fine here. I still have to test building an application (like collectd) that needs libperl, to make sure it works as expected alongside a static perl installation.
I'll move this to testing together with the db-4.8 rebuild.
configure --enable-perl --with-libperl=/usr/lib
but it fails to find a perl interpreter.
If I do
configure --enable-perl
the interpreter is found but not the libperl :(
It looks as though a static perl binary and a dynamic libperl cannot coexist after all, at least not without a lot of tweaking...
Not sure this avenue is worth pursuing.
But one easy and clean solution would be to provide a perl-libperl package in community or AUR that provides perl.
(See attachment for a PKGBUILD).