On Fri, Feb 28, 2020 at 4:27 AM Helmut Grohne <hel...@subdivi.de> wrote: > > Package: golang-golang-x-text-dev > Version: 0.3.2-3 > Tags: patch > User: debian-cr...@lists.debian.org > Usertags: cross-satisfiability > Control: affects -1 + src:abci src:acbuild src:aptly > > Lots of packages tranistively use golang-golang-x-text-dev in > Build-Depends. I've given three examples above. Unfortunately, that > means that all of these packages cannot satisfy cross Build-Depends, > because Architecture: all packages cannot do that unless marked > Multi-Arch: foreign or annotated :native. The foreign marking is > reasonable here, because golang-golang-x-text-dev is a dependency-less > and maintainer-script-less package containing only go source and > compiled go modules (which still are architecture-independent). > Accordingly the multiarch hinter flags it for Multi-Arch: foreign. > Likely this is the first of a stream of bug reports asking for making > go libraries Multi-Arch: foreign. Note that once there is > architecture-dependent code involved (even as a dependency) the marking > is not the correct solution. We can only use it in simple situations > like golang-golang-x-text-dev. Please consider applying the attached > patch.
I think if we want to cross-build all Go packages. All the golang-*-dev packages which are arch:all can be marked as MA: foreign. Currently there're 1k+ packages. Maybe some batch scripts to update them all. -- Shengjing Zhu