Source: witr Version: 0.3.1+ds-1 Tags: patch User: [email protected] Usertags: ftcbfs
witr fails to cross build from source, because it depends on the host architecture Go compiler which cannot be run. Since gccgo became unsupported, we can narrow down the dependency from golang-any to golang-go and since golang-go is a multitarget compiler, we can annotate it :native to select a runnable compiler. What remains is a failure to run the docgen tool. To fix that an additional native build pass is needed. Please consider applying the attached patch. Helmut
diff -Nru witr-0.3.1+ds/debian/changelog witr-0.3.1+ds/debian/changelog --- witr-0.3.1+ds/debian/changelog 2026-04-23 08:59:41.000000000 +0200 +++ witr-0.3.1+ds/debian/changelog 2026-11-01 10:05:22.000000000 +0100 @@ -1,3 +1,12 @@ +witr (0.3.1+ds-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Use a native golang Go compiler. + + Add a native build pass for the docgen tool. + + -- Helmut Grohne <[email protected]> Sun, 01 Nov 2026 10:05:22 +0100 + witr (0.3.1+ds-1) unstable; urgency=medium * New upstream version 0.3.1+ds diff -Nru witr-0.3.1+ds/debian/control witr-0.3.1+ds/debian/control --- witr-0.3.1+ds/debian/control 2026-04-23 07:09:15.000000000 +0200 +++ witr-0.3.1+ds/debian/control 2026-11-01 10:03:13.000000000 +0100 @@ -5,7 +5,7 @@ Build-Depends: debhelper-compat (= 13), dh-sequence-golang, - golang-any, + golang-go:native, golang-github-spf13-cobra-dev, golang-github-charmbracelet-bubbles-dev, golang-github-charmbracelet-bubbletea-dev, diff -Nru witr-0.3.1+ds/debian/rules witr-0.3.1+ds/debian/rules --- witr-0.3.1+ds/debian/rules 2026-04-23 08:58:50.000000000 +0200 +++ witr-0.3.1+ds/debian/rules 2026-11-01 10:05:21.000000000 +0100 @@ -19,8 +19,11 @@ dh_auto_build -- -ldflags "$(LD_FLAGS)" execute_after_dh_auto_build: +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build +endif debian/build/bin/docgen -format man - rm -f debian/build/bin/docgen override_dh_auto_install: dh_auto_install -- --no-source + rm -f debian/witr/usr/bin/docgen

