Source: yaml-cpp0.3 Version: 0.3.0-1.2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
yaml-cpp0.3 fails to cross build from source, because it configures for the build architecture. Coming up with the right cmake flags is tedious, but dh_auto_configure solves that for us. After using it, yaml-cpp0.3 cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru yaml-cpp0.3-0.3.0/debian/changelog yaml-cpp0.3-0.3.0/debian/changelog --- yaml-cpp0.3-0.3.0/debian/changelog 2015-08-17 03:23:13.000000000 +0200 +++ yaml-cpp0.3-0.3.0/debian/changelog 2017-09-13 22:01:02.000000000 +0200 @@ -1,3 +1,11 @@ +yaml-cpp0.3 (0.3.0-1.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross compilers to cmake (closes: + #-1). + + -- Helmut Grohne <hel...@subdivi.de> Wed, 13 Sep 2017 22:01:02 +0200 + yaml-cpp0.3 (0.3.0-1.2) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru yaml-cpp0.3-0.3.0/debian/rules yaml-cpp0.3-0.3.0/debian/rules --- yaml-cpp0.3-0.3.0/debian/rules 2012-06-03 18:21:13.000000000 +0200 +++ yaml-cpp0.3-0.3.0/debian/rules 2017-09-13 22:00:59.000000000 +0200 @@ -17,10 +17,10 @@ override_dh_auto_configure: dh_testdir - mkdir build-static; cd build-static; \ - cmake .. -DCMAKE_INSTALL_PREFIX=/usr - mkdir build-shared; cd build-shared; \ - cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON + dh_auto_configure --builddirectory=build-static -- \ + -DCMAKE_INSTALL_PREFIX=/usr + dh_auto_configure --builddirectory=build-shared -- \ + -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON override_dh_auto_build: dh_testdir