Skip to contentSkip to conversation

python: ensure all of Python is installed in nativesdk

PATCH In review Ross Burton 4 participants 7 messages Dec 1, 2014 – Jan 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python: ensure all of Python is installed in nativesdk

If any part of Python gets installed in a SDK, we need to ensure that all of Python gets installed to avoid replacing python in the environment with a minimal package set.

---
 meta/recipes-devtools/python/python_2.7.3.bb |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python_2.7.3.bb +1 -0
index 50c751e..7f13e22 100644
@@ -161,6 +161,7 @@ require python-${PYTHON_MAJMIN}-manifest.inc
 # manual dependency additions
 RPROVIDES_${PN}-core = "${PN}"
 RRECOMMENDS_${PN}-core = "${PN}-readline"
+RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python-modules"
 RRECOMMENDS_${PN}-crypt = "openssl"
 RRECOMMENDS_${PN}-crypt_class-nativesdk = "nativesdk-openssl"
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 python: remove spurious nativesdk dependency

There's no need to add a dependency on python-crypt_class-native to nativesdk-openssl as the general dependency there is transformed appropriately.

Presumably this is cruft from back when SDK packages were suffixed instead of prefixed, and there were mapping problems.

---
 meta/recipes-devtools/python/python_2.7.3.bb |    1 -
 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python_2.7.3.bb +0 -1
index 7f13e22..9ded75b 100644
@@ -163,7 +163,6 @@ RPROVIDES_${PN}-core = "${PN}"
 RRECOMMENDS_${PN}-core = "${PN}-readline"
 RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python-modules"
 RRECOMMENDS_${PN}-crypt = "openssl"
-RRECOMMENDS_${PN}-crypt_class-nativesdk = "nativesdk-openssl"
 
 # package libpython2
 PACKAGES =+ "lib${BPN}2"
Signature · 1 line
1.7.10.4
#2 lore raw
In reply to Ross Burton
Quoted 24 lines · Ross Burton

If any part of Python gets installed in a SDK, we need to ensure that all of Python gets installed to avoid replacing python in the environment with a minimal package set.

---
 meta/recipes-devtools/python/python_2.7.3.bb |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python_2.7.3.bb +1 -1
index 50c751e..7f13e22 100644
@@ -161,6 +161,7 @@ require python-${PYTHON_MAJMIN}-manifest.inc
 # manual dependency additions
 RPROVIDES_${PN}-core = "${PN}"
 RRECOMMENDS_${PN}-core = "${PN}-readline"
+RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python-modules"
 RRECOMMENDS_${PN}-crypt = "openssl"
 RRECOMMENDS_${PN}-crypt_class-nativesdk = "nativesdk-openssl"
 
--

1.7.10.4

Quoted 1 line

--

Is it worth referring to bug number 6735?
____________________________________________

Quoted 3 lines

Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 2 lines · Laszlo Papp

Is it worth referring to bug number 6735?

Yes, done locally, thanks for reminding me.

Ross

#4 lore raw
In reply to Ross Burton

Hi all,

Toolchains/SDK generated with Dizzy have the problem this commit fixes.

So could this be cherry-picked to Dizzy?

It applies just fine, there is no need to rework it.

-
Regards,

Javier Viguera

Quoted 22 lines · Ross Burton

If any part of Python gets installed in a SDK, we need to ensure that all of Python gets installed to avoid replacing python in the environment with a minimal package set.

---
  meta/recipes-devtools/python/python_2.7.3.bb |    1 +
  1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python_2.7.3.bb +1 -0
index 50c751e..7f13e22 100644
@@ -161,6 +161,7 @@ require python-${PYTHON_MAJMIN}-manifest.inc
  # manual dependency additions
  RPROVIDES_${PN}-core = "${PN}"
  RRECOMMENDS_${PN}-core = "${PN}-readline"
+RRECOMMENDS_${PN}-core_append_class-nativesdk = " nativesdk-python-modules"
  RRECOMMENDS_${PN}-crypt = "openssl"
  RRECOMMENDS_${PN}-crypt_class-nativesdk = "nativesdk-openssl"
 
#5 lore raw

CC'ing Armin to ensure that he see's this.

Ross

Quoted 49 lines · Javier Viguera

Hi all,

Toolchains/SDK generated with Dizzy have the problem this commit fixes.

So could this be cherry-picked to Dizzy?

It applies just fine, there is no need to rework it.

-
Regards,

Javier Viguera

Quoted 26 lines · Ross Burton

If any part of Python gets installed in a SDK, we need to ensure that all of
Python gets installed to avoid replacing python in the environment with a minimal package set.

gmane.org>

---
  meta/recipes-devtools/python/python_2.7.3.bb |    1 +
  1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python_2.7.3.bb +1 -0
index 50c751e..7f13e22 100644
@@ -161,6 +161,7 @@ require python-${PYTHON_MAJMIN}-manifest.inc
  # manual dependency additions
  RPROVIDES_${PN}-core = "${PN}"
  RRECOMMENDS_${PN}-core = "${PN}-readline"
+RRECOMMENDS_${PN}-core_append_class-nativesdk = "

nativesdk-python-modules"
RRECOMMENDS_${PN}-crypt = "openssl" RRECOMMENDS_${PN}-crypt_class-nativesdk = "nativesdk-openssl"

Quoted 1 line

--

_______________________________________________

Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw

On 1/20/15, 7:48 AM, Burton, Ross wrote:

will get it. thanks.

Armin

Quoted 65 lines

CC'ing Armin to ensure that he see's this.

Ross

On 20 January 2015 at 09:36, Javier Viguera <[email protected] <mailto:[email protected]>> wrote:

    Hi all,

    Toolchains/SDK generated with Dizzy have the problem this commit
    fixes.

    So could this be cherry-picked to Dizzy?

    It applies just fine, there is no need to rework it.

    -
    Regards,

    Javier Viguera


    On 01/12/14 17:36, Ross Burton wrote:

        If any part of Python gets installed in a SDK, we need to
        ensure that all of
        Python gets installed to avoid replacing python in the
        environment with a
        minimal package set.

        Signed-off-by: Ross Burton
        <[email protected]
        <mailto:[email protected]>>
        ---
          meta/recipes-devtools/python/python_2.7.3.bb
        <http://python_2.7.3.bb> |    1 +
          1 file changed, 1 insertion(+)

        diff --git a/meta/recipes-devtools/python/python_2.7.3.bb
        <http://python_2.7.3.bb>
        b/meta/recipes-devtools/python/python_2.7.3.bb
        <http://python_2.7.3.bb>
        index 50c751e..7f13e22 100644
        --- a/meta/recipes-devtools/python/python_2.7.3.bb
        <http://python_2.7.3.bb>
        +++ b/meta/recipes-devtools/python/python_2.7.3.bb
        <http://python_2.7.3.bb>
        @@ -161,6 +161,7 @@ require python-${PYTHON_MAJMIN}-manifest.inc
          # manual dependency additions
          RPROVIDES_${PN}-core = "${PN}"
          RRECOMMENDS_${PN}-core = "${PN}-readline"
        +RRECOMMENDS_${PN}-core_append_class-nativesdk = "
        nativesdk-python-modules"
          RRECOMMENDS_${PN}-crypt = "openssl"
          RRECOMMENDS_${PN}-crypt_class-nativesdk = "nativesdk-openssl"


    -- 
    _______________________________________________

    Openembedded-core mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-core