Source: wm2 Version: 4+svn20090216-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
wm2 fails to cross build from source, because it uses the build architecture compiler. Using dh_auto_build doesn't fix that, because it uses a non-standard variable CCC to identify the C++ compiler. After renaming it, wm2 cross builds. Please consider applying the attached patch. Helmut
diff --minimal -Nru wm2-4+svn20090216/debian/changelog wm2-4+svn20090216/debian/changelog --- wm2-4+svn20090216/debian/changelog 2019-01-27 20:08:55.000000000 +0100 +++ wm2-4+svn20090216/debian/changelog 2019-05-11 06:38:50.000000000 +0200 @@ -1,3 +1,12 @@ +wm2 (4+svn20090216-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Rename C++ compiler to CCC. + + -- Helmut Grohne <hel...@subdivi.de> Sat, 11 May 2019 06:38:50 +0200 + wm2 (4+svn20090216-4) unstable; urgency=medium * modernize debian packaging diff --minimal -Nru wm2-4+svn20090216/debian/rules wm2-4+svn20090216/debian/rules --- wm2-4+svn20090216/debian/rules 2019-01-27 20:08:55.000000000 +0100 +++ wm2-4+svn20090216/debian/rules 2019-05-11 06:38:50.000000000 +0200 @@ -22,8 +22,8 @@ build-arch-stamp: dh_testdir # it's a C++ program, but it uses CFLAGS instead of CXXFLAGS - $(MAKE) CFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)' \ - LIBS="-lXext -lX11" INCS='$(CPPFLAGS)' + dh_auto_build -- CFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)' \ + LIBS="-lXext -lX11" INCS='$(CPPFLAGS)' CCC='$$(CXX)' touch build-arch-stamp clean: