FS#22197 - [perl] /etc/profile.d/perlbin.sh does not update bin path when directories does not exist
Attached to Project:
Arch Linux
Opened by Magnus Woldrich (dmz) - Thursday, 23 December 2010, 07:51 GMT
Last edited by Angel Velasquez (angvp) - Thursday, 30 June 2011, 18:51 GMT
Opened by Magnus Woldrich (dmz) - Thursday, 23 December 2010, 07:51 GMT
Last edited by Angel Velasquez (angvp) - Thursday, 30 June 2011, 18:51 GMT
|
Details
Description:
The script /etc/profile.d/perlbin.sh is supposed to add the new perl bin paths to $PATH if they exist. The directories does not exist on a standard installation, so when a user logs in and installs a Perl package containing executables, they'll be greeted by 'command not found'. The reason why the -d checks are performed is described here: https://bugs.archlinux.org/task/17402 My suggestion is to create this directories if they do not exists, and then add them to the $PATH, bypassing the issues described in [17402]. # Set path to perl scripts. # Remove the perlbin dirs in the next release. # Create directories and and them to the PATH. mkdir -p /usr/lib/perl5/{site,vendor,core}_perl/bin && PATH=$PATH:/usr/lib/perl5/site_perl/bin PATH=$PATH:/usr/lib/perl5/vendor_perl/bin PATH=$PATH:/usr/lib/perl5/core_perl/bin export PATH # If you have modules in non-standard directories you can add them here. #export PERLLIB=dir1:dir2 |
This task depends upon
Closed by Angel Velasquez (angvp)
Thursday, 30 June 2011, 18:51 GMT
Reason for closing: Implemented
Additional comments about closing: implemented since 5.14.1-1
Thursday, 30 June 2011, 18:51 GMT
Reason for closing: Implemented
Additional comments about closing: implemented since 5.14.1-1
[ -d /usr/bin/site_perl ] && PATH=$PATH:/usr/bin/site_perl
[ -d /usr/lib/perl5/site_perl/bin ] && PATH=$PATH:/usr/lib/perl5/site_perl/bin
[ -d /usr/bin/vendor_perl ] && PATH=$PATH:/usr/bin/vendor_perl
[ -d /usr/lib/perl5/vendor_perl/bin ] && PATH=$PATH:/usr/lib/perl5/vendor_perl/bin
[ -d /usr/bin/core_perl ] && PATH=$PATH:/usr/bin/core_perl
There should be no new-line after '&&' .