Source: hoichess Version: 0.22.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability ftcbfs
hoichess fails to cross build from source. It Build-Depends on the host architecture perl, which is not installable. It really needs the build architecture perl, so annotating the dependency with :native is in order. Then the build system uses the compiler during make install (to determine the triplet). This is unusual, but fine. Unfortunately, debhelper doesn't pass cross tools during make install. We'll have to do that manually. Then hoichess cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru hoichess-0.22.0/debian/changelog hoichess-0.22.0/debian/changelog --- hoichess-0.22.0/debian/changelog 2018-05-24 23:34:56.000000000 +0200 +++ hoichess-0.22.0/debian/changelog 2019-06-13 06:27:55.000000000 +0200 @@ -1,3 +1,12 @@ +hoichess (0.22.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Annotate Build-Depends: perl with :native. + + Also pass CXX to make install. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 13 Jun 2019 06:27:55 +0200 + hoichess (0.22.0-1) unstable; urgency=medium * New upstream version 0.22.0 diff --minimal -Nru hoichess-0.22.0/debian/control hoichess-0.22.0/debian/control --- hoichess-0.22.0/debian/control 2018-05-24 23:34:56.000000000 +0200 +++ hoichess-0.22.0/debian/control 2019-06-13 06:27:53.000000000 +0200 @@ -5,7 +5,7 @@ Build-Depends: debhelper (>= 11), libreadline-dev, m4, - perl, + perl:native, pgn-extract Standards-Version: 4.1.4.1 Homepage: http://www.hoicher.de/hoichess/ diff --minimal -Nru hoichess-0.22.0/debian/rules hoichess-0.22.0/debian/rules --- hoichess-0.22.0/debian/rules 2018-05-24 23:34:56.000000000 +0200 +++ hoichess-0.22.0/debian/rules 2019-06-13 06:27:55.000000000 +0200 @@ -1,5 +1,6 @@ #!/usr/bin/make -f +-include /usr/share/dpkg/buildtools.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed @@ -10,5 +11,8 @@ cp /usr/share/pgn-extract/eco.pgn ./book/hoichess-book.pgn dh_auto_build +override_dh_auto_install: + dh_auto_install -- 'CXX=$(CXX)' + override_dh_link: dh_link usr/share/man/man6/hoichess.6.gz usr/share/man/man6/hoixiangqi.6.gz