[OpenSRF-GIT] OpenSRF branch master updated. b6557d6a781fe7f7e16d0c5df5707ce5f8f49d48

Evergreen Git git at git.evergreen-ils.org
Mon Oct 31 17:06:28 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".

The branch, master has been updated
       via  b6557d6a781fe7f7e16d0c5df5707ce5f8f49d48 (commit)
      from  1c8a7dcb24d4ea3a8aa7dc718d2e1f0b12430cb1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b6557d6a781fe7f7e16d0c5df5707ce5f8f49d48
Author: Mike Rylander <mrylander at gmail.com>
Date:   Fri Oct 7 12:19:52 2016 -0400

    LP#1631520: configure install location of Perl modules
    
    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 --perl-base /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/perl, 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 at gmail.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Makefile.am b/Makefile.am
index ed59a61..385115d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,6 +30,7 @@ export PID                      = @localstatedir@/run/opensrf
 export SOCK                     = @localstatedir@/lock/opensrf
 export LOG                      = @localstatedir@/log/opensrf
 export srcdir                   = @srcdir@
+export PERL_BASE                = @PERL_BASE@
 opensrfincludedir               = @includedir@/opensrf
 
 AM_CFLAGS = $(DEF_CFLAGS)
diff --git a/configure.ac b/configure.ac
index dd5d3a7..76bc293 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,6 +202,12 @@ if ! test -d "$APR_HEADERS"; then
 fi
 AC_SUBST([APR_HEADERS])
 
+AC_ARG_WITH([perlbase],
+[  --with-perlbase=path             base location to install Perl modules (default based on Config.pm)],
+[PERL_BASE=${withval}],
+[PERL_BASE=x])
+AC_SUBST([PERL_BASE])
+
 # The following Apache version detection code is adapted from
 # http://www.gnu.org/software/autoconf-archive/ax_prog_apache.html
 # licensed under version 2 of the GNU General Public License, or
diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am
index 4f49264..f42e1c1 100644
--- a/src/perl/Makefile.am
+++ b/src/perl/Makefile.am
@@ -24,7 +24,7 @@ install: build-perl
 	./Build install
 
 build-perl:
-	perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail
+	@if [ "${PERL_BASE}" = 'x' ]; then perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail; else perl Build.PL --install_base ${PERL_BASE} --destdir $(DESTDIR) || make -s build-perl-fail; fi;
 
 build-perl-fail:
 	echo

-----------------------------------------------------------------------

Summary of changes:
 Makefile.am          |    1 +
 configure.ac         |    6 ++++++
 src/perl/Makefile.am |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
OpenSRF


More information about the opensrf-commits mailing list