Source: libpolyclipping Version: 6.4.2-3 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libpolyclipping fails to cross build from source, because it does not pass cross flags to cmake. The easiest way of fixing that is using dh_auto_configure. The attached patch does that and simplifies debian/rules a little using the --sourcedirectory flag. Please consider applying the patch. Helmut
diff --minimal -Nru libpolyclipping-6.4.2/debian/changelog libpolyclipping-6.4.2/debian/changelog --- libpolyclipping-6.4.2/debian/changelog 2017-10-17 06:33:36.000000000 +0200 +++ libpolyclipping-6.4.2/debian/changelog 2018-12-02 11:01:16.000000000 +0100 @@ -1,3 +1,10 @@ +libpolyclipping (6.4.2-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross flags to cmake. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 02 Dec 2018 11:01:16 +0100 + libpolyclipping (6.4.2-3) unstable; urgency=medium * Upload to unstable. diff --minimal -Nru libpolyclipping-6.4.2/debian/rules libpolyclipping-6.4.2/debian/rules --- libpolyclipping-6.4.2/debian/rules 2017-10-03 18:10:53.000000000 +0200 +++ libpolyclipping-6.4.2/debian/rules 2018-12-02 11:01:14.000000000 +0100 @@ -15,11 +15,4 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. %: - dh $@ - -override_dh_auto_build: - cmake cpp -DCMAKE_INSTALL_PREFIX=/usr - -override_dh_auto_clean: - dh_auto_clean - rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile polyclipping.pc install_manifest.txt + dh $@ --sourcedirectory=cpp