Put the perl modules from git in /usr/lib/perl5/5.32/site_perl
|Reported by:||Owned by:||blfs-book|
git installs Git.pm, its sub-modules and the dependencies we allow it to pull-in (plain perl) into /usr/share/perl5/. Until we changed how we build perl in LFS, nothing else from he books was in /usr/share/perl5.
At the moment, LFS perl installs a lot into /usr/share/perl5/core_perl and XML-Parser and almost all the modules in BLFS install into /usr/share/perl5/site_perl. I've raised LFS ticket 4710 to move all of those to /usr/lib.
Assuming that happens, the modules from git can be similarly moved by adding a sed to the shipped Makefile:
sed -i 's%\(^perllibdir = \).*%\1/usr/lib/perl5/5.32/site_perl%' Makefile
Note that the version(s) will need to be changed when perl is updated.