FS#27699 - [perl] run ldconfig immediately after install

Attached to Project: Arch Linux
Opened by Allan McRae (Allan) - Saturday, 24 December 2011, 06:58 GMT
Last edited by Florian Pritz (bluewind) - Thursday, 29 December 2011, 21:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Kevin Piche (kpiche)
Angel Velasquez (angvp)
Florian Pritz (bluewind)
Justin Davis (juster)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
pacman runs ldconfig at the end of installing all packages. This causes ca-certificates post_install() to fail on a fresh install as libperl is not found:

Updating certificates in /etc/ssl/certs... /usr/bin/perl: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

This can be fixed by either:
1) adding "sbin/ldconfig -r ." to the end of post_install in the perl .install file
or
2) adding a link to libperl.so in /usr/lib

If #2 is followed, /etc/ld.so.conf.d/perl.conf can be removed.
This task depends upon

Closed by  Florian Pritz (bluewind)
Thursday, 29 December 2011, 21:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  perl 5.14.2-5
Comment by Allan McRae (Allan) - Saturday, 24 December 2011, 06:59 GMT
I actually think #2 is the sane solution here. Maybe not even adding a link but just moving the library...
Comment by Florian Pritz (bluewind) - Saturday, 24 December 2011, 09:19 GMT
I've found some notes [1] about why it isn't in /usr/lib, but our current path doesn't contain the version anyway, so I guess moving the lib wouldn't really worsen the situation.

[1]: http://search.cpan.org/~flora/perl-5.14.2/Porting/pumpkin.pod#Shared_libperl.so_location

Loading...