2019-01-04 20:32:33 +01:00
|
|
|
From 4db4fd79d9bb2b98cea1117f22b6c97942ab2ecd Mon Sep 17 00:00:00 2001
|
2018-10-27 19:59:22 +02:00
|
|
|
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
|
|
|
Date: Sat, 14 Jul 2018 11:18:45 +0200
|
|
|
|
Subject: [PATCH] Only fix RPATH if install_rpath is not empty
|
|
|
|
|
|
|
|
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
|
2019-01-04 20:32:33 +01:00
|
|
|
[Fix: remove leftover from original/unconditional code]
|
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
2018-10-27 19:59:22 +02:00
|
|
|
---
|
2019-01-04 20:32:33 +01:00
|
|
|
mesonbuild/minstall.py | 10 ++++++++--
|
|
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
2018-10-27 19:59:22 +02:00
|
|
|
|
|
|
|
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
|
2019-01-04 20:32:33 +01:00
|
|
|
index 8ac6aab1..7ef04116 100644
|
2018-10-27 19:59:22 +02:00
|
|
|
--- a/mesonbuild/minstall.py
|
|
|
|
+++ b/mesonbuild/minstall.py
|
2019-01-04 20:32:33 +01:00
|
|
|
@@ -478,8 +478,14 @@ class Installer:
|
|
|
|
printed_symlink_error = True
|
|
|
|
if os.path.isfile(outname):
|
2018-10-27 19:59:22 +02:00
|
|
|
try:
|
2019-01-04 20:32:33 +01:00
|
|
|
- depfixer.fix_rpath(outname, install_rpath, final_path,
|
|
|
|
- install_name_mappings, verbose=False)
|
2018-10-27 19:59:22 +02:00
|
|
|
+ # Buildroot check-host-rpath script expects RPATH
|
|
|
|
+ # But if install_rpath is empty, it will stripped.
|
|
|
|
+ # So, preserve it in this case
|
|
|
|
+ if install_rpath:
|
|
|
|
+ depfixer.fix_rpath(outname, install_rpath, final_path,
|
|
|
|
+ install_name_mappings, verbose=False)
|
|
|
|
+ else:
|
|
|
|
+ print("Skipping RPATH fixing")
|
|
|
|
except SystemExit as e:
|
|
|
|
if isinstance(e.code, int) and e.code == 0:
|
|
|
|
pass
|
|
|
|
--
|
2019-01-04 20:32:33 +01:00
|
|
|
2.20.1
|
2018-10-27 19:59:22 +02:00
|
|
|
|