summaryrefslogtreecommitdiff
path: root/test cases/unit/10 build_rpath
AgeCommit message (Collapse)Author
2025-01-20linkers: fix rpath padding calculation for non-asciiEli Schwartz
rpaths are calculated in bytes, and that's also how depfixer processes them. We need to ensure that the ascii padding we use (bytes == unicode) is the correct offset for the install rpath - build rpath (both specified in unicode which then gets converted to bytes). In the event of a unicode install_rpath, we can get into a situation where the install rpath is longer than the padding, since we assumed that the install_rpath was shorter than it actually is -- because we counted the length in characters instead of the length in bytes. This then broke installation for people who e.g. install into a prefix inside their home directory, when their home directory contains multibyte unicode characters. Bug: https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/2280
2018-07-31Condense test dirs.Jussi Pakkanen