[X2Go-Commits] [nx-libs] 01/23: debian/rules: Fix FTCBFS: (see Debian bug #875867) Fix build/host confusion in debian/rules. Pass --host to ./configure.

git-admin at x2go.org git-admin at x2go.org
Wed Feb 7 20:08:34 CET 2018


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

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit ef0a3d636681a0cb46b29eb2c1e20c55b68ce2fb
Author: Helmut Grohne <helmut at subdivi.de>
Date:   Sun Jan 28 21:36:03 2018 +0100

    debian/rules: Fix FTCBFS: (see Debian bug #875867) Fix build/host confusion in debian/rules. Pass --host to ./configure.
---
 debian/rules | 36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

diff --git a/debian/rules b/debian/rules
index b2258cd..dffab72 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,16 +6,20 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
-export LIBDIR = "/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"
+include /usr/share/dpkg/architecture.mk
+
+export LIBDIR = "/usr/lib/$(DEB_HOST_MULTIARCH)"
 export LIBEXECDIR = "$(LIBDIR)/nx/bin"
-export INCLUDEDIR = "/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)"
+export INCLUDEDIR = "/usr/include/$(DEB_HOST_MULTIARCH)"
 
 %:
 	CONFIGURE="./configure --disable-silent-rules \
 	                       --prefix=/usr \
 	                       --libdir=$(LIBDIR) \
 	                       --includedir=$(INCLUDEDIR) \
-	                       --libexecdir=$(LIBEXECDIR)" dh $@ --with quilt
+	                       --libexecdir=$(LIBEXECDIR) \
+	                       --build=$(DEB_BUILD_GNU_TYPE) \
+	                       --host=$(DEB_HOST_GNU_TYPE)"  dh $@ --with quilt
 
 override_dh_auto_clean:
 	rm -Rf nx-X11/.build-exports
@@ -89,21 +93,21 @@ override_dh_clean:
 override_dh_install:
 
 	# strip static libs and remove .la files
-	rm debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcomp.la
-	strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcomp.a
-	rm debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcompshad.la
-	strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libXcompshad.a
-	rm debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libNX_X11.la
-	strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_BUILD_MULTIARCH)/libNX_X11.a
+	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libXcomp.la
+	strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libXcomp.a
+	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libXcompshad.la
+	strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libXcompshad.a
+	rm debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libNX_X11.la
+	strip --strip-debug --remove-section=.comment --remove-section=.note debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libNX_X11.a
 
 	# remove extras, GL, and other unneeded headers
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/GL/
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/nx-X11/extensions/XK*.h
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/nx-X11/extensions/*Xv*.h
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/nx-X11/extensions/XRes*.h
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/nx-X11/extensions/XIproto.h
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/nx-X11/extensions/XI.h
-	rm -R debian/tmp/usr/include/$(DEB_BUILD_MULTIARCH)/nx-X11/Xtrans/
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/GL/
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/extensions/XK*.h
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/extensions/*Xv*.h
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/extensions/XRes*.h
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/extensions/XIproto.h
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/extensions/XI.h
+	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/Xtrans/
 
 	dh_install --fail-missing
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list