aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/pythondeps.sh
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-09-19 10:11:11 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-21 13:36:27 +0100
commit30064a98dc9049db4a37f119d15fbb59aa3c8377 (patch)
treef0719d755679459d45c3088a013ca8e80fd10096 /meta/recipes-devtools/rpm/rpm/pythondeps.sh
parent50232671951e0b69d52a685b82a10be335458292 (diff)
downloadopenembedded-core-contrib-30064a98dc9049db4a37f119d15fbb59aa3c8377.tar.gz
Update python dependencies to be simply to "python"
Previously python dependencies were of the format "python(abi) = ..." This format is not yet supportable within OE, so revert to a form we know we can handle. Introduce a change to package.bbclass that ensures it will causes the sstate-cache's "package" to invalidate. Since pythondeps changed, the output of rpmdeps changes, which causes the per-file dependency information to change.... thus we need to invalidate the cache! Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/pythondeps.sh')
-rwxr-xr-xmeta/recipes-devtools/rpm/rpm/pythondeps.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/pythondeps.sh b/meta/recipes-devtools/rpm/rpm/pythondeps.sh
new file mode 100755
index 0000000000..083b174f17
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/pythondeps.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+[ $# -ge 1 ] || {
+ cat > /dev/null
+ exit 0
+}
+
+case $1 in
+-R|--requires)
+ shift
+ grep "/usr/\(lib[^/]*\|share\)/python[^/]*/" >/dev/null && echo "python"
+ exit 0
+ ;;
+esac
+
+exit 0