[Pkg-ocaml-maint-commits] [marionnet] 06/19: Add symlink to port-helper in $PATH

Lucas Nussbaum lucas at moszumanska.debian.org
Mon Oct 30 22:28:54 UTC 2017


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

lucas pushed a commit to branch master
in repository marionnet.

commit 08334c30c96f6f7211db8ecc82c63743f407bd2c
Author: Lucas Nussbaum <lucas at debian.org>
Date:   Sat Oct 21 19:58:05 2017 +0200

    Add symlink to port-helper in $PATH
---
 debian/rules | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/rules b/debian/rules
index 1b5be69..316e791 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
 %:
 	dh $@ --with ocaml --with systemd
 
@@ -23,6 +25,14 @@ override_dh_auto_install:
 		mv debian/marionnet/usr/sbin/marionnet-daemon.byte debian/marionnet/usr/sbin/marionnet-daemon ;\
 		mv debian/marionnet/usr/bin/marionnet.byte debian/marionnet/usr/bin/marionnet ; \
 	fi
+	# Add symlink in $PATH for port-helper. That's needed because the marionnet kernel
+	# call it directly
+	if [ "$(DEB_HOST_ARCH)" = "amd64" ]; then \
+		dh_link usr/lib64/uml/port-helper usr/bin/port-helper ; \
+	else \
+		dh_link usr/lib/uml/port-helper usr/bin/port-helper ; \
+	fi
+
 
 override_dh_auto_clean:
 	dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/marionnet.git



More information about the Pkg-ocaml-maint-commits mailing list