🚀 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 Mon, 02 Nov 2026 20:50
Bug#1152882: tea-cli FTCBFS: fails running the host architecture go compiler
#3058
Author: Helmut Grohne
Date: Mon, 02 Nov 2026 20:50
84 lines
4632 bytes
--bPgmbVcrfUGy0MEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: tea-cli
Version: 0.11.1-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

tea-cli fails to cross build from source, because it installs the host
architecture Go compiler which cannot be run. As we stopped supporting
gccgo and the golang implementation being multi-target, we can narrow
the golang-any dependency to golang-go and then annotate it :native to
fix that. tea-cli still fails to cross build, because it attempts to run
the docs tool which is not installed. To accommodate this I propose
adding a native build pass. Please find a complete patch attached for
your convenience.

Helmut

--bPgmbVcrfUGy0MEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tea-cli_0.11.1-2.1.debdiff"

diff -Nru tea-cli-0.11.1/debian/changelog tea-cli-0.11.1/debian/changelog
--- tea-cli-0.11.1/debian/changelog	2026-10-17 23:55:00.000000000 +0200
+++ tea-cli-0.11.1/debian/changelog	2026-11-01 08:59:46.000000000 +0100
@@ -1,3 +1,12 @@
+tea-cli (0.11.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Use a native golang Go compiler.
+    + Add a native build pass for the docs tool.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 01 Nov 2026 08:59:46 +0100
+
 tea-cli (0.11.1-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru tea-cli-0.11.1/debian/control tea-cli-0.11.1/debian/control
--- tea-cli-0.11.1/debian/control	2026-10-17 21:00:00.000000000 +0200
+++ tea-cli-0.11.1/debian/control	2026-11-01 08:59:45.000000000 +0100
@@ -5,7 +5,7 @@
 Testsuite: autopkgtest-pkg-go
 Build-Depends: debhelper-compat (= 13),
                dh-golang,
-               golang-any,
+               golang-go:native,
                golang-code-gitea-sdk-dev,
                golang-gitea-noerw-unidiff-comments-dev,
                golang-github-adrg-xdg-dev,
diff -Nru tea-cli-0.11.1/debian/rules tea-cli-0.11.1/debian/rules
--- tea-cli-0.11.1/debian/rules	2026-10-17 21:00:00.000000000 +0200
+++ tea-cli-0.11.1/debian/rules	2026-11-01 08:59:46.000000000 +0100
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
 BUILD_DATE := $(shell date -u +%F -d @$(SOURCE_DATE_EPOCH))
 
@@ -7,8 +8,10 @@
 	dh $@ --builddirectory=debian/build --buildsystem=golang --with=golang
 
 execute_after_dh_auto_build:
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build
+endif
 	debian/build/bin/docs --out docs/CLI.md
-	rm debian/build/bin/docs
 	pandoc --standalone --to man docs/CLI.md -o debian/build/tea-cli.1 \
 		-V title=tea-cli \
 		-V section=1 \
@@ -16,4 +19,5 @@
 
 override_dh_auto_install:
 	dh_auto_install -O--builddirectory=debian/build -O--buildsystem=golang
+	rm debian/tea-cli/usr/bin/docs
 	mv debian/tea-cli/usr/bin/tea debian/tea-cli/usr/bin/tea-cli

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