Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Helmut Grohne
Mon, 26 Oct 2026 20:20
Bug#1152220: golang-petname FTCBFS: uses the host architecture go compiler
Author: Helmut Grohne
Date: Mon, 26 Oct 2026 20:20
Date: Mon, 26 Oct 2026 20:20
70 lines
4169 bytes
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--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads