[2/3] python: remove the PN package entirely

Message ID 20181012115502.14205-2-ross.burton@intel.com
State Superseded
Headers show
Series
  • [1/3] python: don't wipe RDEPENDS when parsing manifest
Related show

Commit Message

Ross Burton Oct. 12, 2018, 11:55 a.m.
Nothing should be in this package, so remove it entirely to be sure nothing does
end up in there.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/recipes-devtools/python/python3_3.5.6.bb | 4 ++--
 meta/recipes-devtools/python/python_2.7.15.bb | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Khem Raj Oct. 13, 2018, 7:10 a.m. | #1
I am seeing core-image-sato-sdk-ptest fail to build with errors like

http://errors.yoctoproject.org/Errors/Build/69750/
http://errors.yoctoproject.org/Errors/Build/69747/

So taking a wild guess, this series might be one causing it.
On Fri, Oct 12, 2018 at 4:55 AM Ross Burton <ross.burton@intel.com> wrote:
>

> Nothing should be in this package, so remove it entirely to be sure nothing does

> end up in there.

>

> Signed-off-by: Ross Burton <ross.burton@intel.com>

> ---

>  meta/recipes-devtools/python/python3_3.5.6.bb | 4 ++--

>  meta/recipes-devtools/python/python_2.7.15.bb | 3 +--

>  2 files changed, 3 insertions(+), 4 deletions(-)

>

> diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb

> index 489baa294fd..95915447ab4 100644

> --- a/meta/recipes-devtools/python/python3_3.5.6.bb

> +++ b/meta/recipes-devtools/python/python3_3.5.6.bb

> @@ -214,6 +214,8 @@ py_package_preprocess () {

>         mv ${PKGD}/${bindir}/python${PYTHON_BINABI}-config ${PKGD}/${bindir}/python${PYTHON_BINABI}-config-${MULTILIB_SUFFIX}

>  }

>

> +PACKAGES_remove = "${PN}"

> +

>  # manual dependency additions

>  RPROVIDES_${PN}-modules = "${PN}"

>  RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules"

> @@ -244,8 +246,6 @@ FILES_${PN}-man = "${datadir}/man"

>

>  BBCLASSEXTEND = "nativesdk"

>

> -RPROVIDES_${PN} += "${PN}-modules"

> -

>  # We want bytecode precompiled .py files (.pyc's) by default

>  # but the user may set it on their own conf

>  INCLUDE_PYCS ?= "1"

> diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb

> index f30d3f4d25c..9bf6959a0c5 100644

> --- a/meta/recipes-devtools/python/python_2.7.15.bb

> +++ b/meta/recipes-devtools/python/python_2.7.15.bb

> @@ -152,6 +152,7 @@ py_package_preprocess () {

>         (cd ${PKGD}; python -m py_compile ./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py)

>  }

>

> +PACKAGES_remove = "${PN}"

>

>  # manual dependency additions

>  RPROVIDES_${PN}-core = "${PN}"

> @@ -199,8 +200,6 @@ RDEPENDS_${PN}-modules_remove = "${@bb.utils.contains('PACKAGECONFIG', 'bdb', ''

>

>  BBCLASSEXTEND = "nativesdk"

>

> -RPROVIDES_${PN} += "${PN}-modules"

> -

>  # We want bytecode precompiled .py files (.pyc's) by default

>  # but the user may set it on their own conf

>

> --

> 2.11.0

>

> --

> _______________________________________________

> Openembedded-core mailing list

> Openembedded-core@lists.openembedded.org

> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Richard Purdie Oct. 13, 2018, 10:23 a.m. | #2
On Sat, 2018-10-13 at 00:10 -0700, Khem Raj wrote:
> I am seeing core-image-sato-sdk-ptest fail to build with errors like

> 

> http://errors.yoctoproject.org/Errors/Build/69750/

> http://errors.yoctoproject.org/Errors/Build/69747/

> 

> So taking a wild guess, this series might be one causing it.


This patch also triggered failures on the autobuilder, basically when
the ipk/deb backends are enabled.

https://autobuilder.yoctoproject.org/typhoon/api/v2/logs/48723/raw
https://autobuilder.yoctoproject.org/typhoon/api/v2/logs/48841/raw
https://autobuilder.yoctoproject.org/typhoon/api/v2/logs/48914/raw

Cheers,

Richard

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb
index 489baa294fd..95915447ab4 100644
--- a/meta/recipes-devtools/python/python3_3.5.6.bb
+++ b/meta/recipes-devtools/python/python3_3.5.6.bb
@@ -214,6 +214,8 @@  py_package_preprocess () {
 	mv ${PKGD}/${bindir}/python${PYTHON_BINABI}-config ${PKGD}/${bindir}/python${PYTHON_BINABI}-config-${MULTILIB_SUFFIX}
 }
 
+PACKAGES_remove = "${PN}"
+
 # manual dependency additions
 RPROVIDES_${PN}-modules = "${PN}"
 RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python3-modules"
@@ -244,8 +246,6 @@  FILES_${PN}-man = "${datadir}/man"
 
 BBCLASSEXTEND = "nativesdk"
 
-RPROVIDES_${PN} += "${PN}-modules"
-
 # We want bytecode precompiled .py files (.pyc's) by default
 # but the user may set it on their own conf
 INCLUDE_PYCS ?= "1"
diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb
index f30d3f4d25c..9bf6959a0c5 100644
--- a/meta/recipes-devtools/python/python_2.7.15.bb
+++ b/meta/recipes-devtools/python/python_2.7.15.bb
@@ -152,6 +152,7 @@  py_package_preprocess () {
 	(cd ${PKGD}; python -m py_compile ./${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py)
 }
 
+PACKAGES_remove = "${PN}"
 
 # manual dependency additions
 RPROVIDES_${PN}-core = "${PN}"
@@ -199,8 +200,6 @@  RDEPENDS_${PN}-modules_remove = "${@bb.utils.contains('PACKAGECONFIG', 'bdb', ''
 
 BBCLASSEXTEND = "nativesdk"
 
-RPROVIDES_${PN} += "${PN}-modules"
-
 # We want bytecode precompiled .py files (.pyc's) by default
 # but the user may set it on their own conf