LP#1638377: Allow perl to be installed in non-standard locations user/csharp/lp-1638377-install_perl_mods_anywhere
authorMike Rylander <mrylander@gmail.com>
Wed, 17 Aug 2016 17:25:35 +0000 (13:25 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 3 Mar 2017 18:03:54 +0000 (13:03 -0500)
commit1acfb6d833a2bfcb0cbb594377738e2ebe55ccb4
tree69f9af744b5d17cbb26a95bfbe4ebfda0d7f7eb1
parenta3d1b7c215d2a7f5c14c0e013a3dfcae8dfe150d
LP#1638377: Allow perl to be installed in non-standard locations

Add --with-perlbase configure option to specify
an alternative location for installing the Perl modules. This
can be useful for setups that want to run the Perl modules
from a shared filesystem or environments that need to run
multiple versions of OpenSRF simultaneously.

Users of --with-perlbase are responsible for ensuring that
PERL5LIB is set appropriately.

To test
-------
[1] Use --with-perlbase during the configure step, e.g.,

    ./configure --with-perlbase /tmp/perl

[2] Run make; make check; sudo make install
[3] Verify that the Perl modules are installed under
    /tmp/perl.
[4] Make a change to a Perl source file, then
    go to src/perlmods, then run sudo ./Build install. Verify
    that it remembers the --with-perlbase directory
    and installs the updated module there.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Makefile.am
Open-ILS/src/perlmods/Makefile.am
configure.ac