summaryrefslogtreecommitdiffstats
path: root/meta/packages/rpm/rpm_4.4.2.3.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-08-25 20:37:34 +0000
committerRichard Purdie <richard@openedhand.com>2008-08-25 20:37:34 +0000
commit603e247e23fe95f32a7ea45649c74878dfa49b21 (patch)
tree1a23cd7d21eefb53631487ccf8deb5def26bfe3a /meta/packages/rpm/rpm_4.4.2.3.bb
parent16e6877c4ce53fd3be88dd77263a03e7d88c3163 (diff)
downloadpoky-603e247e23fe95f32a7ea45649c74878dfa49b21.tar.gz
rpm: Enable python extensions and improve cross compiling patches
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5093 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/rpm/rpm_4.4.2.3.bb')
-rw-r--r--meta/packages/rpm/rpm_4.4.2.3.bb18
1 files changed, 15 insertions, 3 deletions
diff --git a/meta/packages/rpm/rpm_4.4.2.3.bb b/meta/packages/rpm/rpm_4.4.2.3.bb
index a568ea8c0e..7edecbcba6 100644
--- a/meta/packages/rpm/rpm_4.4.2.3.bb
+++ b/meta/packages/rpm/rpm_4.4.2.3.bb
@@ -1,8 +1,8 @@
1DESCRIPTION = "The RPM Package Manager." 1DESCRIPTION = "The RPM Package Manager."
2HOMEPAGE = "http://rpm.org/" 2HOMEPAGE = "http://rpm.org/"
3LICENSE = "LGPL GPL" 3LICENSE = "LGPL GPL"
4DEPENDS = "zlib beecrypt file popt" 4DEPENDS = "zlib beecrypt file popt python"
5PR = "r2" 5PR = "r3"
6 6
7SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \ 7SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \
8 file://external-tools.patch;patch=1 \ 8 file://external-tools.patch;patch=1 \
@@ -14,7 +14,9 @@ S = "${WORKDIR}/rpm-${PV}"
14 14
15acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" 15acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
16 16
17EXTRA_OECONF = "--without-python \ 17EXTRA_OECONF = "--with-python=${PYTHONVER} \
18 --with-python-incdir=${STAGING_INCDIR}/python${PYTHONVER} \
19 --with-python-libdir=${STAGING_LIBDIR}/python${PYTHONVER} \
18 --without-apidocs \ 20 --without-apidocs \
19 --without-selinux \ 21 --without-selinux \
20 --without-lua \ 22 --without-lua \
@@ -82,3 +84,13 @@ do_configure () {
82 --with-pic 84 --with-pic
83 85
84} 86}
87
88def rpm_python_version(d):
89 import os, bb
90 staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 )
91 if os.path.exists( "%s/python2.5" % staging_incdir ): return "2.5"
92 if os.path.exists( "%s/python2.4" % staging_incdir ): return "2.4"
93 if os.path.exists( "%s/python2.3" % staging_incdir ): return "2.3"
94 raise "No Python in STAGING_INCDIR. Forgot to build python/python-native?"
95
96PYTHONVER = "${@rpm_python_version(d)}"