🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Helmut Grohne Sat, 07 Nov 2026 10:10
Bug#1153326: arduino-serial-discovery FTCBFS: multiple reasons
#3639
Author: Helmut Grohne
Date: Sat, 07 Nov 2026 10:10
84 lines
5648 bytes
--blD62meSXDtwm2om
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: arduino-serial-discovery
Version: 1.5.2+ds1-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

arduino-serial-discovery fails to cross build from source, because it
fails running the host's Go compiler which cannot be run. Since gccgo
became unsupported, we can change the compiler dependency to golang-go
and since the latter is a multitarget compiler we can annotate it
:native. At that point the actual build succeeds, but assembly of the
binary package still fails due to invalid assumptions on the build
directory layout. During cross compilation, the Go compiler inserts
places files differently. I propose to actually install the files (into
debian/tmp) and then letting dh_install relocate the files as needed.
Please find a patch attached for your convenience. Note that both
"--without single-binary" and "--destdir debian/tmp" will become the
default in debhelper compat level 14 and can be dropped when bumping the
level.

Helmut

--blD62meSXDtwm2om
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename="arduino-serial-discovery_1.5.2+ds1-1.1.debdiff"

diff -Nru arduino-serial-discovery-1.5.2+ds1/debian/changelog arduino-serial-discovery-1.5.2+ds1/debian/changelog
--- arduino-serial-discovery-1.5.2+ds1/debian/changelog	2026-07-26 19:56:13.000000000 +0200
+++ arduino-serial-discovery-1.5.2+ds1/debian/changelog	2026-11-06 13:26:42.000000000 +0100
@@ -1,3 +1,12 @@
+arduino-serial-discovery (1.5.2+ds1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Depend on a native golang Go compiler.
+    + Avoid assumptions on build tree and install to debian/tmp/.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Fri, 06 Nov 2026 13:26:42 +0100
+
 arduino-serial-discovery (1.5.2+ds1-1) unstable; urgency=medium
 
   * Initial release (Closes: #1142784)
diff -Nru arduino-serial-discovery-1.5.2+ds1/debian/control arduino-serial-discovery-1.5.2+ds1/debian/control
--- arduino-serial-discovery-1.5.2+ds1/debian/control	2026-07-26 01:21:58.000000000 +0200
+++ arduino-serial-discovery-1.5.2+ds1/debian/control	2026-11-06 13:26:42.000000000 +0100
@@ -5,7 +5,7 @@
 Build-Depends: debhelper-compat (= 13),
                dh-sequence-golang,
                dpkg-build-api (= 1),
-               golang-any,
+               golang-go:native,
                golang-github-arduino-go-properties-orderedmap-dev,
                golang-github-arduino-pluggable-discovery-protocol-handler-dev,
                golang-github-bugst-go-serial-dev (>= 1.8.0),
diff -Nru arduino-serial-discovery-1.5.2+ds1/debian/install arduino-serial-discovery-1.5.2+ds1/debian/install
--- arduino-serial-discovery-1.5.2+ds1/debian/install	2026-07-26 01:24:27.000000000 +0200
+++ arduino-serial-discovery-1.5.2+ds1/debian/install	2026-11-06 13:26:42.000000000 +0100
@@ -1 +1 @@
-debian/_build/bin/serial-discovery  usr/libexec/arduino/builtin/tools/serial-discovery/${env:DEB_VERSION}
+debian/tmp/usr/bin/serial-discovery  usr/libexec/arduino/builtin/tools/serial-discovery/${env:DEB_VERSION}
diff -Nru arduino-serial-discovery-1.5.2+ds1/debian/rules arduino-serial-discovery-1.5.2+ds1/debian/rules
--- arduino-serial-discovery-1.5.2+ds1/debian/rules	2026-07-26 01:24:56.000000000 +0200
+++ arduino-serial-discovery-1.5.2+ds1/debian/rules	2026-11-06 13:26:42.000000000 +0100
@@ -11,10 +11,10 @@
 LDFLAGS += -X $(DH_GOPKG)/version.Timestamp=$(TIMESTAMP)
 
 %:
-	dh $@ --builddirectory=debian/_build --buildsystem=golang
+	dh $@ --builddirectory=debian/_build --buildsystem=golang --without=single-binary
 
 override_dh_auto_build:
 	dh_auto_build -- -ldflags '$(LDFLAGS)'
 
 override_dh_auto_install:
-	# Disable dh_auto_install to install binary in specific location with dh_install
+	dh_auto_install --destdir debian/tmp -- --no-source

--blD62meSXDtwm2om--
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