golang: do not collect data from wrong freebsd binary

Reviewed by:		bdrewery
Differential Revision:	https://reviews.freebsd.org/D49260
This commit is contained in:
Baptiste Daroussin 2025-03-06 18:15:34 +01:00
parent c0821946bf
commit a432716614
7 changed files with 13 additions and 5 deletions

View file

@ -1902,6 +1902,13 @@ PLIST_FILES+= "@ldconfig"
. endif . endif
. endif . endif
. if defined(NO_SHLIB_REQUIRES_GLOB)
PKG_ENV+= SHLIB_REQUIRE_IGNORE_GLOB="${NO_SHLIB_REQUIRES_GLOB:ts,}"
. endif
. if defined(NO_SHLIBS_REQUIRES_REGEX)
PKG_ENV+= SHLIB_REQUIRE_IGNORE_REGEX="${NO_SHLIBS_REQUIRES_REGEX:ts,}"
. endif
PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist'
. if defined(_DESTDIR_VIA_ENV) . if defined(_DESTDIR_VIA_ENV)

View file

@ -32,6 +32,7 @@ TEST_DEPENDS_aarch64= binutils>0:devel/binutils
USES= cpe shebangfix USES= cpe shebangfix
CPE_VENDOR= golang CPE_VENDOR= golang
NO_SHLIBS_REQUIRES_GLOB= */gcc-386-freebsd-exec
.ifndef MASTERDIR .ifndef MASTERDIR
USE_GITHUB= yes USE_GITHUB= yes

View file

@ -1,6 +1,6 @@
DISTVERSION= 1.20.14 DISTVERSION= 1.20.14
# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel # Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
PORTREVISION= 2 PORTREVISION= 3
MASTER_SITES= https://golang.org/dl/ \ MASTER_SITES= https://golang.org/dl/ \
https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \ https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
LOCAL/dmgk:bootstrap LOCAL/dmgk:bootstrap

View file

@ -1,6 +1,6 @@
DISTVERSION= 1.21.13 DISTVERSION= 1.21.13
# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel # Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
PORTREVISION= 2 PORTREVISION= 3
MASTER_SITES= https://golang.org/dl/ \ MASTER_SITES= https://golang.org/dl/ \
https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \ https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
LOCAL/dmgk:bootstrap LOCAL/dmgk:bootstrap

View file

@ -1,6 +1,6 @@
DISTVERSION= 1.22.12 DISTVERSION= 1.22.12
# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel # Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
PORTREVISION= 1 PORTREVISION= 2
MASTER_SITES= https://golang.org/dl/ \ MASTER_SITES= https://golang.org/dl/ \
https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \ https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
LOCAL/dmgk:bootstrap LOCAL/dmgk:bootstrap

View file

@ -1,6 +1,6 @@
DISTVERSION= 1.23.7 DISTVERSION= 1.23.7
# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel # Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
PORTREVISION= 1 PORTREVISION= 2
MASTER_SITES= https://golang.org/dl/ \ MASTER_SITES= https://golang.org/dl/ \
https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \ https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
LOCAL/dmgk:bootstrap LOCAL/dmgk:bootstrap

View file

@ -1,6 +1,6 @@
DISTVERSION= 1.24.1 DISTVERSION= 1.24.1
# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel # Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
PORTREVISION= 0 PORTREVISION= 1
MASTER_SITES= https://golang.org/dl/ MASTER_SITES= https://golang.org/dl/
DISTFILES= go${DISTVERSION}.src.tar.gz \ DISTFILES= go${DISTVERSION}.src.tar.gz \
go1.23.7.${OPSYS:tl}-${GOARCH_${ARCH}}.tar.gz go1.23.7.${OPSYS:tl}-${GOARCH_${ARCH}}.tar.gz