From: Abel Abraham Camarillo Ojeda Subject: Help porting google mtail To: ports Date: Thu, 17 Jul 2025 05:04:56 -0600 Hi to all, I'm trying to port google mtail but I don't understand how go (and go ports work), I have experience only in Perl ports in OpenBSD, I have the following Makefile: COMMENT = extract monitoring data from logs for collection in timeseries databases MODGO_MODNAME = github.com/google/mtail #MODGO_VERSION = latest MODGO_VERSION = v3.0.0-rc9+incompatible # generated by make modgo-gen-modules DISTNAME = mtail-${MODGO_VERSION} CATEGORIES = sysutils HOMEPAGE = https://google.github.io/mtail MAINTAINER = Abel Abraham Camarillo Ojeda # Apache-2.0 PERMIT_PACKAGE = Yes #WANTLIB += ${COMPILER_LIBCXX} pthread z c m tag MODULES = lang/go #.include "modules.inc" .include But "make build" fails with: merced$ make build ===> Building from scratch mtail-3.0.0-rc9+incompatible ===> mtail-3.0.0-rc9+incompatible depends on: go-=1.24.5 -> go-1.24.5 ===> mtail-3.0.0-rc9+incompatible depends on: unzip-* -> unzip-6.0p18 ===> Checking files for mtail-3.0.0-rc9+incompatible `/usr/ports/distfiles/mtail-v3.0.0-rc9+incompatible.zip' is up to date. >> (SHA256) all files: OK ===> Extracting for mtail-3.0.0-rc9+incompatible ===> Patching for mtail-3.0.0-rc9+incompatible ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for mtail-3.0.0-rc9+incompatible ===> Configuring for mtail-3.0.0-rc9+incompatible /bin/sh: cd: /usr/ports/distfiles/go_modules - No such file or directory *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3020 '_pre-configure-modules': @ln -sf /usr/ports/pobj/mtail-3.0.0-rc9+incompatib...) *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3049 '/usr/ports/pobj/mtail-3.0.0-rc9+incompatible/build-amd64/.configure_done') *** Error 2 in /usr/ports/sysutils/mtail (/usr/ports/infrastructure/mk/ bsd.port.mk:2712 'build': @lock=mtail-3.0.0-rc9+incompatible; export...) make modgo-gen-modules returns only: $ make modgo-gen-modules MODGO_VERSION = v3.0.0-rc9+incompatible # add this to Makefile, not modules.inc $ The +incompatible might be the culprit... ideas into how to progress? Thanks