mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
python3: ensure that all forms of python3-config are in python3-dev
In multilib builds python3-config gets renamed to eg python3-config-lib64 but
this ends up being packaged in python3-core not python3-dev.
The manifest uses an extended glob to package all python* binaries that are not
python-config into python3-core:
"${bindir}/python*[!-config]",
However, this doesn't do what was intended, as [] is a range match.
Replace the globs with more verbose but precise matches, and clear out
FILES_${PN} to ensure that new binaries don't end up in ${PN} (which shouldn't
exist).
[ YOCTO #13592 ]
(From OE-Core rev: c780f21c33b0684dafff3421600cd1c11ddd0c48)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4b467ed084
commit
52fe6a79d9
@@ -210,7 +210,10 @@
|
|||||||
"summary": "Python interpreter and core modules",
|
"summary": "Python interpreter and core modules",
|
||||||
"rdepends": [],
|
"rdepends": [],
|
||||||
"files": [
|
"files": [
|
||||||
"${bindir}/python*[!-config]",
|
"${bindir}/python3",
|
||||||
|
"${bindir}/python${PYTHON_MAJMIN}",
|
||||||
|
"${bindir}/python${PYTHON_MAJMIN}.real",
|
||||||
|
"${bindir}/python${PYTHON_BINABI}",
|
||||||
"${includedir}/python${PYTHON_BINABI}/pyconfig*.h",
|
"${includedir}/python${PYTHON_BINABI}/pyconfig*.h",
|
||||||
"${prefix}/lib/python${PYTHON_MAJMIN}/config*/*[!.a]",
|
"${prefix}/lib/python${PYTHON_MAJMIN}/config*/*[!.a]",
|
||||||
"${libdir}/python${PYTHON_MAJMIN}/UserDict.py",
|
"${libdir}/python${PYTHON_MAJMIN}/UserDict.py",
|
||||||
@@ -487,7 +490,7 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"${base_libdir}/*.a",
|
"${base_libdir}/*.a",
|
||||||
"${base_libdir}/*.o",
|
"${base_libdir}/*.o",
|
||||||
"${bindir}/python*-config",
|
"${bindir}/python*-config*",
|
||||||
"${datadir}/aclocal",
|
"${datadir}/aclocal",
|
||||||
"${datadir}/pkgconfig",
|
"${datadir}/pkgconfig",
|
||||||
"${includedir}",
|
"${includedir}",
|
||||||
|
|||||||
@@ -303,11 +303,14 @@ do_create_manifest[depends] += "${PN}:do_prepare_recipe_sysroot"
|
|||||||
do_create_manifest[depends] += "${PN}:do_patch"
|
do_create_manifest[depends] += "${PN}:do_patch"
|
||||||
|
|
||||||
# manual dependency additions
|
# manual dependency additions
|
||||||
RPROVIDES_${PN}-modules = "${PN}"
|
|
||||||
RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules"
|
RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules"
|
||||||
RRECOMMENDS_${PN}-crypt_append_class-target = " openssl ca-certificates"
|
RRECOMMENDS_${PN}-crypt_append_class-target = " openssl ca-certificates"
|
||||||
RRECOMMENDS_${PN}-crypt_append_class-nativesdk = " openssl ca-certificates"
|
RRECOMMENDS_${PN}-crypt_append_class-nativesdk = " openssl ca-certificates"
|
||||||
|
|
||||||
|
# For historical reasons PN is empty and provided by python3-modules
|
||||||
|
FILES_${PN} = ""
|
||||||
|
RPROVIDES_${PN}-modules = "${PN}"
|
||||||
|
|
||||||
FILES_${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3"
|
FILES_${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3"
|
||||||
FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}"
|
FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user