Source: tinycdb
Version: 0.81-1
Tags: patch
User: [email protected]
Usertags: ftcbfs
tinycdb fails to cross build from source, because it forces use of the
build architecture compiler as a GNU Make default in debian/rules by
using the default value of the ${CC} variable. The common solution here
is to defer its initialization to dpkg's buildtools.mk. I'm attaching a
patch for your convenience.
Helmut
diff --minimal -Nru tinycdb-0.81/debian/changelog tinycdb-0.81/debian/changelog
--- tinycdb-0.81/debian/changelog 2023-12-25 21:57:41.000000000 +0100
+++ tinycdb-0.81/debian/changelog 2024-11-27 09:15:38.000000000 +0100
@@ -1,3 +1,10 @@
+tinycdb (0.81-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dpkg's buildtools.mk provide ${CC}. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Wed, 27 Nov 2024 09:15:38 +0100
+
tinycdb (0.81-1) unstable; urgency=medium
* new upstream release
diff --minimal -Nru tinycdb-0.81/debian/rules tinycdb-0.81/debian/rules
--- tinycdb-0.81/debian/rules 2023-12-25 21:47:53.000000000 +0100
+++ tinycdb-0.81/debian/rules 2024-11-27 09:15:36.000000000 +0100
@@ -2,6 +2,8 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all future=+lfs
+include /usr/share/dpkg/buildtools.mk
+
build-arch build-indep build \
install-arch install-indep install \
binary-arch binary-indep binary \