From 3da0f823de38f59680e95e84cb81da5bd7513960 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 11 Nov 2017 19:43:11 +0100 Subject: [PATCH] add use the linux32/64 uname wrapper --- debian/{arcconf.wrapper => arcconf.wrapper32} | 2 +- debian/arcconf.wrapper64 | 4 ++++ debian/rules | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) rename debian/{arcconf.wrapper => arcconf.wrapper32} (57%) create mode 100644 debian/arcconf.wrapper64 diff --git a/debian/arcconf.wrapper b/debian/arcconf.wrapper32 similarity index 57% rename from debian/arcconf.wrapper rename to debian/arcconf.wrapper32 index 03a4db5..b2d4078 100644 --- a/debian/arcconf.wrapper +++ b/debian/arcconf.wrapper32 @@ -1,4 +1,4 @@ #!/bin/sh LD_LIBRARY_PATH=/usr/lib/arcconf:$LD_LIBRARY_PATH export LD_LIBRARY_PATH -exec /usr/lib/arcconf/arcconf $@ \ No newline at end of file +exec /usr/bin/linux32 --uname-2.6 /usr/lib/arcconf/arcconf $@ \ No newline at end of file diff --git a/debian/arcconf.wrapper64 b/debian/arcconf.wrapper64 new file mode 100644 index 0000000..031ac71 --- /dev/null +++ b/debian/arcconf.wrapper64 @@ -0,0 +1,4 @@ +#!/bin/sh +LD_LIBRARY_PATH=/usr/lib/arcconf:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec /usr/bin/linux64 --uname-2.6 /usr/lib/arcconf/arcconf $@ \ No newline at end of file diff --git a/debian/rules b/debian/rules index a77692c..d4d6d22 100755 --- a/debian/rules +++ b/debian/rules @@ -14,7 +14,7 @@ install: dh_clean -k dh_installdirs ifeq ($(DEB_BUILD_ARCH),amd64) - install -D -m 0755 debian/arcconf.wrapper \ + install -D -m 0755 debian/arcconf.wrapper64 \ debian/arcconf/usr/sbin/arcconf sed -i "s/libstdc++.so.6/libstdcv4.so.6/g" amd64/centos5/libstdc++.so.6.0.8 install -D -m 0755 amd64/centos5/libstdc++.so.6.0.8 \ @@ -61,7 +61,7 @@ ifeq ($(DEB_BUILD_ARCH),amd64) debian/arcconf/usr/lib/arcconf/arcconf-7.31 endif ifeq ($(DEB_BUILD_ARCH),i386) - install -D -m 0755 debian/arcconf.wrapper \ + install -D -m 0755 debian/arcconf.wrapper32 \ debian/arcconf/usr/sbin/arcconf sed -i "s/libstdc++.so.6/libstdcv4.so.6/g" i386/centos5/libstdc++.so.6.0.8 install -D -m 0755 i386/centos5/libstdc++.so.6.0.8 \