diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-09-26 17:00:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-26 17:15:32 +0100 |
commit | 2f64fae60b3f61a2c45dc9e5314d2d16b1e64605 (patch) | |
tree | 48f8b4429e1f702cc1b9b2cc800f16dda0a62ce8 | |
parent | 1bff3fc86f37c681c25707ade8f2c9404a860b7a (diff) | |
download | poky-2f64fae60b3f61a2c45dc9e5314d2d16b1e64605.tar.gz |
classes/package_rpm: fix bitbake package-index for RPM
The function that "bitbake package-index" relies upon when using the RPM
package backend (package_update_index_rpm()) uses MULTILIB_PREFIX_LIST
to get the list of package architectures to be indexed, but that
variable is only set when populate_sdk_rpm or rootfs_rpm are inherited,
which is not the case for the package-index recipe. Until we're able to
refactor this properly, for minimal impact just use the value of
ALL_MULTILIB_PACKAGE_ARCHS if MULTILIB_PREFIX_LIST does not give us any
architectures (the equivalent function in the ipk backend uses the
former variable).
Having "bitbake package-index" working is important because it's the
only practical way of indexing RPM packages for use as a feed; host
versions of createrepo won't work properly because they won't support
indexing recommends relationships.
Stopgap fix for [YOCTO #5278].
(From OE-Core rev: 9359719c563e1ab0ff10186d1a1b6bde7840dbf3)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/package_rpm.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index fd861e980d..05de1ff46d 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -35,6 +35,11 @@ package_update_index_rpm () { | |||
35 | done | 35 | done |
36 | done | 36 | done |
37 | 37 | ||
38 | # FIXME stopgap for broken "bitbake package-index" since MULTILIB_PREFIX_LIST isn't set for that | ||
39 | if [ "$target_archs" = "" ] ; then | ||
40 | target_archs="${ALL_MULTILIB_PACKAGE_ARCHS}" | ||
41 | fi | ||
42 | |||
38 | target_archs=`echo "$target_archs" | tr - _` | 43 | target_archs=`echo "$target_archs" | tr - _` |
39 | 44 | ||
40 | archs=`for arch in $target_archs $sdk_archs ; do | 45 | archs=`for arch in $target_archs $sdk_archs ; do |