Vinh Nguyen <cavoirom.wanted@yahoo.com> writes:
> Hello Omar,
>
> I'm sorry for the long delay, time flied, I fixed the port following
> all comments on your message.
no problem :)
> The author have just updated Goatcounter to v2.1.0. Yesterday, I
> tried to update dependencies by command
>
> make modgo-gen-modules > modules.inc
>
> but it still gets v1.4.2, do you have any idea?
>
> I attached the modified port in the attachment below.
I managed to get 2.1.0 by using
MODGO_MODNAME = zgo.at/goatcounter/v2
MODGO_VERSION = v2.1.0
most of the variables default are fine, so here's an improved tarball
that seems to build the correct version. I haven't tried it yet
thought, so only build-time testing and `goatcounter version'.
% goatcounter version
version=v2.1.0; go=go1.17.3; GOOS=openbsd; GOARCH=amd64; race=false; cgo=true
I dropped the -static from ldflags and used the default install target
provided by modgo (gcbench seems potentially useful to provide.)
@comment bin/check because it's meant for development (goes some check
on go sources if i've understood correctly.) Added WANTLIB and fixed
MODGO_FLAGS. Also, the syntax for -X to set the version changed, I've
updated MODGO_LDFLAGS to reflect what's on the readme.
It'd be nice if we could convince it to use the sqlite from ports and
link dynamically to it instead of whatever is doing right now (either
statically link it or bundle its own version.) Some digging on
github.com/mattn/go-sqlite3 may be needed.
Also, for the user you need a diff along the lines of the following one.
Cheers,
Omar Polo
Index: infrastructure/db/user.list
===================================================================
RCS file: /home/cvs/ports/infrastructure/db/user.list,v
retrieving revision 1.392
diff -u -p -r1.392 user.list
--- infrastructure/db/user.list 17 Nov 2021 20:32:34 -0000 1.392
+++ infrastructure/db/user.list 3 Dec 2021 09:02:28 -0000
@@ -380,3 +380,4 @@ id user group port
869 _headscale _headscale net/headscale
870 _unit _unit www/unit
871 _gelatod _gelatod net/gelatod
+872 _goatcounter _goatcounter www/goatcounter
No comments:
Post a Comment