Source: nvidia-texture-tools Version: 2.0.8-1+dfsg-8.1 Tags: patch User: [email protected] Usertags: rebootstrap
nvidia-texture-tools fails to cross build from source, because it uses the build architecture compiler. dh_auto_configure knows how cross building works with the cmake build system, so indirecting the cmake invocation through dh_auto_configure fixes the cross build. Please consider applying the attached patch. Helmut
diff --minimal -Nru nvidia-texture-tools-2.0.8-1+dfsg/debian/changelog nvidia-texture-tools-2.0.8-1+dfsg/debian/changelog --- nvidia-texture-tools-2.0.8-1+dfsg/debian/changelog 2016-09-19 14:41:04.000000000 +0200 +++ nvidia-texture-tools-2.0.8-1+dfsg/debian/changelog 2017-01-13 20:04:26.000000000 +0100 @@ -1,3 +1,10 @@ +nvidia-texture-tools (2.0.8-1+dfsg-8.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross compilers (Closes: #-1) + + -- Helmut Grohne <[email protected]> Fri, 13 Jan 2017 20:04:26 +0100 + nvidia-texture-tools (2.0.8-1+dfsg-8.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru nvidia-texture-tools-2.0.8-1+dfsg/debian/rules nvidia-texture-tools-2.0.8-1+dfsg/debian/rules --- nvidia-texture-tools-2.0.8-1+dfsg/debian/rules 2016-09-19 14:23:34.000000000 +0200 +++ nvidia-texture-tools-2.0.8-1+dfsg/debian/rules 2017-01-13 20:04:26.000000000 +0100 @@ -7,10 +7,10 @@ CXXFLAGS+=$(CPPFLAGS) %: - dh $@ + dh $@ --buildsystem=cmake override_dh_auto_configure: - cmake -DNVTT_SHARED=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DLIB_DIR_PATH=lib/`dpkg-architecture -qDEB_HOST_MULTIARCH` + dh_auto_configure -- -DNVTT_SHARED=1 -DCMAKE_BUILD_TYPE=Release -DLIB_DIR_PATH=lib/`dpkg-architecture -qDEB_HOST_MULTIARCH` override_dh_installdocs: dh_installdocs --link-doc=libnvtt2

