Source: seer Version: 1.1.4-3 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
seer fails to cross build from source, because the cross compiler does not find -lhdf5. It seems that it does not honour the LIBRARY_PATH environment variable. Passing the library path via LDFLAGS makes cross building seer work. Please consider applying the attached patch. Helmut
diff --minimal -Nru seer-1.1.4/debian/changelog seer-1.1.4/debian/changelog --- seer-1.1.4/debian/changelog 2020-06-02 00:05:16.000000000 +0200 +++ seer-1.1.4/debian/changelog 2020-09-15 06:05:45.000000000 +0200 @@ -1,3 +1,10 @@ +seer (1.1.4-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass hdf5 libdir via LDFLAGS. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 15 Sep 2020 06:05:45 +0200 + seer (1.1.4-3) unstable; urgency=medium * Team upload diff --minimal -Nru seer-1.1.4/debian/rules seer-1.1.4/debian/rules --- seer-1.1.4/debian/rules 2020-06-02 00:05:16.000000000 +0200 +++ seer-1.1.4/debian/rules 2020-09-15 06:05:45.000000000 +0200 @@ -5,12 +5,14 @@ include /usr/share/dpkg/default.mk include /usr/share/dpkg/architecture.mk export CPATH := /usr/include/hdf5/serial -export LIBRARY_PATH := /usr/lib/$(DEB_TARGET_MULTIARCH)/hdf5/serial export DEB_BUILD_MAINT_OPTIONS = hardening=+all CMAKE_EXTRA_FLAGS += -DARMA_USE_HDF5=1 +override_dh_auto_build: + dh_auto_build -- LDFLAGS+=-L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial + override_dh_auto_install: dh_auto_install -- PREFIX=$(CURDIR)/debian/$(DEB_SOURCE)/usr for pl in scripts/*.pl ; do \