diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-08-19 15:58:07 -0700 |
---|---|---|
committer | Armin Kuster <akuster@mvista.com> | 2025-04-16 20:30:23 -0400 |
commit | cc74203ff0a35cfd53c42411f0423c26a1f4e6e2 (patch) | |
tree | 37f26c3bb69281ad964c0c9790bc5d65b099c702 | |
parent | 75612aaa3dc02c721ce2d17f37e9d815b2d9ce42 (diff) | |
download | meta-openembedded-cc74203ff0a35cfd53c42411f0423c26a1f4e6e2.tar.gz |
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>
Signed-off-by: Armin Kuster <akuster@mvista.com>
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyproj/rpath.patch | 18 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyproj/rpath.patch b/meta-python/recipes-devtools/python/python3-pyproj/rpath.patch new file mode 100644 index 0000000000..347996a808 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyproj/rpath.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Description: Don't set RPATH in libraries. | ||
2 | Author: Bas Couwenberg <sebastic@debian.org> | ||
3 | Forwarded: not-needed | ||
4 | |||
5 | Upstream-Status: Inappropriate [OE-Specific] | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- a/setup.py | ||
8 | +++ b/setup.py | ||
9 | @@ -194,9 +194,6 @@ def get_extension_modules(): | ||
10 | ext_options = { | ||
11 | "include_dirs": include_dirs, | ||
12 | "library_dirs": library_dirs, | ||
13 | - "runtime_library_dirs": ( | ||
14 | - library_dirs if os.name != "nt" and sys.platform != "cygwin" else None | ||
15 | - ), | ||
16 | "libraries": get_libraries(library_dirs), | ||
17 | } | ||
18 | # setup cythonized modules | ||
diff --git a/meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb b/meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb index a4121c3934..681678306f 100644 --- a/meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb +++ b/meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb | |||
@@ -8,6 +8,8 @@ PYPI_PACKAGE = "pyproj" | |||
8 | 8 | ||
9 | inherit pypi setuptools3 | 9 | inherit pypi setuptools3 |
10 | 10 | ||
11 | SRC_URI += "file://rpath.patch" | ||
12 | |||
11 | SRC_URI[sha256sum] = "44aa7c704c2b7d8fb3d483bbf75af6cb2350d30a63b144279a09b75fead501bf" | 13 | SRC_URI[sha256sum] = "44aa7c704c2b7d8fb3d483bbf75af6cb2350d30a63b144279a09b75fead501bf" |
12 | 14 | ||
13 | RDEPENDS:${PN} = " \ | 15 | RDEPENDS:${PN} = " \ |