Index | Thread | Search

From:
Joel Carnat <joel@carnat.net>
Subject:
[update] sysutils/facette
To:
ports@openbsd.org
Date:
Wed, 10 Apr 2024 01:58:35 +0200

Download raw body.

Thread
Hi,

Looking at sysutils/facette, it is marked as broken.
The attached patch has it compile and working.

I' ve tested facette with a couple of RRD files I have and didn't see 
any errors. Not sure I'll continue using it. I'm still looking at what 
it can do. But in case someone wants to use it, here's the update.

Regards,
Joel C.
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/facette/Makefile,v
retrieving revision 1.24
diff -u -p -u -r1.24 Makefile
--- Makefile	4 Dec 2023 23:03:19 -0000	1.24
+++ Makefile	9 Apr 2024 23:55:18 -0000
@@ -1,4 +1,4 @@
-BROKEN =	fetches from internet during build
+#BROKEN =	fetches from internet during build
 
 COMMENT =	time series data visualization and graphing software
 
@@ -38,6 +38,9 @@ post-patch:
 	ln -s ${WRKDIR}/node_modules ${WRKSRC}/ui/node_modules
 	ln -s ${WRKDIR}/dist ${WRKSRC}/dist
 	cp ${WRKDIR}/web/bindata.go ${WRKSRC}/web/
+
+pre-build:
+	cd ${WRKSRC} && git init
 
 post-install:
 	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/facette/
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/sysutils/facette/patches/patch-Makefile,v
retrieving revision 1.5
diff -u -p -u -r1.5 patch-Makefile
--- patches/patch-Makefile	11 Mar 2022 19:57:24 -0000	1.5
+++ patches/patch-Makefile	9 Apr 2024 23:55:18 -0000
@@ -10,6 +10,15 @@ Index: Makefile
  
  ifneq ($(filter builtin_assets,$(TAGS)),)
  build-bin: build-assets
+@@ -62,7 +62,7 @@ build-bin:
+ endif
+ 	@$(call print_step,"Building binaries for $(GOOS)/$(GOARCH)...")
+ 	@$(GO) generate -tags "$(TAGS)" ./... && for bin in $(BIN_LIST); do \
+-		$(GO) build -i \
++		$(GO) build \
+ 			-tags "$(TAGS)" \
+ 			-ldflags "-s -w \
+ 				-X '$(REPO_PATH)/version.Version=$(VERSION)' \
 @@ -75,7 +75,7 @@ endif
  
  build-assets: ui/node_modules