Add support for cross-building natively (Closes: #1100436)
I wrote this code eons ago (go1.21rc2), but got annoyed and depressed and didn't push it anywhere, so here it is.
$ debdiff golang-1.24-go_1.24.4-1_armhf.deb golang-1.24-go_1.24.4-2_armhf.deb
File lists identical (after any substitutions)
Control files: lines which differ (wdiff format)
------------------------------------------------
Depends: golang-1.24-src (>= [-1.24.4-1)-] {+1.24.4-2)+}
Installed-Size: [-114025-] {+114027+}
Version: [-1.24.4-1-] {+1.24.4-2+}
(golang-1.24-go_1.24.4-1_armhf.deb
was downloaded from the archive and golang-1.24-go_1.24.4-2_armhf.deb
was built from this PR's code on an amd64
host using sbuild --host armhf
)