[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#875888: gdome2 FTCBFS: configures for the build architecture



Source: gdome2
Version: 0.8.1+debian-6
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

gdome2 fails to cross build from source, because it configures for the
build architecture. Indirecting ./configure through dh_auto_configure is
not trivial, because dh_auto_configure also passes dpkg-buildflags and a
multiarch --libdir. Still moving to dh_auto_configure fixes the cross
build issue. Please consider applying the attached patch.

Helmut
diff --minimal -Nru gdome2-0.8.1+debian/debian/changelog gdome2-0.8.1+debian/debian/changelog
--- gdome2-0.8.1+debian/debian/changelog	2013-07-02 13:02:53.000000000 +0200
+++ gdome2-0.8.1+debian/debian/changelog	2017-09-15 17:42:41.000000000 +0200
@@ -1,3 +1,13 @@
+gdome2 (0.8.1+debian-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (closes: #-1)
+    + Let dh_auto_configure pass --host to ./configure.
+    + Disable -Werror=format-security as dh_auto_configure now passes
+      dpkg-buildflags and that makes the build fail.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Fri, 15 Sep 2017 17:42:41 +0200
+
 gdome2 (0.8.1+debian-6) unstable; urgency=low
 
   * QA upload.
diff --minimal -Nru gdome2-0.8.1+debian/debian/rules gdome2-0.8.1+debian/debian/rules
--- gdome2-0.8.1+debian/debian/rules	2013-04-03 16:24:55.000000000 +0200
+++ gdome2-0.8.1+debian/debian/rules	2017-09-15 17:42:41.000000000 +0200
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 # GNU copyright 1997 to 1999 by Joey Hess.
 
+# does not work with -Werror=format-security
+export DEB_BUILD_MAINT_OPTIONS=hardening=-format
+
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -O0
@@ -17,9 +20,8 @@
 	cp /usr/share/misc/config.sub /usr/share/misc/config.guess .
 	libtoolize -c -f
 	autoreconf -f -i
-	./configure --prefix=/usr \
-		    --mandir=\$${prefix}/share/man \
-		    --infodir=\$${prefix}/share/info \
+	dh_auto_configure -- \
+		    --libdir=\$${prefix}/lib \
 		    --with-html-dir=\$${prefix}/share/doc/libgdome2-dev 
 	touch configure-stamp
 

Reply to: