[lua-torch-trepl] 01/02: debian: fix hardcoded multiarch triplet
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Sat Sep 24 06:38:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository lua-torch-trepl.
commit 9c574f2794115268bbd0dcf869d808c642661880
Author: Zhou Mo <cdluminate at gmail.com>
Date: Sat Sep 24 06:37:46 2016 +0000
debian: fix hardcoded multiarch triplet
---
debian/changelog | 6 ++++++
debian/lua-torch-trepl.links | 2 +-
debian/rules | 2 ++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index ddbcab1..e25c0a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+lua-torch-trepl (0~20160613-g06128f9-2) UNRELEASED; urgency=medium
+
+ * Fix hardcoded multiarch triplet in lua-torch-trepl.links .
+
+ -- Zhou Mo <cdluminate at gmail.com> Sat, 24 Sep 2016 06:36:01 +0000
+
lua-torch-trepl (0~20160613-g06128f9-1) experimental; urgency=low
* Initial release. Closes: #826791
diff --git a/debian/lua-torch-trepl.links b/debian/lua-torch-trepl.links
index bb551b7..8cc2c93 100644
--- a/debian/lua-torch-trepl.links
+++ b/debian/lua-torch-trepl.links
@@ -3,4 +3,4 @@
# of trepl, however the object file readline.* is compiled into
# treplutils.so, so we link treplutils.so to readline.so, or
# the tab-completion will be broken.
-usr/lib/x86_64-linux-gnu/lua/5.1/treplutils.so usr/lib/x86_64-linux-gnu/lua/5.1/readline.so
+usr/lib/#DEB_HOST_MULTIARCH#/lua/5.1/treplutils.so usr/lib/#DEB_HOST_MULTIARCH#/lua/5.1/readline.so
diff --git a/debian/rules b/debian/rules
index 05cd917..6c4ff52 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,13 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS= hardening=+all
+DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --buildsystem=lua --with lua
override_dh_auto_configure:
ln -s . trepl
+ sed -i -e "s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g" debian/lua-torch-trepl.links
dh_auto_configure
override_dh_auto_clean:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-trepl.git
More information about the debian-science-commits
mailing list