From e20cf95bcb1efbff7910c8c0f744322ce1e02589 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 13 Jul 2022 15:43:15 +0200 Subject: [PATCH] prod_image_util: unpack SLSA report along with gcc when building image Prod images need libstdc++.so and other libraries produced by sys-devel/gcc build, but because we don't want all of gcc in the image, the binpkg is manually unpacked instead of installed with emerge. Make sure to preserve SLSA metadata when unpacking as well. --- build_library/prod_image_util.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_library/prod_image_util.sh b/build_library/prod_image_util.sh index cf928cbb7a..9cd88f5f4d 100755 --- a/build_library/prod_image_util.sh +++ b/build_library/prod_image_util.sh @@ -46,7 +46,8 @@ extract_prod_gcc() { qtbz2 -O -t "${pkg}" | \ sudo tar -C "${root_fs_dir}" -xj \ --transform 's#/usr/lib/.*/#/usr/lib64/#' \ - --wildcards './usr/lib/gcc/*.so*' + --wildcards './usr/lib/gcc/*.so*' \ + --wildcards './usr/share/SLSA' package_provided "${gcc}" }