Source: fparserc++ Version: 4.5.2-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
fparserc++ fails to cross build from source, because it does not pass any cross compilation flags to cmake and thus builds for the build architecture. The easiest way of passing those flags - using dh_auto_configure - makes fparserc++ cross buildable. Please consider applying the attached patch. Helmut
diff --minimal -Nru fparserc++-4.5.2/debian/changelog fparserc++-4.5.2/debian/changelog --- fparserc++-4.5.2/debian/changelog 2018-08-25 21:43:28.000000000 +0200 +++ fparserc++-4.5.2/debian/changelog 2019-12-03 22:10:28.000000000 +0100 @@ -1,3 +1,10 @@ +fparserc++ (4.5.2-2.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> Tue, 03 Dec 2019 22:10:28 +0100 + fparserc++ (4.5.2-2) unstable; urgency=medium * debian/control: diff --minimal -Nru fparserc++-4.5.2/debian/rules fparserc++-4.5.2/debian/rules --- fparserc++-4.5.2/debian/rules 2018-08-25 21:43:28.000000000 +0200 +++ fparserc++-4.5.2/debian/rules 2019-12-03 22:10:27.000000000 +0100 @@ -17,8 +17,7 @@ mv util/tree_grammar_parser.cc util/tree_grammar_parser.cc.bak make util/tree_grammar_parser.cc make fpoptimizer.cc - mkdir -p build - cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" .. + dh_auto_configure --builddirectory=build -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" override_dh_auto_build: cd build && make