Source: ripser Version: 1.2.1-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ripser fails to cross build from source, because debian/rules hard codes the build architecture compiler. The easiest way of fixing that - using dpkg's buildtools.mk to initialize CXX - makes ripser cross buildable. Please consider applying the attached patch. Helmut
diff --minimal -Nru ripser-1.2.1/debian/changelog ripser-1.2.1/debian/changelog --- ripser-1.2.1/debian/changelog 2021-08-14 18:10:29.000000000 +0200 +++ ripser-1.2.1/debian/changelog 2021-08-26 13:48:50.000000000 +0200 @@ -1,3 +1,10 @@ +ripser (1.2.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dpkg's buildtools.mk supply a C++ compiler. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 26 Aug 2021 13:48:50 +0200 + ripser (1.2.1-1) unstable; urgency=medium * New upstream version. diff --minimal -Nru ripser-1.2.1/debian/rules ripser-1.2.1/debian/rules --- ripser-1.2.1/debian/rules 2021-08-14 18:01:42.000000000 +0200 +++ ripser-1.2.1/debian/rules 2021-08-26 13:48:49.000000000 +0200 @@ -5,6 +5,8 @@ CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) +-include /usr/share/dpkg/buildtools.mk + %: dh $@ @@ -12,8 +14,8 @@ mkdir -p build override_dh_auto_build: - c++ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o build/ripser ripser.cpp - c++ $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DUSE_COEFFICIENTS -o build/ripser-coeff ripser.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o build/ripser ripser.cpp + $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -DUSE_COEFFICIENTS -o build/ripser-coeff ripser.cpp override_dh_auto_clean: rm -rf build