🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1155175: gcsa2 FTCBFS: hard codes a build architecture C++ compiler

#6006
From: Helmut Grohne
Date: Tue, 24 Nov 2026 21:00
58 lines
3416 bytes
--sGdhJ8gXL52vAjsz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: gcsa2
Version: 1.4+dfsg-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

gcsa2 fails to cross build from source, because debian/rules hard codes
the build architecture C++ compiler as g++. The easiest way of fixing
this is employing dpkg's buildtools.mk to construct a suitable version.
Please consider applying the attached patch.

Helmut

--sGdhJ8gXL52vAjsz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gcsa2_1.4+dfsg-1.1.debdiff"

diff -Nru gcsa2-1.4+dfsg/debian/changelog gcsa2-1.4+dfsg/debian/changelog
--- gcsa2-1.4+dfsg/debian/changelog	2026-10-22 11:30:29.000000000 +0200
+++ gcsa2-1.4+dfsg/debian/changelog	2026-11-22 16:30:56.000000000 +0100
@@ -1,3 +1,10 @@
+gcsa2 (1.4+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply a C++ compiler. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 22 Nov 2026 16:30:56 +0100
+
 gcsa2 (1.4+dfsg-1) unstable; urgency=medium
 
   * Initial release. (Closes: #1151599)
diff -Nru gcsa2-1.4+dfsg/debian/rules gcsa2-1.4+dfsg/debian/rules
--- gcsa2-1.4+dfsg/debian/rules	2026-10-22 11:30:29.000000000 +0200
+++ gcsa2-1.4+dfsg/debian/rules	2026-11-22 16:30:56.000000000 +0100
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildtools.mk
+
 # DH_VERBOSE := 1
 export LC_ALL=C.UTF-8
 
@@ -9,7 +11,7 @@
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build -- MY_CXX=g++ INC_DIR=/usr/include LIB_DIR=/usr/lib
+	dh_auto_build -- MY_CXX=$(CXX) INC_DIR=/usr/include LIB_DIR=/usr/lib
 
 execute_after_dh_install:
 	ln -s libgcsa2.so.1.4 lib/libgcsa2.so.1

--sGdhJ8gXL52vAjsz--
Technical Details
Message-ID: <O35Ml-dWvb-25@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155175: gcsa2 FTCBFS: hard codes a build architecture C++ compiler
Date: Tue, 24 Nov 2026 22:00:01 +0100
Message-ID: <O35Ml-dWvb-25@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 20:51:31 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1155175@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message: report 1155175
X-Debian-Pr-Package: src:gcsa2
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: gcsa2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="sGdhJ8gXL52vAjsz"
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/2004786
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 58
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 22 Nov 2026 16:34:49 +0100
X-Original-Message-ID: <20261122153449.GA3748023@subdivi.de>