git: d102f7c75bda - main - net/nncp: Fix build by omitting unused GO_CFLAGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Sep 2026 10:03:06 UTC
The branch main has been updated by nxjoseph:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d102f7c75bdaaf0346f62618669cd55a810af92f
commit d102f7c75bdaaf0346f62618669cd55a810af92f
Author: Sergey Matveev <stargrave@stargrave.org>
AuthorDate: 2026-09-06 07:49:39 +0000
Commit: Yusuf Yaman <nxjoseph@FreeBSD.org>
CommitDate: 2026-09-06 10:02:05 +0000
net/nncp: Fix build by omitting unused GO_CFLAGS
While here, sort SUB_FILES (pet portfmt).
PR: 298230
Approved by: osa, vvd (Mentors, implicit)
MFH: 2026Q3
---
net/nncp/Makefile | 2 +-
net/nncp/files/patch-build-cflags | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/net/nncp/Makefile b/net/nncp/Makefile
index 37f8a84efbf6..2289d077030f 100644
--- a/net/nncp/Makefile
+++ b/net/nncp/Makefile
@@ -15,7 +15,7 @@ USES= go:modules,no_targets tar:xz
USE_RC_SUBR= nncp-caller nncp-daemon nncp-toss
-SUB_FILES= pkg-message pkg-install pkg-deinstall
+SUB_FILES= pkg-deinstall pkg-install pkg-message
INFO= nncp
PORTDOCS= AUTHORS NEWS NEWS.RU README README.RU THANKS
diff --git a/net/nncp/files/patch-build-cflags b/net/nncp/files/patch-build-cflags
new file mode 100644
index 000000000000..b9959a9049b4
--- /dev/null
+++ b/net/nncp/files/patch-build-cflags
@@ -0,0 +1,16 @@
+--- build.orig 1981-01-01 00:00:00 UTC
++++ build
+@@ -11,11 +11,11 @@ GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultLogPath=$LOGPAT
+ GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultSendmailPath=$SENDMAIL"
+ GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultSpoolPath=$SPOOLPATH"
+ GO_LDFLAGS="$GO_LDFLAGS -X $mod.DefaultLogPath=$LOGPATH"
+-$GO build $vendor -o ../bin/nncp $GO_CFLAGS -ldflags "$GO_LDFLAGS" ./cmd/nncp
++$GO build $vendor -o ../bin/nncp -ldflags "$GO_LDFLAGS" ./cmd/nncp
+
+ hjsonVersion=v$(sed -n "s/^.*hjson-go.* v\(.*\)$/\1/p" <go.mod)
+ GO_LDFLAGS="$GO_LDFLAGS -X main.Version=$hjsonVersion"
+-$GO build $vendor -o ../bin/hjson-cli $GO_CFLAGS -ldflags "$GO_LDFLAGS" \
++$GO build $vendor -o ../bin/hjson-cli -ldflags "$GO_LDFLAGS" \
+ github.com/hjson/hjson-go/v4/hjson-cli
+
+ cd ../bin