[From nobody Tue Oct  6 02:37:07 2026
Received: (at submit) by bugs.debian.org; 7 Dec 2023 15:07:54 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.0 required=4.0 tests=BAYES_00,SPF_HELO_NONE,
 SPF_NONE,T_SCC_BODY_TEXT_LINE,WORD_WITHOUT_VOWELS autolearn=no
 autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 10; hammy, 150; neutral, 54; spammy,
 0. spammytokens: hammytokens:0.000-+--grohne, 0.000-+--Grohne,
 0.000-+--fPIC, 0.000-+--H*F:U*helmut, 0.000-+--H*F:D*subdivi.de
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:37338)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;helmut@subdivi.de&gt;) id 1rBFyk-00D0MB-Hl
 for submit@bugs.debian.org; Thu, 07 Dec 2023 15:07:54 +0000
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id 3F80120159C
 for &lt;submit@bugs.debian.org&gt;; Thu,  7 Dec 2023 15:07:49 +0000 (UTC)
Date: Thu, 7 Dec 2023 14:52:37 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: android-platform-system-extras FTCBFS: uses the build architecture
 pkg-config
Message-ID: &lt;20231207135237.GA2202975@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;cARr/SiPHkVlYce/&quot;
Content-Disposition: inline
X-Reportbug-Version: 12.0.0
Delivered-To: submit@bugs.debian.org


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

Source: android-platform-system-extras
Version: 10.0.0+r36+ds-2.1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

android-platform-system-extras fails to cross build from source, because
debian/rules hard codes the build architecture pkg-config. I'm attaching
a patch for your convenience.

Helmut

--cARr/SiPHkVlYce/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename=&quot;android-platform-system-extras_10.0.0+r36+ds-2.2.debdiff&quot;

diff --minimal -Nru android-platform-system-extras-10.0.0+r36+ds/debian/changelog android-platform-system-extras-10.0.0+r36+ds/debian/changelog
--- android-platform-system-extras-10.0.0+r36+ds/debian/changelog	2023-01-18 16:40:05.000000000 +0100
+++ android-platform-system-extras-10.0.0+r36+ds/debian/changelog	2023-12-07 14:46:11.000000000 +0100
@@ -1,3 +1,10 @@
+android-platform-system-extras (10.0.0+r36+ds-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne &lt;helmut@subdivi.de&gt;  Thu, 07 Dec 2023 14:46:11 +0100
+
 android-platform-system-extras (10.0.0+r36+ds-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru android-platform-system-extras-10.0.0+r36+ds/debian/rules android-platform-system-extras-10.0.0+r36+ds/debian/rules
--- android-platform-system-extras-10.0.0+r36+ds/debian/rules	2023-01-18 16:39:59.000000000 +0100
+++ android-platform-system-extras-10.0.0+r36+ds/debian/rules	2023-12-07 14:46:09.000000000 +0100
@@ -2,11 +2,13 @@
 
 include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
+-include /usr/share/dpkg/buildtools.mk
+PKG_CONFIG ?= pkg-config
 
 # Security Hardening
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -fPIC
-export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/android -DNDEBUG `pkg-config --cflags squashfuse`
+export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/android -DNDEBUG `$(PKG_CONFIG) --cflags squashfuse`
 export OUT_DIR = debian/out
 
 lib%.so: debian/lib%.mk

--cARr/SiPHkVlYce/--
]