mcst-linux-kernel/patches-2024.06.26/meson-1.0.2/0004-RM-12507-ignore-rpath-...

13 lines
757 B
Diff

--- a/mesonbuild/scripts/depfixer.py 2023-04-21 10:59:20.000000000 +0300
+++ b/mesonbuild/scripts/depfixer.py 2024-03-05 18:41:04.322207415 +0300
@@ -345,9 +345,6 @@
# Prepend user-specified new entries while preserving the ones that came from pkgconfig etc.
new_rpath = b':'.join(new_rpaths)
- if len(old_rpath) < len(new_rpath):
- msg = "New rpath must not be longer than the old one.\n Old: {}\n New: {}".format(old_rpath.decode('utf-8'), new_rpath.decode('utf-8'))
- sys.exit(msg)
# The linker does read-only string deduplication. If there is a
# string that shares a suffix with the rpath, they might get
# dedupped. This means changing the rpath string might break something