summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-03-20 08:29:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-11 14:02:23 +0100
commitcf53c606fc1bc81abb68b6851ae68916f92e1d84 (patch)
tree8c3b17a11b1eba4f8c58eeef20bd83c6f9abd482 /meta
parent997f39575dbf85600a67bfb815d715443c3fe279 (diff)
downloadopenembedded-core-cf53c606fc1bc81abb68b6851ae68916f92e1d84.tar.gz
openembedded-core-cf53c606fc1bc81abb68b6851ae68916f92e1d84.tar.bz2
openembedded-core-cf53c606fc1bc81abb68b6851ae68916f92e1d84.zip
package_rpm.bbclass: fix build multilib image failed when PR Server enabled
1, In bitbake.conf PKGR ?= "${PR}${EXTENDPRAUTO}" EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}" RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})" 2, When PR Server is enabled, EXTENDPRAUTO is not none which means PKGR and PR don't have the same value. 3, When multilib is enabled, RDEPENDS_${PN}-dev is not expanded correctly which uses PR rather than PKGR in the versioned dependency string. 4, Make sure PKGR rather than PR in version string when do_package_rpm. [YOCTO #4050] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_rpm.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 12b4bfa536..3a2997637b 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -605,7 +605,14 @@ python write_specfile () {
pv = subd['PV']
pkgv = subd['PKGV']
reppv = pkgv.replace('-', '+')
- verlist.append(ver.replace(pv, reppv).replace(pkgv, reppv))
+ ver = ver.replace(pv, reppv).replace(pkgv, reppv)
+ if 'PKGR' in subd:
+ # Make sure PKGR rather than PR in ver
+ pr = '-' + subd['PR']
+ pkgr = '-' + subd['PKGR']
+ if pkgr not in ver:
+ ver = ver.replace(pr, pkgr)
+ verlist.append(ver)
else:
verlist.append(ver)
newdeps_dict[dep] = verlist