From 5e629d5c092c83ec4c01a5dddc0f6d1aae091d64 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Jul 2021 13:12:49 +0530 Subject: [PATCH] Linux binary: Remove any RPATH build artifacts from bundled libraries Thanks to Dan Egnor for pointing these out. --- bypy/linux/__main__.py | 2 ++ docs/changelog.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index d35d37330..ce2bc31b3 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -88,6 +88,8 @@ def copy_libs(env): for x in binary_includes(): dest = env.bin_dir if '/bin/' in x else env.lib_dir shutil.copy2(x, dest) + dest = os.path.join(dest, os.path.basename(x)) + subprocess.check_call(['chrpath', '-d', dest]) def copy_python(env): diff --git a/docs/changelog.rst b/docs/changelog.rst index 1478ffd0c..5651307d7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -21,6 +21,8 @@ To update |kitty|, :doc:`follow the instructions `. - broadcast kitten: Fix a regression in ``0.20.0`` that broke sending of some keys, such as backspace +- Linux binary: Remove any RPATH build artifacts from bundled libraries + 0.22.0 [2021-07-26] ----------------------