🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3063

Bug#1152883: rkcommon FTCBFS for various architecture combinations

#3063
From: Helmut Grohne
Date: Mon, 02 Nov 2026 20:50
56 lines
3440 bytes
--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="rkcommon_1.15.2-2.1.debdiff"

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 <helmut@subdivi.de>  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--
Technical Details
Message-ID: <NV78C-9tbZ-27@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152883: rkcommon FTCBFS for various architecture combinations
Date: Mon, 02 Nov 2026 21:50:02 +0100
Message-ID: <NV78C-9tbZ-27@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov  2 20:45:15 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152883@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-science-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1152883
X-Debian-Pr-Package: src:rkcommon
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: rkcommon
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="8DinrR0Ccaf8n5bT"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000291
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 56
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 1 Nov 2026 09:35:02 +0100
X-Original-Message-ID: <20261101083502.GA806104@subdivi.de>