🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1153326: arduino-serial-discovery FTCBFS: multiple reasons

#3639
From: 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--
Technical Details
Message-ID: <NWLx0-an6Y-21@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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#1153326: arduino-serial-discovery FTCBFS: multiple reasons
Date: Sat, 07 Nov 2026 11:10:02 +0100
Message-ID: <NWLx0-an6Y-21@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  Sat Nov  7 10:03:15 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1153326@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+pkg-go@tracker.debian.org
X-Debian-Pr-Message: report 1153326
X-Debian-Pr-Package: src:arduino-serial-discovery
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: arduino-serial-discovery
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="blD62meSXDtwm2om"
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/2001227
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 84
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 6 Nov 2026 14:07:58 +0100
X-Original-Message-ID: <20261106130758.GA3087340@subdivi.de>