On Wed, 14 Jan 2026 at 02:53, Bastian Blank <[email protected]> wrote: > golang-1.25 (and the older version) do not build from source: > > | dpkg-buildpackage: info: source package golang-1.25 > | dpkg-buildpackage: info: source version 1.25.3-1 > | dpkg-buildpackage: info: source distribution unstable > | dpkg-buildpackage: info: source changed by Tianon Gravi <[email protected]> > | dpkg-buildpackage: info: host architecture amd64 > | dpkg-source --before-build . > | debian/rules clean > | dh clean --no-act > | debian/rules binary > | dh binary --no-act > | create-stamp debian/debhelper-build-stamp > | dpkg-genbuildinfo --build=binary -O../golang-1.25_1.25.3-1_amd64.buildinfo > > It turns out, MAKEFLAGS is set to "--no-print-directory" by dpkg, so > this check disables everything: > > | ifneq (,$(findstring n,$(MAKEFLAGS))) > | opt_no_act := --no-act > | endif
Huh, I finally got around to trying this for myself and while I can reproduce that the package FTBFS, the failure I get doesn't seem to have anything to do with that, and instead appears as really bizarre looking linking errors during the unit tests like this: # archive/tar.test /build/reproducible-path/golang-1.25-1.25.3/pkg/tool/linux_amd64/link: running x86_64-linux-gnu-gcc failed: exit status 1 /usr/bin/x86_64-linux-gnu-gcc -m64 -s -o $WORK/b091/tar.test -rdynamic /tmp/go-link-964611208/go.o /tmp/go-link-964611208/000000.o /tmp/go-link-964611208/000001.o /tmp/go-link-964611208/000002.o /tmp/go-link-964611208/000003.o /tmp/go-link-964611208/000004.o /tmp/go-link-964611208/000005.o /tmp/go-link-964611208/000006.o /tmp/go-link-964611208/000007.o /tmp/go-link-964611208/000008.o /tmp/go-link-964611208/000009.o /tmp/go-link-964611208/000010.o /tmp/go-link-964611208/000011.o /tmp/go-link-964611208/000012.o /tmp/go-link-964611208/000013.o /tmp/go-link-964611208/000014.o /tmp/go-link-964611208/000015.o /tmp/go-link-964611208/000016.o -O2 -g -O2 -g -lpthread /usr/bin/x86_64-linux-gnu-ld.bfd: /tmp/go-link-964611208/go.o: warning: relocation in read-only section `.gopclntab' /usr/bin/x86_64-linux-gnu-ld.bfd: input SFrame sections with different format versions prevent .sframe generation /usr/bin/x86_64-linux-gnu-ld.bfd: final link failed collect2: error: ld returned 1 exit status (and I get the same failures in the same way if I comment out all the opt_no_act bits of debian/rules) ♥, - Tianon

