Summary: | lang/go: golang 1.5 on FreeBSD 11 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Leon Dang <ldang> | ||||
Component: | Individual Port(s) | Assignee: | Julien Laffaye <jlaffaye> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | maciej, neel | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(jlaffaye) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Leon Dang
2015-08-20 04:36:13 UTC
Created attachment 160383 [details]
go-if_data.patch
Attaching a proper patch against port dir based on Leon Dang's command.
It adds a conditional patch, activated only on FreeBSD 11. The files generated by `go tool cgo` are also included in the patch, as they required manual tweaking on i386. Tested on amd64 and in an i386 jail.
Test case:
$ cat > iftest.go
package main
import "fmt"
import "net"
func main() {
fmt.Println(net.InterfaceByName("lo0"))
}
Correct result (on patched system):
$ go run iftest.go
&{2 16384 lo0 up|loopback|multicast} <nil>
Incorrect result:
$ go run iftest.go
<nil> route ip+net: no such network interface
I am hitting this bug on FreeBSD/current as well. Please fix. What would need to happen for this to be merged? This issue is blocking my work, and is a blocker for Go 1.5 on -CURRENT. A commit references this bug: Author: jlaffaye Date: Tue Sep 1 20:41:31 UTC 2015 New revision: 395798 URL: https://svnweb.freebsd.org/changeset/ports/395798 Log: Fix net package on CURRENT PR: 202504 Submitted by: Maciej Pasternacki <maciej@pasternacki.net> Changes: head/lang/go/Makefile head/lang/go/files/struct-if_data-patch Committed, thanks! Thanks! |