python3-pyproj: Fix buildpaths QA Error

This error is due to absolute paths leaking into ELF files due to
-rpath option in compiler cmdline, therefore patch them out.

Apply patch [1] from Debian

[1] https://sources.debian.org/data/main/p/python-pyproj/3.6.1-4/debian/patches/rpath.patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2024-08-19 15:58:07 -07:00
parent 1f2f07c30f
commit 45e77092f5
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
Description: Don't set RPATH in libraries.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: not-needed
Upstream-Status: Inappropriate [OE-Specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/setup.py
+++ b/setup.py
@@ -194,9 +194,6 @@ def get_extension_modules():
ext_options = {
"include_dirs": include_dirs,
"library_dirs": library_dirs,
- "runtime_library_dirs": (
- library_dirs if os.name != "nt" and sys.platform != "cygwin" else None
- ),
"libraries": get_libraries(library_dirs),
}
# setup cythonized modules

View File

@@ -6,6 +6,8 @@ DEPENDS:append:class-target = " python3-cython-native proj-native"
inherit pypi python_setuptools_build_meta
SRC_URI += "file://rpath.patch"
SRC_URI[sha256sum] = "44aa7c704c2b7d8fb3d483bbf75af6cb2350d30a63b144279a09b75fead501bf"
RDEPENDS:${PN} = " \