From 91c5b379706633f4e5a480dbcea4844a9f54be79 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 7 Aug 2020 23:24:53 +0300 Subject: Better log message on rpath error. --- mesonbuild/scripts/depfixer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/scripts/depfixer.py') diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index a3a3eff..4176b9a 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -323,7 +323,8 @@ class Elf(DataSizes): new_rpath = b':'.join(new_rpaths) if len(old_rpath) < len(new_rpath): - sys.exit("New rpath must not be longer than the old one.") + msg = "New rpath must not be longer than the old one.\n Old: {}\n New: {}".format(old_rpath, new_rpath) + 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 -- cgit v1.1