Source: nheko Version: 0.7.1-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability ftcbfs
nheko fails to cross build from source. The immediate cause is its Build-Depends on g++. This dependency is unsatisfiable and needs cross translation. Unfortunately, cross translation isn't supported in the archive yet. However, the dependency is implicitly satisfied even in buster, so it can be safely dropped. Then it runs cmake for the build architecture. An easy way to pass cross flags to cmake is calling it via dh_auto_configure The resulting patch makes nheko cross buildable. Please consider applying it. Helmut
diff --minimal -Nru nheko-0.7.1/debian/changelog nheko-0.7.1/debian/changelog --- nheko-0.7.1/debian/changelog 2020-04-24 20:02:57.000000000 +0200 +++ nheko-0.7.1/debian/changelog 2020-05-24 17:24:16.000000000 +0200 @@ -1,3 +1,12 @@ +nheko (0.7.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Drop g++ build dependency satisfied in buster. + + Let dh_auto_configure pass cross flags to cmake. + + -- Helmut Grohne <hel...@subdivi.de> Sun, 24 May 2020 17:24:16 +0200 + nheko (0.7.1-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru nheko-0.7.1/debian/control nheko-0.7.1/debian/control --- nheko-0.7.1/debian/control 2020-04-24 17:57:33.000000000 +0200 +++ nheko-0.7.1/debian/control 2020-05-24 17:24:14.000000000 +0200 @@ -6,7 +6,6 @@ Build-Depends: cmake (>= 3.15) , debhelper-compat (=12) , dh-exec - , g++ (>= 4:7) , libboost1.71-dev , libboost-atomic1.71-dev , libboost-chrono1.71-dev diff --minimal -Nru nheko-0.7.1/debian/rules nheko-0.7.1/debian/rules --- nheko-0.7.1/debian/rules 2020-03-09 23:52:04.000000000 +0100 +++ nheko-0.7.1/debian/rules 2020-05-24 17:24:16.000000000 +0200 @@ -15,10 +15,10 @@ override_dh_auto_build: FAKEHOME = HOME=$(CURDIR)/fakehome override_dh_auto_build: [ -d fakehome ] || mkdir fakehome - $(FAKEHOME) cmake -Hmtxclient -B.deps -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_LIB_TESTS=OFF -DBUILD_SHARED_LIBS=OFF - $(FAKEHOME) cmake --build .deps - $(FAKEHOME) cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=.deps/usr -DCMAKE_VERBOSE_MAKEFILE=ON - $(FAKEHOME) cmake --build build + $(FAKEHOME) dh_auto_configure --sourcedirectory=mtxclient --builddirectory=.deps -- -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_LIB_TESTS=OFF -DBUILD_SHARED_LIBS=OFF + $(FAKEHOME) dh_auto_build --sourcedirectory=mtxclient --builddirectory=.deps + $(FAKEHOME) dh_auto_configure --builddirectory=build -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=.deps -DCMAKE_INSTALL_PREFIX=.deps/usr -DCMAKE_VERBOSE_MAKEFILE=ON + $(FAKEHOME) dh_auto_build --builddirectory=build rm -rf fakehome override_dh_auto_test: