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.

Helmut
diff --minimal -Nru golang-golang-x-text-0.3.2/debian/changelog 
golang-golang-x-text-0.3.2/debian/changelog
--- golang-golang-x-text-0.3.2/debian/changelog 2019-12-28 17:00:29.000000000 
+0100
+++ golang-golang-x-text-0.3.2/debian/changelog 2020-02-27 21:07:10.000000000 
+0100
@@ -1,3 +1,10 @@
+golang-golang-x-text (0.3.2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Mark golang-golang-x-text-dev Multi-Arch: foreign. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 27 Feb 2020 21:07:10 +0100
+
 golang-golang-x-text (0.3.2-3) unstable; urgency=medium
 
   [ Utkarsh Gupta ]
diff --minimal -Nru golang-golang-x-text-0.3.2/debian/control 
golang-golang-x-text-0.3.2/debian/control
--- golang-golang-x-text-0.3.2/debian/control   2019-12-28 16:54:40.000000000 
+0100
+++ golang-golang-x-text-0.3.2/debian/control   2020-02-27 21:07:07.000000000 
+0100
@@ -17,6 +17,7 @@
 
 Package: golang-golang-x-text-dev
 Architecture: all
+Multi-Arch: foreign
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Description: Supplementary Go text-related libraries

Reply via email to