Source: sra-sdk Version: 2.7.0-1 Tags: patch Hi Maintainer
Similar to #859257 in libngs-sdk-dev and #859260 in libncbi-vdb-dev, src:sra-sdk FTBFS on i386 because it is unable to link objects shipped in these packages. The attached patch uses DEB_HOST_MULTIARCH instead of DEB_BUILD_GNU_TYPE to fix the linking. Regards Graham
--- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ dh $@ OUTDIR=$(CURDIR)/debian/tmp -BUILDTYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) override_dh_auto_clean: @@ -23,14 +23,14 @@ override_dh_auto_configure: # output dir will be checked so create it before mkdir -p debian/tmp/usr/lib - ln -s /usr/lib/$(BUILDTYPE) debian/tmp/usr/lib + ln -s /usr/lib/$(MULTIARCH) debian/tmp/usr/lib # # that's no standard configure script lacking support of default options # # --with-debug sets some options that require header files like compiler.h which # is internal to ncbi-vcb and not installed into the package - so this option # should not be used. - ./configure --build=$(BUILDTYPE) --prefix=$(CURDIR)/debian/tmp/usr --build-prefix=$(CURDIR)/debian/tmp/usr --with-ngs-sdk-prefix=/usr + ./configure --build=$(MULTIARCH) --prefix=$(CURDIR)/debian/tmp/usr --build-prefix=$(CURDIR)/debian/tmp/usr --with-ngs-sdk-prefix=/usr override_dh_auto_build: export LD_LIBRARY_PATH="$$LD_LIBRARY_PATH:$(OUTDIR)/lib"; export OUTDIR=$(OUTDIR) ; make DEB_CFLAGS="$(CFLAGS)" DEB_LDFLAGS="$(LDFLAGS)"