Source: libcrypto++
Version: 8.7.0+git220824-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libcrypto++ fails to cross build from source, because it uses the build
architecture compiler. This happens during dh_auto_install after
successfully building the entire thing successfully with dh_auto_build.
Unlike dh_auto_build, dh_auto_install does not pass cross tools to make,
but libcrypto++ needs to build things there for some reason. The easy
way is to have dpkg's buildtools.mk export cross tools for all targets.
Please consider applying the attached patch to make libcrypto++ cross
buildable.

Helmut
--- libcrypto++-8.7.0+git220824/debian/changelog
+++ libcrypto++-8.7.0+git220824/debian/changelog
@@ -1,3 +1,10 @@
+libcrypto++ (8.7.0+git220824-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export build tools for all targets. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 01 Sep 2022 18:01:18 +0200
+
 libcrypto++ (8.7.0+git220824-1) unstable; urgency=medium
 
   * New git snapshot release.
--- libcrypto++-8.7.0+git220824/debian/rules
+++ libcrypto++-8.7.0+git220824/debian/rules
@@ -4,11 +4,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 DOC_PKG_DIR = $(CURDIR)/debian/libcrypto++-doc/
 
 
+DPKG_EXPORT_BUILDTOOLS=1
 include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildtools.mk
 
 ifneq ($(filter $(DEB_HOST_ARCH),armel powerpc),)
         export DEB_LDFLAGS_MAINT_APPEND= -latomic

Reply via email to