core dynamic linker detection fails on ppc64el and s390x

Bug #1722521 reported by Colin Watson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Undecided
Colin Watson

Bug Description

Michael Hudson-Doyle reported that ppc64el/artful builds on Launchpad fail because snapcraft incorrectly believes that the core snap is not installed (see e.g. https://launchpadlibrarian.net/340314110/buildlog_snap_ubuntu_artful_ppc64el_subiquity_BUILDING.txt.gz).

This is because the core-dynamic-linker setting on ppc64el (and s390x) has a stray leading slash, so os.path.join('/snap/core/current', '/lib64/ld64.so.2') returns '/lib64/ld64.so.2', so snapcraft tries to resolve the dynamic linker symlink on the host system, and that may point to a file name that doesn't exist in the core snap. The correct fix is to drop the leading slashes, and to put test code in place to ensure that similar mistakes can't accidentally be made for future architectures.

Colin Watson (cjwatson)
Changed in snapcraft:
status: New → In Progress
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Thanks for digging into this!

Changed in snapcraft:
status: In Progress → Fix Committed
milestone: none → 2.35
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.