FreeBSD Bugzilla – Attachment 160383 Details for
Bug 202504
lang/go: golang 1.5 on FreeBSD 11
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
go-if_data.patch
file_202504.txt (text/plain), 7.20 KB, created by
Maciej Pasternacki
on 2015-08-26 16:01:48 UTC
(
hide
)
Description:
go-if_data.patch
Filename:
MIME Type:
Creator:
Maciej Pasternacki
Created:
2015-08-26 16:01:48 UTC
Size:
7.20 KB
patch
obsolete
>diff --git i/lang/go/Makefile w/lang/go/Makefile >index 901bcc0..a92789b 100644 >--- i/lang/go/Makefile >+++ w/lang/go/Makefile >@@ -3,6 +3,7 @@ > > PORTNAME= go > PORTVERSION= 1.5 >+PORTREVISION= 1 > PORTEPOCH= 1 > CATEGORIES= lang > MASTER_SITES= http://golang.org/dl/ >@@ -41,6 +42,10 @@ IGNORE= unknown arch ${ARCH} > > PLIST_SUB+= ARCH=${GOARCH} > >+.if (${OSVERSION} >= 1100000) >+EXTRA_PATCHES+= ${FILESDIR}/struct-if_data-patch >+.endif >+ > post-patch: > @cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete > >diff --git i/lang/go/files/struct-if_data-patch w/lang/go/files/struct-if_data-patch >index e69de29..4dd1a20 100644 >--- i/lang/go/files/struct-if_data-patch >+++ w/lang/go/files/struct-if_data-patch >@@ -0,0 +1,261 @@ >+diff -ur go.orig/src/syscall/types_freebsd.go go/src/syscall/types_freebsd.go >+--- src/syscall/types_freebsd.go 2015-08-26 16:13:15.191076000 +0200 >++++ src/syscall/types_freebsd.go 2015-08-26 16:13:44.079240000 +0200 >+@@ -106,15 +106,16 @@ >+ >+ // This structure is a duplicate of if_data on FreeBSD 8-STABLE. >+ // See /usr/include/net/if.h. >++#undef ifi_epoch >++#undef ifi_lastchange >+ struct if_data8 { >+ u_char ifi_type; >+ u_char ifi_physical; >+ u_char ifi_addrlen; >+ u_char ifi_hdrlen; >+ u_char ifi_link_state; >+- u_char ifi_spare_char1; >+- u_char ifi_spare_char2; >+- u_char ifi_datalen; >++ u_char ifi_vhid; >++ u_short ifi_datalen; >+ u_long ifi_mtu; >+ u_long ifi_metric; >+ u_long ifi_baudrate; >+diff -ur go.orig/src/syscall/ztypes_freebsd_386.go go/src/syscall/ztypes_freebsd_386.go >+--- src/syscall/ztypes_freebsd_386.go 2015-08-26 16:13:15.209213000 +0200 >++++ src/syscall/ztypes_freebsd_386.go 2015-08-26 17:14:32.558231000 +0200 >+@@ -280,9 +280,9 @@ >+ } >+ >+ const ( >+- sizeofIfMsghdr = 0x64 >++ sizeofIfMsghdr = 0xa8 >+ SizeofIfMsghdr = 0x60 >+- sizeofIfData = 0x54 >++ sizeofIfData = 0x98 >+ SizeofIfData = 0x50 >+ SizeofIfaMsghdr = 0x14 >+ SizeofIfmaMsghdr = 0x10 >+@@ -314,59 +314,60 @@ >+ } >+ >+ type ifData struct { >+- Type uint8 >+- Physical uint8 >+- Addrlen uint8 >+- Hdrlen uint8 >+- Link_state uint8 >+- Vhid uint8 >+- Baudrate_pf uint8 >+- Datalen uint8 >+- Mtu uint32 >+- Metric uint32 >+- Baudrate uint32 >+- Ipackets uint32 >+- Ierrors uint32 >+- Opackets uint32 >+- Oerrors uint32 >+- Collisions uint32 >+- Ibytes uint32 >+- Obytes uint32 >+- Imcasts uint32 >+- Omcasts uint32 >+- Iqdrops uint32 >+- Noproto uint32 >+- Hwassist uint64 >+- Epoch int32 >+- Lastchange Timeval >++ Type uint8 >++ Physical uint8 >++ Addrlen uint8 >++ Hdrlen uint8 >++ Link_state uint8 >++ Vhid uint8 >++ Datalen uint16 >++ Mtu uint32 >++ Metric uint32 >++ Baudrate uint64 >++ Ipackets uint64 >++ Ierrors uint64 >++ Opackets uint64 >++ Oerrors uint64 >++ Collisions uint64 >++ Ibytes uint64 >++ Obytes uint64 >++ Imcasts uint64 >++ Omcasts uint64 >++ Iqdrops uint64 >++ Oqdrops uint64 >++ Noproto uint64 >++ Hwassist uint64 >++ Epoch int32 >++ X__ifi_epoch_pad [4]byte >++ Lastchange Timeval >++ X__ifi_lastchange_pad [8]byte >+ } >+ >+ type IfData struct { >+- Type uint8 >+- Physical uint8 >+- Addrlen uint8 >+- Hdrlen uint8 >+- Link_state uint8 >+- Spare_char1 uint8 >+- Spare_char2 uint8 >+- Datalen uint8 >+- Mtu uint32 >+- Metric uint32 >+- Baudrate uint32 >+- Ipackets uint32 >+- Ierrors uint32 >+- Opackets uint32 >+- Oerrors uint32 >+- Collisions uint32 >+- Ibytes uint32 >+- Obytes uint32 >+- Imcasts uint32 >+- Omcasts uint32 >+- Iqdrops uint32 >+- Noproto uint32 >+- Hwassist uint32 >+- Epoch int32 >+- Lastchange Timeval >++ Type uint8 >++ Physical uint8 >++ Addrlen uint8 >++ Hdrlen uint8 >++ Link_state uint8 >++ Vhid uint8 >++ Datalen uint16 >++ Mtu uint32 >++ Metric uint32 >++ Baudrate uint32 >++ Ipackets uint32 >++ Ierrors uint32 >++ Opackets uint32 >++ Oerrors uint32 >++ Collisions uint32 >++ Ibytes uint32 >++ Obytes uint32 >++ Imcasts uint32 >++ Omcasts uint32 >++ Iqdrops uint32 >++ Noproto uint32 >++ Hwassist uint32 >++ Epoch int32 >++ Lastchange Timeval >+ } >+ >+ type IfaMsghdr struct { >+diff -ur go.orig/src/syscall/ztypes_freebsd_amd64.go go/src/syscall/ztypes_freebsd_amd64.go >+--- src/syscall/ztypes_freebsd_amd64.go 2015-08-26 16:13:15.194477000 +0200 >++++ src/syscall/ztypes_freebsd_amd64.go 2015-08-26 17:16:22.936248000 +0200 >+@@ -316,59 +316,58 @@ >+ } >+ >+ type ifData struct { >+- Type uint8 >+- Physical uint8 >+- Addrlen uint8 >+- Hdrlen uint8 >+- Link_state uint8 >+- Vhid uint8 >+- Baudrate_pf uint8 >+- Datalen uint8 >+- Mtu uint64 >+- Metric uint64 >+- Baudrate uint64 >+- Ipackets uint64 >+- Ierrors uint64 >+- Opackets uint64 >+- Oerrors uint64 >+- Collisions uint64 >+- Ibytes uint64 >+- Obytes uint64 >+- Imcasts uint64 >+- Omcasts uint64 >+- Iqdrops uint64 >+- Noproto uint64 >+- Hwassist uint64 >+- Epoch int64 >+- Lastchange Timeval >++ Type uint8 >++ Physical uint8 >++ Addrlen uint8 >++ Hdrlen uint8 >++ Link_state uint8 >++ Vhid uint8 >++ Datalen uint16 >++ Mtu uint32 >++ Metric uint32 >++ Baudrate uint64 >++ Ipackets uint64 >++ Ierrors uint64 >++ Opackets uint64 >++ Oerrors uint64 >++ Collisions uint64 >++ Ibytes uint64 >++ Obytes uint64 >++ Imcasts uint64 >++ Omcasts uint64 >++ Iqdrops uint64 >++ Oqdrops uint64 >++ Noproto uint64 >++ Hwassist uint64 >++ X__ifi_epoch [8]byte >++ X__ifi_lastchange [16]byte >+ } >+ >+ type IfData struct { >+- Type uint8 >+- Physical uint8 >+- Addrlen uint8 >+- Hdrlen uint8 >+- Link_state uint8 >+- Spare_char1 uint8 >+- Spare_char2 uint8 >+- Datalen uint8 >+- Mtu uint64 >+- Metric uint64 >+- Baudrate uint64 >+- Ipackets uint64 >+- Ierrors uint64 >+- Opackets uint64 >+- Oerrors uint64 >+- Collisions uint64 >+- Ibytes uint64 >+- Obytes uint64 >+- Imcasts uint64 >+- Omcasts uint64 >+- Iqdrops uint64 >+- Noproto uint64 >+- Hwassist uint64 >+- Epoch int64 >+- Lastchange Timeval >++ Type uint8 >++ Physical uint8 >++ Addrlen uint8 >++ Hdrlen uint8 >++ Link_state uint8 >++ Vhid uint8 >++ Datalen uint16 >++ Mtu uint64 >++ Metric uint64 >++ Baudrate uint64 >++ Ipackets uint64 >++ Ierrors uint64 >++ Opackets uint64 >++ Oerrors uint64 >++ Collisions uint64 >++ Ibytes uint64 >++ Obytes uint64 >++ Imcasts uint64 >++ Omcasts uint64 >++ Iqdrops uint64 >++ Noproto uint64 >++ Hwassist uint64 >++ Epoch int64 >++ Lastchange Timeval >+ } >+ >+ type IfaMsghdr struct {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202504
: 160383