🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1152220: golang-petname FTCBFS: uses the host architecture go compiler

#2288
From: Helmut Grohne
Date: Mon, 26 Oct 2026 20:20
70 lines
4169 bytes
--k+7AyN1YB+rOTfOu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: golang-petname
Version: 2.13-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
Control: affects 960842 - src:golang-petname

golang-petname fails to cross build from source, because it uses the
build architecture go compiler. For a long time, we assumed that we'd
have to fix this via golang-any, but as gccgo is no more, we can settle
on golang-go and append :native. Doing so mostly fixes the build except
that the cross installation location is subtly different and
debian/rules assumes too much. I'm attaching a patch that addresses all
of it. Please consider applying it.

Helmut

--k+7AyN1YB+rOTfOu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="golang-petname_2.13-1.1.debdiff"

diff -Nru golang-petname-2.13/debian/changelog golang-petname-2.13/debian/changelog
--- golang-petname-2.13/debian/changelog	2026-10-13 23:11:54.000000000 +0200
+++ golang-petname-2.13/debian/changelog	2026-10-23 09:51:20.000000000 +0200
@@ -1,3 +1,12 @@
+golang-petname (2.13-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Build with golang-go.
+    + Reduce assumptions about installation location.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Fri, 23 Oct 2026 09:51:20 +0200
+
 golang-petname (2.13-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru golang-petname-2.13/debian/control golang-petname-2.13/debian/control
--- golang-petname-2.13/debian/control	2026-10-13 23:11:35.000000000 +0200
+++ golang-petname-2.13/debian/control	2026-10-23 09:51:18.000000000 +0200
@@ -5,7 +5,7 @@
 Testsuite: autopkgtest-pkg-go
 Build-Depends: debhelper-compat (= 13),
                dh-golang,
-               golang-any
+               golang-go:native
 Standards-Version: 4.7.4
 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-petname
 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-petname.git
diff -Nru golang-petname-2.13/debian/rules golang-petname-2.13/debian/rules
--- golang-petname-2.13/debian/rules	2026-10-13 23:10:57.000000000 +0200
+++ golang-petname-2.13/debian/rules	2026-10-23 09:51:20.000000000 +0200
@@ -1,8 +1,7 @@
 #!/usr/bin/make -f
 
-override_dh_auto_install:
-	mv _build/bin/petname _build/bin/golang-petname
-	dh_auto_install
+execute_after_dh_auto_install:
+	mv debian/tmp/usr/bin/petname debian/tmp/usr/bin/golang-petname
 
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

--k+7AyN1YB+rOTfOu--
Technical Details
Message-ID: <NSzkJ-84wi-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.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!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152220: golang-petname FTCBFS: uses the host architecture go compiler
Date: Mon, 26 Oct 2026 21:20:01 +0100
Message-ID: <NSzkJ-84wi-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 26 20:18:06 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152220@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-go@tracker.debian.org
X-Debian-Pr-Message: report 1152220
X-Debian-Pr-Package: src:golang-petname
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: golang-petname
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="k+7AyN1YB+rOTfOu"
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/1999093
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 70
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 23 Oct 2026 10:43:42 +0200
X-Original-Message-ID: <20261023084342.GA747933@subdivi.de>