Debugging build with gmake, running npm toolchain

Stefan Bethke stb at lassitu.de
Tue Feb 11 23:19:53 UTC 2020


I maintain www/gitea, and with the newest release, the build has been changed from a mostly pure Go build to a more complex setup using gmake, and including some npm-based toolchain to build CSS and JS.

Right now, changing the port from USES=go:modules to USES=gmake runs into a compilation/linking error:

  flag provided but not defined: -fstack-protector-strong
  usage: link [options] main.o
    -B note
      	add an ELF NT_GNU_BUILD_ID note when using ELF
    -E entry
      	set entry symbol name

The flag -fstack-protector-strong is not part of the Gitea code, but seems to come from the ports system. I'm having a hard time finding a build switch that prints the gmake command that is actually invoked, and information on how to customize that.

The second issue is that npm install is invoked, which will most likely prevent the port to be built as a package. Is there a way to handle the download of the package-lock.json dependencies in the fetch stage?


Stefan

--
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 529 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200212/4e60aa35/attachment.sig>


More information about the freebsd-ports mailing list