Package: apg Version: 2.2.3.dfsg.1-3 Followup-For: Bug #734870 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu yakkety ubuntu-patch
Control: tags -1 - moreinfo Hi Marc, > Is any special handling for cross building necessary in a debhelper 9 > package? > The handcrafted Makefile of apg still uses plain gcc. Since your package is using a bare Makefile, yes, special handling is still needed for cross-compilation support. (We can't assume that a random Makefile honors any particular variable for cross-compiler name.) The attach patch is updated for the debhelper 9 version of apg, and has been uploaded to Ubuntu. Thanks for considering, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru apg-2.2.3.dfsg.1/debian/rules apg-2.2.3.dfsg.1/debian/rules --- apg-2.2.3.dfsg.1/debian/rules 2016-03-12 02:54:39.000000000 -0800 +++ apg-2.2.3.dfsg.1/debian/rules 2016-07-19 17:19:10.000000000 -0700 @@ -1,10 +1,19 @@ #!/usr/bin/make -f +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CC="$(DEB_HOST_GNU_TYPE)-gcc" +else +CC=gcc +endif + %: dh $@ override_dh_auto_build: - make standalone + make standalone CC=$(CC) override_dh_auto_install: make install INSTALL_PREFIX=$(CURDIR)/debian/apg/usr