From ba88f20d9d6ef520e62f452177be9d6f86c8193f Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Fri, 17 May 2019 21:42:07 +0200 Subject: [PATCH] perl: fix default libpath Makes it easier to install cpan modules --- packages/perl/build.sh | 2 +- packages/perl/cnf-configure_path.sh.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 packages/perl/cnf-configure_path.sh.patch diff --git a/packages/perl/build.sh b/packages/perl/build.sh index fd7a2b78b..0a5e57885 100644 --- a/packages/perl/build.sh +++ b/packages/perl/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Capable, feature-rich programming language" TERMUX_PKG_LICENSE="Artistic-License-2.0" TERMUX_PKG_VERSION=(5.28.2 1.2.3) -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SHA256=(aa95456dddb3eb1cc5475fed4e08f91876bea71fb636fba6399054dfbabed6c7 84583a1bb5f3a2c64d13d031386c114382e5c62955c6f84a27cec8318536627c) TERMUX_PKG_SRCURL=(http://www.cpan.org/src/5.0/perl-${TERMUX_PKG_VERSION}.tar.gz diff --git a/packages/perl/cnf-configure_path.sh.patch b/packages/perl/cnf-configure_path.sh.patch new file mode 100644 index 000000000..2486f9791 --- /dev/null +++ b/packages/perl/cnf-configure_path.sh.patch @@ -0,0 +1,11 @@ +--- ../configure_path.sh.orig 2019-05-17 19:33:29.839841883 +0200 ++++ ./cnf/configure_path.sh 2019-05-17 19:33:56.726506709 +0200 +@@ -108,7 +108,7 @@ + define privlibexp "$privlib" + define binexp "$bin" + +-define libpth "/lib /usr/lib /usr/local/lib" ++define libpth "@TERMUX_PREFIX@/lib @TERMUX_PREFIX@/local/lib" + define glibpth "$libpth" + define plibpth +