Your message dated Fri, 14 Oct 2016 12:03:36 +0000
with message-id <e1bv1d6-00055j...@franck.debian.org>
and subject line Bug#839690: Removed package(s) from unstable
has caused the Debian Bug report #776401,
regarding Enable CGO for MinGW platforms
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
776401: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776401
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:golang
Severity: wishlist
Version: 2:1.3.3-1
Tags: patch

Apparently, it is possible to build a CGO-enabled Golang cross compiler
on all platforms if CGO_ENABLED=1 is set at build-time. I have
successfully built Windows executables that use fopen(), fread()
functions from the C standard library using something like:

$ CC=i686-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=i386 go build ...

Please consider adding the simple patch attached below.

(I am still trying to figure out if there's a way to set a
GOARCH/GOOS-specific sensible default for CC, CXX.)

Cheers,
-Hilko

diff --git a/debian/rules b/debian/rules
index d73e90f..642b9c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -116,6 +116,7 @@ debian/build.stamp:
        -${FOR_GO_ARCH} \
                export GOARCH=$$arch; \
                export GOOS=$$os; \
+              export CGO_ENABLED=1; \
                cd src && bash ./make.bash --no-clean; \
                [ "$$arch" = "amd64" ] && [ "$$os" = "linux" ] && $(GOBIN)/go 
install -race std; \
                cd ..; \

--- End Message ---
--- Begin Message ---
Version: 2:1.6.1-2+rm

Dear submitter,

as the package golang has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/839690

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to