🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1152368: libqalculate FTCBFS: passes host flags to the build compiler

#2494
From: Helmut Grohne
Date: Wed, 28 Oct 2026 16:00
61 lines
3756 bytes
--kNHzgBJ3MNcieuao
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

libqalculate fails to cross build from source for amd64 and arm64,
because it passes host architecture compiler flags to the build compiler
and those two architectures have architecture-specific compiler flags.
Simply removing the *_FOR_BUILD overrides fixes the cross build as
dpkg-buildflags initializes them in a suitable way. I'm attaching a
patch for your convenience.

I tracked down why they were added to
https://salsa.debian.org/debian/libqalculate/-/commit/098ab41f63b420590b1fd701d16d58c7ff0ec29c
and it mentions blhc as a cause. This is an instance where blhc is
wrong. While it is important to include compiler flags, this is a build
tool and it is not included in a binary package. Here, it is more
important to not pass incompatible flags.

Helmut

--kNHzgBJ3MNcieuao
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="libqalculate_5.13.2-1.1.debdiff"

diff -Nru libqalculate-5.13.2/debian/changelog libqalculate-5.13.2/debian/changelog
--- libqalculate-5.13.2/debian/changelog	2026-10-12 21:27:15.000000000 +0200
+++ libqalculate-5.13.2/debian/changelog	2026-10-28 15:58:42.000000000 +0100
@@ -1,3 +1,10 @@
+libqalculate (5.13.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not override _FOR_BUILD flags. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Wed, 28 Oct 2026 15:58:42 +0100
+
 libqalculate (5.13.2-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru libqalculate-5.13.2/debian/rules libqalculate-5.13.2/debian/rules
--- libqalculate-5.13.2/debian/rules	2025-11-25 07:49:35.000000000 +0100
+++ libqalculate-5.13.2/debian/rules	2026-10-28 15:58:42.000000000 +0100
@@ -4,10 +4,6 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
-export CXXFLAGS_FOR_BUILD=$(CXXFLAGS)
-export CPPFLAGS_FOR_BUILD=$(CPPFLAGS)
-export LDFLAGS_FOR_BUILD=$(LDFLAGS)
-
 %:
 	dh $@
 

--kNHzgBJ3MNcieuao--
Technical Details
Message-ID: <NTeed-8rU2-15@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#1152368: libqalculate FTCBFS: passes host flags to the build compiler
Date: Wed, 28 Oct 2026 17:00:01 +0100
Message-ID: <NTeed-8rU2-15@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 28 15:51:14 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152368@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+qalculate@tracker.debian.org
X-Debian-Pr-Message: report 1152368
X-Debian-Pr-Package: src:libqalculate
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: libqalculate
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="kNHzgBJ3MNcieuao"
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/1999386
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 61
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 28 Oct 2026 16:14:53 +0100
X-Original-Message-ID: <20261028151453.GA2061506@subdivi.de>