[From nobody Tue Nov  3 21:07:12 2026
Received: (at submit) by bugs.debian.org; 23 Nov 2025 21:46:45 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,
 RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_NONE,
 WORD_WITHOUT_VOWELS autolearn=no autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 12; hammy, 150; neutral, 77; spammy,
 0. spammytokens: hammytokens:0.000-+--armhf, 0.000-+--grohne,
 0.000-+--Grohne, 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:35722)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;helmut@subdivi.de&gt;) id 1vNHut-0024tx-2S
 for submit@bugs.debian.org; Sun, 23 Nov 2025 21:46:45 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdivi.de;
 s=k22.isilmar-4; t=1763934400;
 bh=ov13/dMJJCtXQWuXkXdp28/ABecu/xRRUsaGF5I2wzU=;
 h=Date:From:To:Subject:From;
 b=L67EA9i/Vi1poil8aDERQnsSQuZlgxIlm4Y0fYGiuca5HX02v5Je0rp/Vm97krnGU
 9+rro60Bdam3Whp44zHZq3tGj8zPAHE6VZ95zqdaKX+/6f5NyV4xZ71bCvkzYmK0C0
 XFW/JfbvJC1rqYeAA4CUyG4isQUE9khQNRIGry6BFVWxbK/X+fsHxamwdj0YHzALaM
 cPRsvT4RolI9haMU08hvSV5N8MtX+MJ9AUFhVHKylUaAH49Ed4+4pNGaH2wmo+hVjQ
 BJrjS7mKOxSK+SZiPLHJWhckJOoq6dQVFypkO1rjwHoD9gAzSVsQkgOP+paN5NLmQY
 Sv9t2fJfCqmfw==
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id A1B5B20027C
 for &lt;submit@bugs.debian.org&gt;; Sun, 23 Nov 2025 21:46:40 +0000 (UTC)
Date: Sun, 23 Nov 2025 20:20:08 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libimobiledevice FTCBFS: fails checking for a Python development
 environment
Message-ID: &lt;20251123192008.GA347092@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;Y01wTuC7E8aEVU8/&quot;
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
Delivered-To: submit@bugs.debian.org


--Y01wTuC7E8aEVU8/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: libimobiledevice
Version: 1.4.0-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libimobiledevice fails to cross build from source for armhf, because its
check for a consistent Python development environment fails there. It is
unclear to me why this succeeds for other architectures. Generally, one
can see that all cross builds try to use the build architecture library
directory. The typical root cause is using the wrong sysconfigdata and
the usual solution is to export _PYTHON_SYSCONFIGDATA_NAME. I'm
attaching a patch for your convenience. Please consider applying it.

Helmut

--Y01wTuC7E8aEVU8/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename=&quot;libimobiledevice_1.4.0-1.1.debdiff&quot;

diff -Nru libimobiledevice-1.4.0/debian/changelog libimobiledevice-1.4.0/debian/changelog
--- libimobiledevice-1.4.0/debian/changelog	2025-10-26 21:48:31.000000000 +0100
+++ libimobiledevice-1.4.0/debian/changelog	2025-11-23 19:41:42.000000000 +0100
@@ -1,3 +1,10 @@
+libimobiledevice (1.4.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export _PYTHON_SYSCONFIGDATA_NAME for the extension build. (Closes: #-1)
+
+ -- Helmut Grohne &lt;helmut@subdivi.de&gt;  Sun, 23 Nov 2025 19:41:42 +0100
+
 libimobiledevice (1.4.0-1) unstable; urgency=medium
 
   * Team upload.
diff -Nru libimobiledevice-1.4.0/debian/rules libimobiledevice-1.4.0/debian/rules
--- libimobiledevice-1.4.0/debian/rules	2025-10-08 01:03:27.000000000 +0200
+++ libimobiledevice-1.4.0/debian/rules	2025-11-23 19:41:42.000000000 +0100
@@ -2,6 +2,10 @@
 
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+include /usr/share/dpkg/architecture.mk
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}
+endif
 
 configure_flags += \
 		--prefix=/usr \

--Y01wTuC7E8aEVU8/--
]