On 8/9/20 4:20 PM, Ken Moffat via blfs-dev wrote:
On Sun, Aug 09, 2020 at 11:04:09AM -0500, Marty Jack via blfs-dev wrote:The INSTALL file for git recommends the following incantation to derive the path (at line 100). This doesn't need updating when the Perl version changes. perllibdir=/usr/$(/usr/bin/perl -MConfig -wle 'print substr $Config{installsitelib}, 1 + length $$Config{siteprefixexp}') I tested it with make perllibdir=that and make perllibdir=that install and it worked. If you should decide to move forward with taking git out of /usr/share.Nice idea, although it will make a horrendously long line in the book. But I think there is a typo somewhere. I tried it in one of my experimental systems in chroot (where modules are in /usr/lib) and got an error: root in chroot ~# perllibdir=/usr/$(/usr/bin/perl -MConfig -wle 'print substr $Config{installsitelib}, 1 + length $$Config{siteprefixexp}') Use of uninitialized value in addition (+) at -e line 1. root in chroot ~#
That line is not needed. See the ticket. It can be done with only one simple variable on the 'make install' line.
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
