Source: icewm Version: 1.3.8+mod+20161220-1 Tags: patch User: [email protected] Usertags: rebootstrap
icewm fails to cross build from source, because it does not pass cross compilers to cmake and thus uses the build architecture ones. Thankfully, debhelper's cmake support is well aware of cross building, so simply indirecting the cmake invocations through dh_auto_configure makes it cross build successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru icewm-1.3.8+mod+20161220/debian/changelog icewm-1.3.8+mod+20161220/debian/changelog --- icewm-1.3.8+mod+20161220/debian/changelog 2016-12-20 20:28:11.000000000 +0100 +++ icewm-1.3.8+mod+20161220/debian/changelog 2017-01-11 09:31:35.000000000 +0100 @@ -1,3 +1,10 @@ +icewm (1.3.8+mod+20161220-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross compilers (closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 11 Jan 2017 09:31:35 +0100 + icewm (1.3.8+mod+20161220-1) unstable; urgency=low * New upstream snapshot diff --minimal -Nru icewm-1.3.8+mod+20161220/debian/rules icewm-1.3.8+mod+20161220/debian/rules --- icewm-1.3.8+mod+20161220/debian/rules 2016-12-20 20:28:11.000000000 +0100 +++ icewm-1.3.8+mod+20161220/debian/rules 2017-01-11 09:31:35.000000000 +0100 @@ -31,15 +31,15 @@ DEBVERSION := $(shell dpkg-parsechangelog |grep ^Version | sed -e s,Version:.,,) ORIGVERSION := $(shell echo $(DEBVERSION) | sed -e 's,-[^-]*$$,,' ) -cmakecmd = cmake $(CURDIR) -DICEHELPIDX=/usr/share/doc/icewm-common/html/icewm.html -DCFGDIR=/etc/X11/icewm -DCMAKE_INSTALL_PREFIX=/usr -DVERSION=$(ORIGVERSION) -DDOCDIR=$(DOCDIR) -DEXTRA_LIBS="-lsupc++" -DCMAKE_VERBOSE_MAKEFILE=ON +cmakeargs = -DICEHELPIDX=/usr/share/doc/icewm-common/html/icewm.html -DCFGDIR=/etc/X11/icewm -DVERSION=$(ORIGVERSION) -DDOCDIR=$(DOCDIR) -DEXTRA_LIBS="-lsupc++" -DCMAKE_VERBOSE_MAKEFILE=ON config_lite: - mkdir -p $(BDIR)-lite - cd $(BDIR)-lite && $(cmakecmd) -DLITE=on -DEXEEXT=-lite -DCONFIG_XFREETYPE=off -DCONFIG_COREFONTS=on -DXINERAMA=on -DCONFIG_XRANDR=off -DCONFIG_TASKBAR=off -DCONFIG_FDO_MENUS=off -DSKIP_TRANSLATIONS=on + dh_auto_configure --builddirectory=$(BDIR)-lite -- \ + $(cmakeargs) -DLITE=on -DEXEEXT=-lite -DCONFIG_XFREETYPE=off -DCONFIG_COREFONTS=on -DXINERAMA=on -DCONFIG_XRANDR=off -DCONFIG_TASKBAR=off -DCONFIG_FDO_MENUS=off -DSKIP_TRANSLATIONS=on config_normal: - mkdir -p $(BDIR)-normal - cd $(BDIR)-normal && $(cmakecmd) -DCONFIG_XRANDR=on -DCONFIG_GUIEVENTS=on + dh_auto_configure --builddirectory=$(BDIR)-normal -- \ + $(cmakeargs) -DCONFIG_XRANDR=on -DCONFIG_GUIEVENTS=on override_dh_auto_configure: $(MAKE) -f debian/rules -j2 config_normal config_lite

