summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-12-11 16:05:49 -0600
committerSaul Wold <sgw@linux.intel.com>2012-12-14 15:17:19 -0800
commitea4b8c73a7f807ccd9aa22dfcf41285145a9dd2e (patch)
tree428248f482d2c2652a8ec7bd97f57200f8f1dbe7 /meta/classes
parent08b980da3caafc331fef457a16466eda98139bb4 (diff)
downloadopenembedded-core-ea4b8c73a7f807ccd9aa22dfcf41285145a9dd2e.tar.gz
openembedded-core-ea4b8c73a7f807ccd9aa22dfcf41285145a9dd2e.tar.bz2
openembedded-core-ea4b8c73a7f807ccd9aa22dfcf41285145a9dd2e.zip
package_rpm: Workaround for 'all' arch multilib package naming
[YOCTO #3565] All packages should not be multilib specific, however when the multilib rules run, they automatically rename the 'all' target recipes. As such there is no way to know if an 'all' package should or should not contain the multilib prefix. We workaround this issue in the translate function by checking to see if the runtime-reverse file exists or not. The workaround should be removed once a proper solution to the architectural issue is in place. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 6a0bb91d23..a00b70205c 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -80,6 +80,7 @@ translate_smart_to_oe() {
# Dump installed packages
while read pkg arch other ; do
+ found=0
if [ -z "$pkg" ]; then
continue
fi
@@ -101,10 +102,19 @@ translate_smart_to_oe() {
else
new_pkg="$mlib-$pkg"
fi
- break
+ # Workaround for bug 3565
+ # Simply look to see if we know of a package with that name, if not try again!
+ filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/$new_pkg 2>/dev/null | head -n 1`
+ if [ -n "$filename" ] ; then
+ found=1
+ break
+ fi
+ # 'real' code
+ # found=1
+ # break
fi
done
- if [ "$arch" = "$cmp_arch" -o "$fixed_arch" = "$cmp_arch" ]; then
+ if [ "$found" = "1" ] && [ "$arch" = "$cmp_arch" -o "$fixed_arch" = "$cmp_arch" ]; then
break
fi
done