Page MenuHomeFreeBSD

irc/soju: replace USES=go:no_target with USES=go:modules
Needs RevisionPublic

Authored by guest-svmhdvn on May 23 2024, 1:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 31 2024, 3:00 AM
Unknown Object (File)
May 25 2024, 6:15 PM
Subscribers
None

Details

Reviewers
ashish
Summary

irc/soju previously USES=go:no_target to disable the usual Go Port building infrastructure and instead rely on the upstream project's makefile to build. This made it difficult to reason about how port-provided flags finally get passed into the build.

This change uses the Porter's Handbook suggested method of porting Go applications as described here https://docs.freebsd.org/en/books/porters-handbook/book/#using-go. It removes the USES=go:no_target in order to use the FreeBSD Go application build infrastructure.

I've build and run tested this change.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

guest-svmhdvn created this revision.
ashish requested changes to this revision.Tue, Jun 4, 2:40 AM

I have to reject this:

  • I don't see any reason to deviate from what upstream recommends, and quite the contrary I would prefer to accommodate them when possible, instead of playing the cat-and-mouse game.
  • DOCS option removal is unwarranted, and since documentation (man pages) needs to be generated (and dependent on another port), I'd decided to add it as an OPTION instead for someone who prefer not to have any documentation. On the contrary, I am happy to include the other .md files the port ships with.
  • GO_MODULE was added not so long ago to reduce the churn (GH_TUPLE changes) repeated updates were causing, while using the recommended go get mechanism.

Following changes from this differential are good to go in:

  • %%PREFIX%%/etc => %%ETCDIR%%
  • Documentation stuff as noted above.

Thanks!

This revision now requires changes to proceed.Tue, Jun 4, 2:40 AM