[libinline-java-perl] 05/06: Fix resolve (not hardcode) path to perl libraries during install. Closes: bug#752706. Thanks to Niko Tyni.

Jonas Smedegaard dr at jones.dk
Thu Jun 26 21:15:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libinline-java-perl.

commit 5d4b13a9c4c60561fd21b6dbc9f0366326706605
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Thu Jun 26 23:05:22 2014 +0200

    Fix resolve (not hardcode) path to perl libraries during install. Closes: bug#752706. Thanks to Niko Tyni.
---
 debian/rules | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index fb49745..698b5bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,8 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 
 pkg = $(DEB_SOURCE_PACKAGE)
 
+perlpath := $(shell perl -MConfig -e 'print $$Config{vendorarch};' )
+
 DEB_UPSTREAM_PACKAGE = Inline-Java
 DEB_UPSTREAM_URL = http://www.cpan.org/modules/by-module/Inline
 DEB_UPSTREAM_TARBALL_MD5 = 23f96c2ac4915302c3647c0abc92916f
@@ -42,12 +44,12 @@ export JAVA_HOME=/usr/lib/jvm/default-java
 export PERL_INLINE_JAVA_JNI=1
 
 binary-post-install/$(pkg)::
-	chrpath -d $(cdbs_curdestdir)usr/lib/perl5/auto/Inline/Java/JNI/JNI.so
+	chrpath -d $(cdbs_curdestdir)$(perlpath)/auto/Inline/Java/JNI/JNI.so
 
 binary-post-install/$(pkg)::
 	mkdir -p $(cdbs_curdestdir)/usr/share/$(pkg)
 	mv -t $(cdbs_curdestdir)/usr/share/$(pkg) \
-		$(cdbs_curdestdir)/usr/lib/perl5/Inline/Java/*.jar
-	ln -st $(cdbs_curdestdir)/usr/lib/perl5/Inline/Java \
+		$(cdbs_curdestdir)$(perlpath)/Inline/Java/*.jar
+	ln -st $(cdbs_curdestdir)$(perlpath)/Inline/Java \
 		../../../../share/$(pkg)/InlineJavaServer.jar \
 		../../../../share/$(pkg)/InlineJavaUser.jar

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libinline-java-perl.git



More information about the Pkg-perl-cvs-commits mailing list