Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPDX BOM support to mkosi #1230

Open
behrmann opened this issue Oct 18, 2022 · 5 comments
Open

Add SPDX BOM support to mkosi #1230

behrmann opened this issue Oct 18, 2022 · 5 comments
Labels

Comments

@behrmann
Copy link
Contributor

As discussed on the image summit.

@behrmann behrmann added the RFE label Oct 18, 2022
@DaanDeMeyer DaanDeMeyer changed the title Add SPDX support to mkosi Add SPDX BOM support to mkosi Oct 18, 2022
@keszybz
Copy link
Member

keszybz commented Oct 27, 2022

@septatrix
Copy link
Contributor

Would this have to be implemented from scratch (for each supported distro/package manager) or can something like syft be reused?

@keszybz
Copy link
Member

keszybz commented Nov 16, 2023

I think syft is overkill for our case here. We don't want to do "detection", we have all the information available, and we only need to write it out in a different format. If somebody thinks that syft or some other external tool should be hooked up, I don't have an issue with that and would support it as an optional feature. But I think that it'll actually be less work to just implement this internally. We currently write out a JSON manifest, so I expect it'd be ~20 lines of Python to write out XML instead.

@septatrix
Copy link
Contributor

Including the license field would also be appreciated

@septatrix
Copy link
Contributor

Including the license field would also be appreciated

rpm offers the %{LICENSE} field for querying, pkg also has a license array and dpkg has debian/copyright as a best-practice. Sadly none of these seem mandatory nor mandate SPDX license identifiers. Fedora seems to be best here as every package on my system has a license set and almost all are SPDX compliant. Debian has a few odd ones out and I cannot test arch.

Even with some packages not having a proper license set I still think including also the license in a BOM is the best play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants