diff --git a/net-p2p/go-ethereum/Makefile b/net-p2p/go-ethereum/Makefile index 93a4ee4d570b..490638e2450f 100644 --- a/net-p2p/go-ethereum/Makefile +++ b/net-p2p/go-ethereum/Makefile @@ -1,33 +1,33 @@ PORTNAME= go-ethereum DISTVERSIONPREFIX= v -DISTVERSION= 1.12.2 -PORTREVISION= 22 +DISTVERSION= 1.16.8 CATEGORIES= net-p2p MAINTAINER= me@enriquefynn.com COMMENT= Go implementation of the Ethereum y/w paper WWW= https://github.com/ethereum/go-ethereum LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libiconv.so:converters/libiconv +LIB_DEPENDS= libiconv.so:converters/libiconv \ + libhidapi.so:comms/hidapi USES= cpe go:modules CPE_VENDOR= ethereum CPE_PRODUCT= go_ethereum GO_MODULE= github.com/ethereum/go-ethereum CGO_LDFLAGS= -liconv TMPDIR= ${WRKDIR} OPTIONS_DEFINE= DEVTOOLS OPTIONS_SUB= yes DEVTOOLS_DESC= Ethereum developer tools +DEVTOOLS_VARS= GO_TARGET="./cmd/geth ./cmd/abigen ./cmd/evm ./cmd/rlpdump ./cmd/clef" DEVTOOLS_VARS_OFF= GO_TARGET=./cmd/geth -DEVTOOLS_VARS= GO_TARGET="./cmd/geth ./cmd/abigen ./cmd/bootnode ./cmd/evm ./cmd/rlpdump ./cmd/clef" .include diff --git a/net-p2p/go-ethereum/distinfo b/net-p2p/go-ethereum/distinfo index e3197b31b81a..db8c145512f5 100644 --- a/net-p2p/go-ethereum/distinfo +++ b/net-p2p/go-ethereum/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1692017881 -SHA256 (go/net-p2p_go-ethereum/go-ethereum-v1.12.2/v1.12.2.mod) = 4cae2532bcbefa0b81e58a2318e2203c1091fd02cbdc47d1eadd4c447e970302 -SIZE (go/net-p2p_go-ethereum/go-ethereum-v1.12.2/v1.12.2.mod) = 6265 -SHA256 (go/net-p2p_go-ethereum/go-ethereum-v1.12.2/v1.12.2.zip) = 4cf7051683005074a3f2b58f27502c0180240a763c46a27da35f09e59c7d46fb -SIZE (go/net-p2p_go-ethereum/go-ethereum-v1.12.2/v1.12.2.zip) = 15322773 +TIMESTAMP = 1770233730 +SHA256 (go/net-p2p_go-ethereum/go-ethereum-v1.16.8/v1.16.8.mod) = 1d074633a25a2488327fb9a629d35118e472d6d4fd7903a4ec25877ca403f0b1 +SIZE (go/net-p2p_go-ethereum/go-ethereum-v1.16.8/v1.16.8.mod) = 7139 +SHA256 (go/net-p2p_go-ethereum/go-ethereum-v1.16.8/v1.16.8.zip) = aefb8134bf81b4332e5c3a82e81bd8a920adc4a786b91c91f85f25dd2a4c442a +SIZE (go/net-p2p_go-ethereum/go-ethereum-v1.16.8/v1.16.8.zip) = 22906212 diff --git a/net-p2p/go-ethereum/files/patch-vendor_github.com_karalabe_hid_hid__enabled.go b/net-p2p/go-ethereum/files/patch-vendor_github.com_karalabe_hid_hid__enabled.go new file mode 100644 index 000000000000..1274c8e490e7 --- /dev/null +++ b/net-p2p/go-ethereum/files/patch-vendor_github.com_karalabe_hid_hid__enabled.go @@ -0,0 +1,23 @@ +--- vendor/github.com/karalabe/hid/hid_enabled.go.orig 2026-02-04 22:48:45 UTC ++++ vendor/github.com/karalabe/hid/hid_enabled.go +@@ -31,7 +31,7 @@ specifically for the linux platform, below. + #cgo windows LDFLAGS: -lsetupapi + + #cgo freebsd CFLAGS: -DOS_FREEBSD +-#cgo freebsd LDFLAGS: -lusb ++#cgo freebsd LDFLAGS: -lhidapi -lusb + + #cgo openbsd CFLAGS: -DOS_OPENBSD + +@@ -64,8 +64,9 @@ specifically for the linux platform, below. + #elif OS_WINDOWS + #include "hidapi/windows/hid.c" + #elif OS_FREEBSD +- #include +- #include "hidapi/libusb/hid.c" ++ #include ++ #include ++ #include + #elif DOS_OPENBSD + #include "hidapi/libusb/hid.c" + #endif diff --git a/net-p2p/go-ethereum/pkg-plist b/net-p2p/go-ethereum/pkg-plist index fe1642c90ebb..2a0d45e37b4b 100644 --- a/net-p2p/go-ethereum/pkg-plist +++ b/net-p2p/go-ethereum/pkg-plist @@ -1,6 +1,5 @@ bin/geth %%DEVTOOLS%%bin/abigen -%%DEVTOOLS%%bin/bootnode %%DEVTOOLS%%bin/evm %%DEVTOOLS%%bin/rlpdump %%DEVTOOLS%%bin/clef