[pkg-golang-devel] Bug#822746: Bug#822746: golang: Add golang-any dependency package to install either golang-go or gccgo

Michael Hudson-Doyle michael.hudson at canonical.com
Wed Apr 27 04:56:42 UTC 2016

On 27 April 2016 at 16:27, Anthony Fok <foka at debian.org> wrote:
> Source: golang
> Severity: normal
> Tags: patch
> Hash: SHA256
> In order to make Go packages available on as many architectures as
> possible, we can make these packages depend on gccgo on architectures
> where golang-go is not yet available.
> Initially, I suggested patching dh-make-golang to expand the
> Build-Depends field in the automatically generated debian/control
> template for Go programs (dh-make-golang -type program)like so:
>     Build-Depends: golang-go [amd64 arm64 armel armhf i386 ppc64 ppc64el],
>                    gccgo [!amd64 !arm64 !armel !armhf !i386 !ppc64 !ppc64el]
> However, that would mean a massive effort in updating many such packages
> every time golang-go supports a new architecture.
> As per discussion at https://github.com/Debian/dh-make-golang/pull/36
> on GitHub, it was decided that a golang-any package should be created
> in src:golang instead, so for Go program-type packages that need it,
> a simple "Build-Depends: golang-any" suffices in providing the default
> Go compiler for each architecture.

I've actually done this in Ubuntu as part of the work I did to create
separate coinstallable packages for each go major version -- the
golang-defaults package:


creates such a golang-any package (the golang-go package this package
produces depends on gccgo on !golang arches but that's down to Ubuntu
delta that i want to get rid of). I want to do this work in Debian too
(in fact there is stuff on alioth that implements this stuff in a
(AFAICT) Debian-appropriate way:


I guess I'd like to fix that bug by uploading those changes. I think
Tianon was going to try to talk to paultag about this, not sure where
that's got to...


More information about the pkg-golang-devel mailing list