git: 8df7af788421 - main - net/bosh-bootloader: fix build on aarch64, riscv64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Mar 2023 10:42:25 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8df7af78842118e32e46687608032895428addbd
commit 8df7af78842118e32e46687608032895428addbd
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-27 14:31:09 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-31 10:42:05 +0000
net/bosh-bootloader: fix build on aarch64, riscv64
Bump golang.org/x/sys dependency to a version new enough
to support aarch64-freebsd and riscv64-freebsd.
Sponsored by: Berliner Linux User Group e.V.
Approved by: portmgr (build fix blanket)
---
net/bosh-bootloader/Makefile | 11 +++++++----
net/bosh-bootloader/distinfo | 4 +++-
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/net/bosh-bootloader/Makefile b/net/bosh-bootloader/Makefile
index a1ffcf84ceac..4e9f9c87ccfd 100644
--- a/net/bosh-bootloader/Makefile
+++ b/net/bosh-bootloader/Makefile
@@ -1,6 +1,6 @@
PORTNAME= bosh-bootloader
PORTVERSION= 7.6.0
-PORTREVISION= 12
+PORTREVISION= 13
CATEGORIES= net sysutils
MAINTAINER= dumbbell@FreeBSD.org
@@ -9,10 +9,9 @@ WWW= https://github.com/cloudfoundry/bosh-bootloader
LICENSE= APACHE20
-BROKEN_aarch64= fails to build: vendor/golang.org/x/sys/unix/cap_freebsd.go:18:23: undefined: CAP_RIGHTS_VERSION_00
-
USE_GITHUB= yes
-GH_TUPLE= cloudfoundry:bosh-bootloader:v${PORTVERSION}
+GH_TUPLE= cloudfoundry:bosh-bootloader:v${PORTVERSION} \
+ golang:sys:v0.6.0:sys
USES= go tar:xz
@@ -21,6 +20,10 @@ GO_TARGET= github.com/cloudfoundry/bosh-bootloader/bbl
PLIST_FILES= bin/bbl
+pre-patch:
+ ${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+ ${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
+
post-patch:
${REINPLACE_CMD} -E -e 's|(Version = )"dev"|\1"${PORTVERSION}"|' ${WRKSRC}/bbl/main.go
diff --git a/net/bosh-bootloader/distinfo b/net/bosh-bootloader/distinfo
index f8ed3f58296f..57720b089cee 100644
--- a/net/bosh-bootloader/distinfo
+++ b/net/bosh-bootloader/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1557134989
+TIMESTAMP = 1679927440
SHA256 (cloudfoundry-bosh-bootloader-7.6.0-v7.6.0_GH0.tar.gz) = d82e6f02c176933228026225718b2142dba6d076e005665faf3880a82cbb4f8d
SIZE (cloudfoundry-bosh-bootloader-7.6.0-v7.6.0_GH0.tar.gz) = 9225507
+SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234