Library discovery for rpath patching needs to be deterministic

Bug #1759740 reported by Kyle Fazzari
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

Given a snap with four different versions of libfoo, located in usr/lib/libfoo.so, usr/lib/x86_64-linux-gnu/libfoo.so, lib/libfoo.so, and lib/randomdir/libfoo.so, Snapcraft will find an executable that wants to link to libfoo.so and may determine any one of these are a match in a directory walk that isn't deterministic and certainly doesn't behave like ld.

We need to walk the entire snap looking for libraries so that we find them in odd places, but we need to first look in common directories, in the order that ld would find them, and maintain that consistency.

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.