Source: agg
Version: 1:2.4-r127+dfsg1-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

agg fails to cross build from source, because it configures for the
build architecture by not passing the relevant --host flag. The easiest
way of doing so is using dh_auto_configure. The attached patch
implements that and makes agg cross buildable. Please consider applying
it.

Helmut
diff --minimal -Nru agg-2.4-r127+dfsg1/debian/changelog 
agg-2.4-r127+dfsg1/debian/changelog
--- agg-2.4-r127+dfsg1/debian/changelog 2017-08-14 00:32:15.000000000 +0200
+++ agg-2.4-r127+dfsg1/debian/changelog 2018-11-26 21:57:00.000000000 +0100
@@ -1,3 +1,10 @@
+agg (1:2.4-r127+dfsg1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 26 Nov 2018 21:57:00 +0100
+
 agg (1:2.4-r127+dfsg1-1) unstable; urgency=medium
 
   * I am taking over this package. Thank you Andrea Veri for your
diff --minimal -Nru agg-2.4-r127+dfsg1/debian/rules 
agg-2.4-r127+dfsg1/debian/rules
--- agg-2.4-r127+dfsg1/debian/rules     2017-06-19 06:27:04.000000000 +0200
+++ agg-2.4-r127+dfsg1/debian/rules     2018-11-26 21:57:00.000000000 +0100
@@ -2,7 +2,7 @@
 
 FLAVOURS := pic nonpic
 
-CONFIGURE_ARGS_COMMON := --prefix=/usr --disable-examples 
--x-includes=/usr/include --x-libraries=/usr/lib
+CONFIGURE_ARGS_COMMON := --libdir=/usr/lib --disable-examples 
--x-includes=/usr/include --x-libraries=/usr/lib
 CONFIGURE_ARGS_pic := -with-pic
 CONFIGURE_ARGS_nonpic := --disable-gpc
 DESTDIR_nonpic := debian/libagg-dev
@@ -19,7 +19,8 @@
        mkdir -p $(CURDIR)/$(builddir)
        find $(CURDIR)/* -maxdepth 0 -not -path '$(CURDIR)/obj-*' | \
                xargs cp -rlf -t $(CURDIR)/$(builddir)
-       cd $(builddir) && env NOCONFIGURE=1 sh autogen.sh && ./configure 
$(CONFIGURE_ARGS_COMMON) $(CONFIGURE_ARGS_$(1)) $(shell dpkg-buildflags 
--export=configure)
+       cd $(builddir) && env NOCONFIGURE=1 sh autogen.sh
+       dh_auto_configure --sourcedirectory=$(builddir) -- 
$(CONFIGURE_ARGS_COMMON) $(CONFIGURE_ARGS_$(1)) $(shell dpkg-buildflags 
--export=configure)
        touch $$@
 
 build-$(1): build-$(1)-stamp

Reply via email to