forked from pool/python-meson-python
Accepting request 1003365 from home:bnavigator:branches:devel:languages:python:numeric
now with doc and license OBS-URL: https://build.opensuse.org/request/show/1003365 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-meson-python?expand=0&rev=1
This commit is contained in:
15
mesonpy-no-rpath.patch
Normal file
15
mesonpy-no-rpath.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Index: meson_python-0.8.1/mesonpy/__init__.py
|
||||
===================================================================
|
||||
--- meson_python-0.8.1.orig/mesonpy/__init__.py
|
||||
+++ meson_python-0.8.1/mesonpy/__init__.py
|
||||
@@ -327,7 +327,9 @@ class _WheelBuilder():
|
||||
counter.update(location)
|
||||
|
||||
# fix file
|
||||
- if platform.system() == 'Linux':
|
||||
+ # disable rpath addition for rpmbuilds -- https://github.com/FFY00/meson-python/issues/125
|
||||
+ if (platform.system() == 'Linux' and (os.environ.get("RPM_BUILD_ROOT", None) is None or
|
||||
+ os.environ.get("MESONPY_FORCE_LOCAL_LIB", None))):
|
||||
# add .mesonpy.libs to the RPATH of ELF files
|
||||
if self._is_elf(os.fspath(origin)):
|
||||
# copy ELF to our working directory to avoid Meson having to regenerate the file
|
||||
Reference in New Issue
Block a user