From 7caafa6cd662e973e445b0d7183a87e2db7b57b5 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Tue, 11 Jan 2022 09:58:35 +0000 Subject: [PATCH] build_library/check_root: ignore dangling '*egg-info' symlink Since the update of dev-python/certifi, running the command `./image_to_vm.sh --format gce --board=amd64-usr` fails due to a dangling symlink. This symlink is located in /usr/lib64/python3.9/site-packages and is not supposed to be installed in the first place because of this INSTALL_MASK entry in coreos-overlay/profiles/coreos/targets/generic/oem-aci/make.defaults: INSTALL_MASK="${INSTALL_MASK} /usr/*/python3* " There is an open upstream bug that INSTALL_MASK doesn't work correctly on symlinks (https://bugs.gentoo.org/678462). The best we can do at this time is to ignore the dangling symlink. Signed-off-by: Jeremi Piotrowski --- build_library/check_root | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_library/check_root b/build_library/check_root index 8c522957a2..ec1531d4d9 100755 --- a/build_library/check_root +++ b/build_library/check_root @@ -127,7 +127,8 @@ IGNORE_SYMLINK = ( b"/etc/lsb-release", # set later in the build process b"/usr/share/coreos", # set later in the build process b"/etc/coreos", # set later in the build process - b"/usr/src/linux-*/tools/testing/selftests/powerpc/copyloops/memcpy_mcsafe_64.S" # broken symlink in Kernel source tree + b"/usr/src/linux-*/tools/testing/selftests/powerpc/copyloops/memcpy_mcsafe_64.S", # broken symlink in Kernel source tree + b"/usr/lib*/python3*/site-packages/*egg-info", # broken symlink from dev-python/certifi that is not filtered by INSTALL_MASK )