Packge os/users incorrectly built on amd64 arch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang (Debian) |
Fix Released
|
Unknown
|
|||
golang (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Saucy |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Currently the golang-go package ( golang-
The source code for the os/user package contains three implementations it's lookup module:
- lookup_unix.go (the one we should use on Linux)
- lookup_windows.go (for windows, obviously)
- lookup_stubs.go (the fallback for other platforms)
.. each of thes files has build conditions in it's header. We should use the lookup_unix.go file, but it will only be used it the "cgo" flag is set - which isn't the case for the amd64 build if we cross compile from i386. So we end up using lookups_stub.go, which returns an error message when calling any of it's functions.
I'll attach a trivial go program that will demonstrate the failure. If you compile go on an amd64 machine and compile the program with it then it'll work, but if you use the packaged version it will fail.
Related branches
Changed in golang (Ubuntu Saucy): | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in golang (Debian): | |
status: | Unknown → New |
Changed in golang (Debian): | |
status: | New → Fix Released |
This bug was fixed in the package golang - 2:1.1.2-2ubuntu1
---------------
golang (2:1.1.2-2ubuntu1) saucy; urgency=low
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes: elf-header. patch: Use correct ELF header for armhf binaries. control. cross: Update Breaks/Replaces for Ubuntu
- 016-armhf-
- d/control,
versions to ensure smooth upgrades, regenerate control file.
golang (2:1.1.2-2) unstable; urgency=low
* Build golang-go-linux-* for each architecture (Thanks James Page) linked- binary and binary- or-object for all of golang-go
(Closes: #719611)
* Update lintian-overrides to override statically-
unstripped-
golang (2:1.1.2-1) unstable; urgency=low
* New upstream release.
* Relicense debian/ under the Go license to match upstream. All copyright
holders agreed to this. (Closes: #716907)
* golang-mode: don’t install for a number of emacs versions which are not
supported upstream (Thanks Kevin Ryde) (Closes: #702511, #717521)
-- James Page <email address hidden> Tue, 20 Aug 2013 14:06:23 +0100