Source: golang-petname
Version: 2.13-1
Tags: patch
User: [email protected]
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
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 <[email protected]>  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

Reply via email to