Page MenuHomeFreeBSD

sysutils/containers-common: fix source build outside poudriere
ClosedPublic

Authored by dch on Oct 21 2025, 10:14 AM.
Tags
None
Referenced Files
F150435799: D53235.id164682.diff
Wed, Apr 1, 5:18 AM
Unknown Object (File)
Wed, Mar 25, 7:19 AM
Unknown Object (File)
Wed, Mar 25, 5:01 AM
Unknown Object (File)
Mon, Mar 23, 3:33 AM
Unknown Object (File)
Feb 23 2026, 9:55 PM
Unknown Object (File)
Feb 23 2026, 9:54 PM
Unknown Object (File)
Feb 9 2026, 11:41 PM
Unknown Object (File)
Jan 29 2026, 2:52 AM
Subscribers
None

Details

Reviewers
dfr
Summary

Reported by: Robert Gogolok mastodon.bsd.cafe/@gogo
Obtained from: bapt
Sponsored by: SkunkWerks, GmbH

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 67953
Build 64836: arc lint + arc unit

Event Timeline

dch requested review of this revision.Oct 21 2025, 10:14 AM
dch created this revision.

TLDR don't run golangci-lint as part of the build.

This was reported via mastodon for a user building from sources / make (i.e. not in poudriere).

Baptiste cooked up a patch, but because the sources live outside $WRKSRC the ports tree
doesn't know how to patch them, so .. sed instead. If you can think of a smarter way I'm
all ears.

diff
diff --git a/sysutils/containers-common/files/patch-tests_tools_Makefile b/sysutils/containers-common/files/patch-tests_tools_Makefile
new file mode 100644
index 000000000000..8fbd9833a463
--- /dev/null
+++ b/sysutils/containers-common/files/patch-tests_tools_Makefile
@@ -0,0 +1,12 @@
+--- tests/tools/Makefile.orig  2025-08-01 18:26:00 UTC
++++ tests/tools/Makefile
+@@ -20,8 +20,7 @@ $(BUILDDIR): \
+
+ $(BUILDDIR): \
+       $(BUILDDIR)/git-validation \
+-      $(BUILDDIR)/go-md2man \
+-      $(BUILDDIR)/golangci-lint
++      $(BUILDDIR)/go-md2man
+
+ $(BUILDDIR)/git-validation:
+       $(call go-build,./vendor/github.com/vbatts/git-validation)

Seems reasonable. We don't need to lint the source every time we build it - the upstream CI forces lint checks already.

This revision is now accepted and ready to land.Oct 24 2025, 1:53 PM