Skip to content

Conversation

@jepio
Copy link
Member

@jepio jepio commented Jan 11, 2022

ignore one more dangling symlink when building for GCE

Ignore the broken '/usr/lib64/python3.9/site-packages/certifi-3021.3.16-py3.9.egg-info' symlink when building for GCE.

How to use

./build_image --board=amd64-usr
./image_to_vm.sh --format gce --board=amd64-usr

Testing done

./build_image --board=amd64-usr
./image_to_vm.sh --format gce --board=amd64-usr
  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update) - not user facing

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 <jpiotrowski@microsoft.com>
@jepio jepio requested a review from a team January 11, 2022 10:07
@jepio jepio merged commit 4368778 into main Jan 11, 2022
@jepio jepio deleted the jepio/ignore-egg-info-symlink branch January 11, 2022 10:25
sayanchowdhury added a commit that referenced this pull request Jan 11, 2022
build_library/check_root: ignore dangling &#39;*egg-info&#39; symlink
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.

3 participants