You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When application-inventory is constructed for building a Bottlerocket variant, the bottlerocket- prefix of a package name is removed if the package is sourced from the bottlerocket-core-kit:
We could have a "remove vendor prefix" option somewhere for variant builders to make this decision for themselves
The inventory will list bottlerocket-glibc (etc) instead of glibc.
This option has implications for BRSAs defined in kits; the package-name must match exactly the package name that results in variant application inventory.
The latter is likely the simplest, however an overridden definition of %{__cross_os} or %{cross_vendor} would result in application inventory -> BRSA mismatch.
The text was updated successfully, but these errors were encountered:
The latter is likely the simplest, however an overridden definition of %{__cross_os} or %{cross_vendor} would result in application inventory -> BRSA mismatch.
I hadn't considered this! Although, overriding those macros would mean that you are rebuilding the software, and the BRSAs in the core-kits advisory metadata may not apply anymore anyways.
I could see a case where a downstream would still want advisories to apply to their custom build, though.
e.g. suppose you are downstream "foobar" and you are rebuilding the kernel from bottlerocket-core-kit as "foobar-kernel-6.1" but you only apply a few minimal patches. You might wish, out of convenience, for upstream's advisory information to apply and alert you when you need to perform a rebuild. In that case it could be beneficial for your inventory to just rename "foobar-kernel-6.1" to "kernel-6.1".
Based on discussion in #384
When application-inventory is constructed for building a Bottlerocket variant, the
bottlerocket-
prefix of a package name is removed if the package is sourced from the bottlerocket-core-kit:twoliter/twoliter/embedded/rpm2img
Lines 230 to 235 in a54ac6d
Some options:
We could have a "remove vendor prefix" option somewhere for variant builders to make this decision for themselves
The inventory will list bottlerocket-glibc (etc) instead of glibc.
package-name
must match exactly the package name that results in variant application inventory.The latter is likely the simplest, however an overridden definition of
%{__cross_os}
or%{cross_vendor}
would result in application inventory -> BRSA mismatch.The text was updated successfully, but these errors were encountered: