From 24962c24c62df58d7e241a18663f6a8a1c092cc0 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 16 Jan 2019 13:40:49 -0500 Subject: [PATCH] patch meson to not strip RPATH silently on install --- .../meson/meson/disable-rpath-handling.patch | 26 +++++++++++++++++++ .../recipes-devtools/meson/meson_%.bbappend | 8 +++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 meta-gnome/recipes-devtools/meson/meson/disable-rpath-handling.patch diff --git a/meta-gnome/recipes-devtools/meson/meson/disable-rpath-handling.patch b/meta-gnome/recipes-devtools/meson/meson/disable-rpath-handling.patch new file mode 100644 index 0000000..4b1fb57 --- /dev/null +++ b/meta-gnome/recipes-devtools/meson/meson/disable-rpath-handling.patch @@ -0,0 +1,26 @@ +We need to allow our rpaths generated through the compiler flags to make it into +our binaries. Therefore disable the meson manipulations of these unless there +is a specific directive to do something differently in the project. + +RP 2018/11/23 + +Upstream-Status: Submitted [https://github.com/mesonbuild/meson/issues/2567] + +Index: meson-0.47.2/mesonbuild/minstall.py +=================================================================== +--- meson-0.47.2.orig/mesonbuild/minstall.py ++++ meson-0.47.2/mesonbuild/minstall.py +@@ -486,8 +486,11 @@ class Installer: + printed_symlink_error = True + if os.path.isfile(outname): + try: +- depfixer.fix_rpath(outname, install_rpath, final_path, +- install_name_mappings, verbose=False) ++ if install_rpath: ++ depfixer.fix_rpath(outname, install_rpath, final_path, ++ install_name_mappings, verbose=False) ++ else: ++ print("RPATH changes at install time disabled") + except SystemExit as e: + if isinstance(e.code, int) and e.code == 0: + pass diff --git a/meta-gnome/recipes-devtools/meson/meson_%.bbappend b/meta-gnome/recipes-devtools/meson/meson_%.bbappend index 4eafd97..640cc35 100644 --- a/meta-gnome/recipes-devtools/meson/meson_%.bbappend +++ b/meta-gnome/recipes-devtools/meson/meson_%.bbappend @@ -1,4 +1,10 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/meson:" -SRC_URI += "file://0001-use-exe-wrapper-for-custom-targets.patch " +# disable-rpath-handling: +# https://github.com/mesonbuild/meson/issues/2567 +# https://github.com/openembedded/openembedded-core/commit/29b5ef236914b152fd255e134569d4a177656bb0 +SRC_URI += "\ + file://0001-use-exe-wrapper-for-custom-targets.patch \ + file://disable-rpath-handling.patch \ +"