Source: xdesktopwaves Version: 1.3-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
xdesktopwaves fails to cross build from source, because it does not pass cross tools to make. The easiest way of doing so - using dh_auto_build - is insufficient here. The build system also needs the C compiler in the LINK variable. It also strips during make install with the wrong strip. The latter also breaks DEB_BUILD_OPTIONS=nostrip as well as generation of -dbgsym packages and is best avoides. The attached patch fixes all of that. Please consider applying it. Helmut
diff --minimal -Nru xdesktopwaves-1.3/debian/changelog xdesktopwaves-1.3/debian/changelog --- xdesktopwaves-1.3/debian/changelog 2012-11-27 09:50:31.000000000 +0100 +++ xdesktopwaves-1.3/debian/changelog 2019-05-27 22:07:46.000000000 +0200 @@ -1,3 +1,13 @@ +xdesktopwaves (1.3-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Also pass C compiler as LINK. + + Don't strip during make install. + + -- Helmut Grohne <hel...@subdivi.de> Mon, 27 May 2019 22:07:46 +0200 + xdesktopwaves (1.3-4) unstable; urgency=low * Using source package format "3.0 (quilt)" diff --minimal -Nru xdesktopwaves-1.3/debian/rules xdesktopwaves-1.3/debian/rules --- xdesktopwaves-1.3/debian/rules 2012-11-26 13:53:52.000000000 +0100 +++ xdesktopwaves-1.3/debian/rules 2019-05-27 22:07:46.000000000 +0200 @@ -17,7 +17,7 @@ build-stamp: configure-stamp dh_testdir - $(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LFLAGS="$(LDFLAGS) $(LDFLAGS2)" + dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS)" LFLAGS="$(LDFLAGS) $(LDFLAGS2)" LINK='$$(CC)' touch $@ build-indep: configure-stamp @@ -40,7 +40,7 @@ dh_testroot dh_prep dh_installdirs - $(MAKE) DESTDIR=$(CURDIR)/debian/xdesktopwaves install + $(MAKE) DESTDIR=$(CURDIR)/debian/xdesktopwaves install INSTALL='install --strip-program=true' # Build architecture-independent files here. binary-indep: build install