Patchwork [V2] python-setuptools: Do not pull in target python for native recipe

login
register
mail settings
Submitter Darren Hart
Date Dec. 17, 2011, 4:37 a.m.
Message ID <4EEC1C8E.1070205@linux.intel.com>
Download mbox | patch
Permalink /patch/17175/
State New
Headers show

Comments

Darren Hart - Dec. 17, 2011, 4:37 a.m.
glib-2.0 DEPENDS and DEPENDS_virtclass-native on python-argparse-native,
which inherits from setuptools, which DEPENDS on python-setuptools-native.

python-setuptools uses RDEPENDS_${PN} for python-distutils and
python-compression. By using ${PN} instead of python-setuptools, when
the -native version is built, RDEPENDS_python-setuptools-native gets
set to include the target versions python-setuptools and python-compression,
pulling the entire target python dependency chain into the build.

Follow recipes like automake by setting RDEPENDS with the PN written out
explicitly, RDEPENDS_python-setuptools, to avoid dragging in the target
python dependency chain.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
CC: Saul Wold <sgw@linux.intel.com>
---
 .../python/python-setuptools_0.6c11.bb             |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-devtools/python/python-setuptools_0.6c11.bb b/meta/recipes-devtools/python/python-setuptools_0.6c11.bb
index 5dd5f31..0b8a219 100644
--- a/meta/recipes-devtools/python/python-setuptools_0.6c11.bb
+++ b/meta/recipes-devtools/python/python-setuptools_0.6c11.bb
@@ -20,7 +20,7 @@  do_install_prepend() {
     install -d ${D}/${libdir}/${PYTHON_DIR}/site-packages
 }
 
-RDEPENDS_${PN} = "\
+RDEPENDS_python-setuptools = "\
   python-distutils \
   python-compression \
 "