Source: libsvm Version: 3.21+ds-1.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libsvm fails to cross build from source. It's dependency on python-all is not installable, because python-all can only be installed for executable architectures. Switching that dependency to the build architecture by appending either :native or :any fixes that. While at it, I also propose moving default-jdk to Build-Depends-Indep to reflect that it is only used during binary-indep. Further down the road, it invokes plain g++, which is the build architecture compiler where a host architecture one was needed. Prepending $(DEB_HOST_GNU_TYPE)- fixes that as well and with the attached patch applied, libsvm cross builds successfully. Please consider applying it after stretch is released. Helmut
diff --minimal -Nru libsvm-3.21+ds/debian/changelog libsvm-3.21+ds/debian/changelog --- libsvm-3.21+ds/debian/changelog 2016-07-30 05:20:01.000000000 +0200 +++ libsvm-3.21+ds/debian/changelog 2017-05-10 06:27:12.000000000 +0200 @@ -1,3 +1,13 @@ +libsvm (3.21+ds-1.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closs: #-1) + + Move default-jdk to Build-Depends-Indep + + Annotate python-all dependency with :native + + Use a triplet-prefixed CXX + + -- Helmut Grohne <hel...@subdivi.de> Wed, 10 May 2017 06:27:12 +0200 + libsvm (3.21+ds-1.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru libsvm-3.21+ds/debian/control libsvm-3.21+ds/debian/control --- libsvm-3.21+ds/debian/control 2016-02-05 17:03:53.000000000 +0100 +++ libsvm-3.21+ds/debian/control 2017-05-10 06:27:12.000000000 +0200 @@ -7,8 +7,9 @@ debhelper (>= 9), libtool, cdbs, - python-all (>= 2.3.5-7), + python-all:native (>= 2.3.5-7), dh-python, +Build-Depends-Indep: default-jdk Standards-Version: 3.9.8 Homepage: http://www.csie.ntu.edu.tw/~cjlin/libsvm/ diff --minimal -Nru libsvm-3.21+ds/debian/rules libsvm-3.21+ds/debian/rules --- libsvm-3.21+ds/debian/rules 2016-07-21 19:58:59.000000000 +0200 +++ libsvm-3.21+ds/debian/rules 2017-05-10 06:26:10.000000000 +0200 @@ -1,5 +1,6 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk include /usr/share/cdbs/1/rules/debhelper.mk # install examples @@ -28,7 +29,9 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk -CXX ?= g++ +ifeq ($(origin CXX),default) +CXX = $(DEB_HOST_GNU_TYPE)-g++ +endif HARDEN_CFLAGS=$(CFLAGS) $(LDFLAGS) $(CPPFLAGS) HARDEN_CXXFLAGS=$(CXXFLAGS) $(LDFLAGS) $(CPPFLAGS)