summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorPhil Blundell <pb@pbcl.net>2011-06-02 10:48:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-02 14:52:15 +0100
commita0fd5d332da24a1830ee7bd1030cfb5af384bb1c (patch)
treebf5d22c9a7d651765ba6821d6627718fa6a3d9cd /meta/recipes-devtools
parent8a1266d49b9c23bfe3fb454f34524869ac9725b2 (diff)
downloadopenembedded-core-a0fd5d332da24a1830ee7bd1030cfb5af384bb1c.tar.gz
openembedded-core-a0fd5d332da24a1830ee7bd1030cfb5af384bb1c.tar.bz2
openembedded-core-a0fd5d332da24a1830ee7bd1030cfb5af384bb1c.tar.xz
openembedded-core-a0fd5d332da24a1830ee7bd1030cfb5af384bb1c.zip
rpm: avoid dependency on perl and python for -native build
Update override naming (_native -> _virtclass-native) to disable perl and python bindings when building native rpm, and adjust the DEPENDS to match. Perl bindings were, in fact, already disabled for both native and target builds so it's only the python ones that have really changed. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rpm/rpm_5.4.0.bb10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index d3f85f22a..5c30f1cbf 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -42,8 +42,10 @@ HOMEPAGE = "http://rpm5.org/"
LICENSE = "LGPL 2.1"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
-DEPENDS = "bzip2 zlib python perl db openssl elfutils expat libpcre attr acl popt"
-PR = "r16"
+rpmdeps = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt"
+DEPENDS = "${rpmdeps} python perl"
+DEPENDS_virtclass-native = "${rpmdeps}"
+PR = "r17"
# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed
# in order to extract the distribution SRPM into a format we can extract...
@@ -92,7 +94,7 @@ WITH_PYTHON = " --with-python=${PYTHON_BASEVERSION} \
--without-pythonembed \
"
-WITH_PYTHON_native = " --without-python"
+WITH_PYTHON_virtclass-native = " --without-python"
# Perl modules are not built, but they could be enabled fairly easily
# the perl module creation and installation would need to be patched.
@@ -100,7 +102,7 @@ WITH_PYTHON_native = " --without-python"
#WITH_PERL = " --with-perl --without-perlembed"
WITH_PERL = " --without-perl"
-WITH_PERL_native = " --without-perl"
+WITH_PERL_virtclass-native = " --without-perl"
WITH_DB = "--with-db --with-dbsql --without-db-tools-integrated --without-sqlite"