Source: yajl
Version: 2.1.0-5
Tags: patch
User: [email protected]
Usertags: ftcbfs

yajl fails to cross build from source in recent versions of sbuild as 
sbuild stopped installing cross-config, which provides the cmake 
toolchain file used by yajl. On the flip side, the toolchain file isn't 
actually required as debhelper passes all the pieces needed by CMake, so 
we may simply drop it. I'm attaching a patch for your convenience.

Helmut
diff -Nru yajl-2.1.0/debian/changelog yajl-2.1.0/debian/changelog
--- yajl-2.1.0/debian/changelog 2023-07-11 00:08:58.000000000 +0200
+++ yajl-2.1.0/debian/changelog 2025-09-29 19:59:41.000000000 +0200
@@ -1,3 +1,10 @@
+yajl (2.1.0-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Stop using dpkg-cross' toolchain file. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Mon, 29 Sep 2025 19:59:41 +0200
+
 yajl (2.1.0-5) unstable; urgency=medium
 
   * The patch for CVE-2023-33460 turned out to be incomplete.  Fix that.
diff -Nru yajl-2.1.0/debian/rules yajl-2.1.0/debian/rules
--- yajl-2.1.0/debian/rules     2023-07-09 01:50:23.000000000 +0200
+++ yajl-2.1.0/debian/rules     2025-09-29 19:59:39.000000000 +0200
@@ -13,10 +13,6 @@
 # Needed if building with clang
 export DEB_CFLAGS_MAINT_APPEND = -fvisibility=hidden
 
-ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-CROSS_CONFIG := -DCMAKE_TOOLCHAIN_FILE="/etc/dpkg-cross/cmake/CMakeCross.txt"
-endif
-
 %:
        dh $@
 

Reply via email to