0001-Only-fix-RPATH-if-install_rpath-is-not-empty.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From 53e4920038d5562b7b672fec8b9469fc02eef4ad Mon Sep 17 00:00:00 2001
  2. From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  3. Date: Thu, 10 May 2018 21:57:49 +0200
  4. Subject: [PATCH] Only fix RPATH if install_rpath is not empty
  5. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
  6. ---
  7. mesonbuild/scripts/meson_install.py | 8 +++++++-
  8. 1 file changed, 7 insertions(+), 1 deletion(-)
  9. diff --git a/mesonbuild/scripts/meson_install.py b/mesonbuild/scripts/meson_install.py
  10. index 013f2a00..f7ff1dcc 100644
  11. --- a/mesonbuild/scripts/meson_install.py
  12. +++ b/mesonbuild/scripts/meson_install.py
  13. @@ -368,7 +368,13 @@ def install_targets(d):
  14. printed_symlink_error = True
  15. if os.path.isfile(outname):
  16. try:
  17. - depfixer.fix_rpath(outname, install_rpath, False)
  18. + # Buildroot check-host-rpath script expects RPATH
  19. + # But if install_rpath is empty, it will stripped.
  20. + # So, preserve it in this case
  21. + if install_rpath:
  22. + depfixer.fix_rpath(outname, install_rpath, False)
  23. + else:
  24. + print("Skipping RPATH fixing")
  25. except SystemExit as e:
  26. if isinstance(e.code, int) and e.code == 0:
  27. pass
  28. --
  29. 2.14.3