On Sat, Aug 22, 2020 at 05:49:59AM +0000, Mikolaj Kucharski wrote:
> I don't use syncthing, but that package name looks incorrect. String rc4
> is conflicting with flavor naming pattern. You need to drop the dash, so
> final package name is syncthing-1.9.0rc4
You're right.
This is confirmed by the suffix examples in packages-specs(7).
Updated diff (also put back WANTLIB):
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/syncthing/Makefile,v
retrieving revision 1.30
diff -u -p -r1.30 Makefile
--- Makefile 17 May 2020 16:10:25 -0000 1.30
+++ Makefile 22 Aug 2020 07:33:00 -0000
@@ -1,10 +1,13 @@
# $OpenBSD: Makefile,v 1.30 2020/05/17 16:10:25 edd Exp $
+BROKEN-aarch64 =golang.org/x/Sys/cpu panic (illegal instruction)
+
COMMENT = open decentralized synchronization utility
-V = 1.5.0
-DISTNAME = syncthing-${V}
-DISTFILES = syncthing-source-v${V}${EXTRACT_SUFX}
+# Release candidate used so as to fix critical quic-go problem.
+V = 1.9.0
+DISTNAME = syncthing-${V}rc4
+DISTFILES = syncthing-source-v${V}-rc.4${EXTRACT_SUFX}
CATEGORIES = net
HOMEPAGE = https://syncthing.net/
@@ -16,7 +19,7 @@ PERMIT_PACKAGE = Yes
WANTLIB += c pthread
-MASTER_SITES = https://github.com/syncthing/syncthing/releases/download/v${V}/
+MASTER_SITES =
https://github.com/syncthing/syncthing/releases/download/v${V}-rc.4/
WRKDIST = ${WRKDIR}/syncthing
WRKSRC = ${WRKDIR}/go/src/github.com/syncthing/syncthing
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/syncthing/distinfo,v
retrieving revision 1.20
diff -u -p -r1.20 distinfo
--- distinfo 17 May 2020 16:10:25 -0000 1.20
+++ distinfo 21 Aug 2020 22:46:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (syncthing-source-v1.5.0.tar.gz) =
S048m76d15aRnTABGLaBft/j25UTsGelhZFSSzxaJI0=
-SIZE (syncthing-source-v1.5.0.tar.gz) = 10475068
+SHA256 (syncthing-source-v1.9.0-rc.4.tar.gz) =
F6cI6y/vvFwxfQi+U4lwf8II4PMyXUhKnWv1t/LMZ+o=
+SIZE (syncthing-source-v1.9.0-rc.4.tar.gz) = 11142237
Index: patches/patch-build_go
===================================================================
RCS file: /cvs/ports/net/syncthing/patches/patch-build_go,v
retrieving revision 1.11
diff -u -p -r1.11 patch-build_go
--- patches/patch-build_go 3 Jan 2020 17:57:35 -0000 1.11
+++ patches/patch-build_go 20 Aug 2020 18:47:05 -0000
@@ -23,12 +23,12 @@ Index: build.go
}
// These are repos we need to clone to run "go generate"
-@@ -466,7 +480,7 @@ func appendParameters(args []string, tags []string, pk
+@@ -527,7 +541,7 @@ func appendParameters(args []string, tags []string, pk
if !debugBinary {
// Regular binaries get version tagged and skip some debug
symbols
-- args = append(args, "-ldflags", ldflags(path.Base(pkg)))
-+ args = append(args, "-x", "-ldflags", ldflags(path.Base(pkg)))
+- args = append(args, "-ldflags", ldflags(tags))
++ args = append(args, "-x", "-ldflags", ldflags(tags))
} else {
// -gcflags to disable optimizations and inlining. Skip -ldflags
// because `Could not launch program: decoding dwarf section
info at
--
Best Regards
Edd Barrett
http://www.theunixzoo.co.uk