GNOME Bugzilla – Bug 727575
Host paths leak into target when cross compiling
Last modified: 2018-05-24 16:23:23 UTC
Created attachment 273562 [details] [review] Patch to make configure.ac skip the readlink invocation when cross compiling. When building glib, the configure.ac script uses 'readlink' to convert relative paths to absolute. For cross compiling this can result in paths being incorrect for the target system. I'm building Yocto-based configurations. On my build system /usr/lib64 is actually a symlink to /usr/lib. For the 64-bit cross compiled target, readlink incorrectly translates /usr/lib64 to /usr/lib resulting in the path /usr/share/gdb/auto-load/usr/lib/libglib-2.0.so.0.3800.2-gdb.py rather than /usr/share/gdb/auto-load/usr/lib64/libglib-2.0.so.0.3800.2-gdb.py
This patch is not perfect as it simply does nothing to convert it to an absolute path but at least the host paths no longer leak into the target filesystem.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/851.