Created attachment 276507 [details] sbom-D60441.diff Please do an exp-run
Wouldn't it make more sense to add that as a feature like debug, debuginfo, pie, testing, … instead of just generating that for all ports? That would allow users to control it via the standard WITH{,OUT}_<feature> variables.
(In reply to Benjamin Takacs from comment #1) This is not a feature, this is a few bytes txt file
(In reply to Antoine Brodin from comment #2) I don't see how the size matters in how it is integrated into the ports framework. And especially as that patch has DISABLE_SBOM to disable the generation, I think it is better to integrate it as a feature, giving the user the standard WITH{,OUT}_<feature> variables to control it, instead of creating a completely new variable. Additionally is it fine for there to be no create-sbom target if it is disabled? 875:create-sbom gets added to _STAGE_SEQ unconditionally, but create-sbom only exists conditionally.
There is a problem with quotes https://pkg-status.freebsd.org/gohan06/data/151amd64-default-foo/2026-10-29_07h55m45s/logs/errors/php86-libawl-0.64.log https://pkg-status.freebsd.org/gohan06/data/151amd64-default-foo/2026-10-29_07h55m45s/logs/errors/php84-libawl-0.64.log
(In reply to Benjamin Takacs from comment #3) It's not a feature, features can be enabled/disabled per ports, this only works if all ports use it.
(In reply to Antoine Brodin from comment #4) Thank you, I'll investigate.
(In reply to Benjamin Takacs from comment #3) As for your second comment, most targets in all the _SEQ variables don't exist.
Created attachment 276819 [details] sbom-D60441.diff Fixup quoting
This looks great, can't wait to see it working :D
Some failures logs: https://pkg-status.freebsd.org/gohan05/data/144i386-default-foo/2026-10-31_10h28m28s/logs/errors/pam_kde-1.0.log https://pkg-status.freebsd.org/gohan05/data/144i386-default-foo/2026-10-31_10h28m28s/logs/errors/xhtml1-xsd-200208.log
Also: https://pkg-status.freebsd.org/gohan05/data/144i386-default-foo/2026-10-31_10h28m28s/logs/errors/swaylock-plugin-1.8.7.log
Created attachment 276853 [details] sbo
Created attachment 276854 [details] sbom-D60441.diff v3
Ok, so, ports doing silly stuff with PLIST_FILES or TMPPLIST can be affected, those are fixed.
Exp-run seems fine
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0774722088918fc0bf5bd9bef15b087ec8bef028 commit 0774722088918fc0bf5bd9bef15b087ec8bef028 Author: Mathieu Arnold <mat@FreeBSD.org> AuthorDate: 2026-10-07 14:16:46 +0000 Commit: Mathieu Arnold <mat@FreeBSD.org> CommitDate: 2026-11-04 07:12:21 +0000 Mk: generate SBOM .pc files for all ports Each package and subpackage now installs an SBOM file in pkg-config format, see pc(5). The file is installed in ${PREFIX}/share/sbom/pc/. The framework adds it to the plist automatically. PR: 300098 Differential Revision: https://reviews.freebsd.org/D60441 CHANGES | 25 +++++++++++++++ Mk/Scripts/check-stagedir.sh | 4 +++ Mk/Scripts/create-sbom.sh (new) | 70 +++++++++++++++++++++++++++++++++++++++++ Mk/bsd.port.mk | 60 +++++++++++++++++++++++++++++++++++ 4 files changed, 159 insertions(+)