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 licenses and description fields when using --rpm-package option #40

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KAWAHARA-souta
Copy link
Contributor

This patch allows us to add licenses and description information when using the --rpm-package option. For SPDX, a summary is also added. Note that the licenses information includes a provisional implementation, so it may be modified in the future.

However, applying this patch may cause it to stop working on distributions other than AlmaLinux and other EL-based distributions. The rpm module (rpm-shim) used to analyze information from RPM packages is a module that uses the RPM Python bindings provided by the installed python3-rpm package. python3-rpm package is installed on almost all AlmaLinux systems except for some like containers because it is a transitive dependency of the dnf package, which is installed by default in a minimal installation. However, for example on Ubuntu, there is a package with the same name python3-rpm, but alma-sbom did not work properly if I installed it.

This patch needs to merge #39

This patch allows users to create a package SBOM by specifying the
RPM package itself without having to calculate a hash value.

This also allows the SBOM field to be extended since the package
information can be referenced within alma_sbom.
@KAWAHARA-souta
Copy link
Contributor Author

Rebase my branch from current main to fix conflict.

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

Successfully merging this pull request may close these issues.

1 participant