[From nobody Mon Nov  2 21:37:06 2026
Received: (at submit) by bugs.debian.org; 2 Nov 2026 20:44:36 +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=-1.8 required=4.0 tests=BAYES_00, DATE_IN_PAST_24_48, 
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 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, 17; hammy, 150; neutral, 50; spammy,
 0. spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian, 0.000-+--HTo:N*Bug, 0.000-+--HTo:N*System,
 0.000-+--HTo:N*Tracking
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:52144)
 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 1xNytQ-004ZZD-2C
 for submit@bugs.debian.org; Mon, 02 Nov 2026 20:44:36 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdivi.de;
 s=k34.isilmar-4; t=1793652273;
 bh=AgT28Zx3m+maTOjDaC2s0m8QPpScRD2kBBJ5MZVLLrs=;
 h=Date:From:To:Subject:From;
 b=eenS0lKl3VzfJCLPhOA2R8/roEixDQ4OdcERROl2BmErWpjgX20grYaRn27igEZ8K
 HaMRPw4fQBU8pdeJxm5h7pk8DLG51vXMJXTxJhIVm+0j16o24RZk/G/hMQxXl+9jm5
 SnWAxs1q8o4zbs477LpVEeNKKy+UmNojdewiIf5kwRfqD0rjpe7RArOPb5i1gIcmP1
 b0CUctQpHFuwg19WHKjOGVYqnqS4C+k1+KKfGwRmvk3TV9gnUAcYgi4GsULFdlFB7a
 IwGqBFAJymA3z4+O0JiPJTMmtujTWYhjb4d4egcDetrsdsCLqcWtLVJmDrr9v0z6uR
 zS3/b0rmjQHZQ==
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id 6A05A2009BB
 for &lt;submit@bugs.debian.org&gt;; Mon,  2 Nov 2026 20:44:33 +0000 (UTC)
Date: Sun, 1 Nov 2026 09:35:02 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: rkcommon FTCBFS for various architecture combinations
Message-ID: &lt;20261101083502.GA806104@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;8DinrR0Ccaf8n5bT&quot;
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
Delivered-To: submit@bugs.debian.org


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

Source: rkcommon
Version: 1.15.2-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

rkcommon fails to cross build from source when building on amd64 or
arm64 for something other than amd64 or arm64, because it detects the
SIMD feature based on the build architecture while it should be
considering the host architecture. The attached patch fixes this. It
also widens the matching such that SIMD is enabled on all architectures
with those CPUs such as hurd-amd64 or musl-linux-arm64 as I think this
was the original intention. Please consider applying it.

Helmut

--8DinrR0Ccaf8n5bT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=&quot;rkcommon_1.15.2-2.1.debdiff&quot;

diff -Nru rkcommon-1.15.2/debian/changelog rkcommon-1.15.2/debian/changelog
--- rkcommon-1.15.2/debian/changelog	2026-10-31 01:20:00.000000000 +0100
+++ rkcommon-1.15.2/debian/changelog	2026-11-01 09:29:02.000000000 +0100
@@ -1,3 +1,10 @@
+rkcommon (1.15.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix build vs host confusion. (Closes: #-1)
+
+ -- Helmut Grohne &lt;helmut@subdivi.de&gt;  Sun, 01 Nov 2026 09:29:02 +0100
+
 rkcommon (1.15.2-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru rkcommon-1.15.2/debian/rules rkcommon-1.15.2/debian/rules
--- rkcommon-1.15.2/debian/rules	2026-10-30 23:00:00.000000000 +0100
+++ rkcommon-1.15.2/debian/rules	2026-11-01 09:28:44.000000000 +0100
@@ -5,9 +5,9 @@
 
 # Upstream supports SIMD on amd64 and arm64 only.
 NO_SIMD=ON
-ifeq ($(DEB_BUILD_ARCH), amd64)
+ifeq ($(DEB_HOST_ARCH_CPU), amd64)
 NO_SIMD=OFF
-else ifeq ($(DEB_BUILD_ARCH), arm64)
+else ifeq ($(DEB_HOST_ARCH_CPU), arm64)
 NO_SIMD=OFF
 endif
 

--8DinrR0Ccaf8n5bT--
]