diff options
author | Phil Blundell <pb@pbcl.net> | 2011-06-02 10:48:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-02 14:55:56 +0100 |
commit | 77eef5ebc7bc5762cb5322e67c03ec8a1a74c162 (patch) | |
tree | 3f9052d7204958c2bf677884167345042ef6dbcd /meta/recipes-devtools/rpm | |
parent | 7866ae040071b366397cb07ca4d91ac191cbcdb0 (diff) | |
download | poky-77eef5ebc7bc5762cb5322e67c03ec8a1a74c162.tar.gz |
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.
(From OE-Core rev: a0fd5d332da24a1830ee7bd1030cfb5af384bb1c)
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.0.bb | 10 |
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 d3f85f22a1..5c30f1cbf7 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/" | |||
42 | LICENSE = "LGPL 2.1" | 42 | LICENSE = "LGPL 2.1" |
43 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" | 43 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" |
44 | 44 | ||
45 | DEPENDS = "bzip2 zlib python perl db openssl elfutils expat libpcre attr acl popt" | 45 | rpmdeps = "bzip2 zlib db openssl elfutils expat libpcre attr acl popt" |
46 | PR = "r16" | 46 | DEPENDS = "${rpmdeps} python perl" |
47 | DEPENDS_virtclass-native = "${rpmdeps}" | ||
48 | PR = "r17" | ||
47 | 49 | ||
48 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed | 50 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed |
49 | # in order to extract the distribution SRPM into a format we can extract... | 51 | # in order to extract the distribution SRPM into a format we can extract... |
@@ -92,7 +94,7 @@ WITH_PYTHON = " --with-python=${PYTHON_BASEVERSION} \ | |||
92 | --without-pythonembed \ | 94 | --without-pythonembed \ |
93 | " | 95 | " |
94 | 96 | ||
95 | WITH_PYTHON_native = " --without-python" | 97 | WITH_PYTHON_virtclass-native = " --without-python" |
96 | 98 | ||
97 | # Perl modules are not built, but they could be enabled fairly easily | 99 | # Perl modules are not built, but they could be enabled fairly easily |
98 | # the perl module creation and installation would need to be patched. | 100 | # the perl module creation and installation would need to be patched. |
@@ -100,7 +102,7 @@ WITH_PYTHON_native = " --without-python" | |||
100 | #WITH_PERL = " --with-perl --without-perlembed" | 102 | #WITH_PERL = " --with-perl --without-perlembed" |
101 | WITH_PERL = " --without-perl" | 103 | WITH_PERL = " --without-perl" |
102 | 104 | ||
103 | WITH_PERL_native = " --without-perl" | 105 | WITH_PERL_virtclass-native = " --without-perl" |
104 | 106 | ||
105 | WITH_DB = "--with-db --with-dbsql --without-db-tools-integrated --without-sqlite" | 107 | WITH_DB = "--with-db --with-dbsql --without-db-tools-integrated --without-sqlite" |
106 | 108 | ||