diff options
-rw-r--r-- | meta/classes/package.bbclass | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 988e148893..735837667f 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1134,11 +1134,11 @@ python emit_pkgdata() { | |||
1134 | val = d.getVar('%s_%s' % (var, pkg), True) | 1134 | val = d.getVar('%s_%s' % (var, pkg), True) |
1135 | if val: | 1135 | if val: |
1136 | f.write('%s_%s: %s\n' % (var, pkg, encode(val))) | 1136 | f.write('%s_%s: %s\n' % (var, pkg, encode(val))) |
1137 | return | 1137 | return val |
1138 | val = d.getVar('%s' % (var), True) | 1138 | val = d.getVar('%s' % (var), True) |
1139 | if val: | 1139 | if val: |
1140 | f.write('%s: %s\n' % (var, encode(val))) | 1140 | f.write('%s: %s\n' % (var, encode(val))) |
1141 | return | 1141 | return val |
1142 | 1142 | ||
1143 | def write_extra_pkgs(variants, pn, packages, pkgdatadir): | 1143 | def write_extra_pkgs(variants, pn, packages, pkgdatadir): |
1144 | for variant in variants: | 1144 | for variant in variants: |
@@ -1207,7 +1207,7 @@ python emit_pkgdata() { | |||
1207 | write_if_exists(sf, pkg, 'DESCRIPTION') | 1207 | write_if_exists(sf, pkg, 'DESCRIPTION') |
1208 | write_if_exists(sf, pkg, 'SUMMARY') | 1208 | write_if_exists(sf, pkg, 'SUMMARY') |
1209 | write_if_exists(sf, pkg, 'RDEPENDS') | 1209 | write_if_exists(sf, pkg, 'RDEPENDS') |
1210 | write_if_exists(sf, pkg, 'RPROVIDES') | 1210 | rprov = write_if_exists(sf, pkg, 'RPROVIDES') |
1211 | write_if_exists(sf, pkg, 'RRECOMMENDS') | 1211 | write_if_exists(sf, pkg, 'RRECOMMENDS') |
1212 | write_if_exists(sf, pkg, 'RSUGGESTS') | 1212 | write_if_exists(sf, pkg, 'RSUGGESTS') |
1213 | write_if_exists(sf, pkg, 'RREPLACES') | 1213 | write_if_exists(sf, pkg, 'RREPLACES') |
@@ -1235,6 +1235,13 @@ python emit_pkgdata() { | |||
1235 | # Symlinks needed for reverse lookups (from the final package name) | 1235 | # Symlinks needed for reverse lookups (from the final package name) |
1236 | subdata_sym = pkgdatadir + "/runtime-reverse/%s" % pkgval | 1236 | subdata_sym = pkgdatadir + "/runtime-reverse/%s" % pkgval |
1237 | oe.path.symlink("../runtime/%s" % pkg, subdata_sym, True) | 1237 | oe.path.symlink("../runtime/%s" % pkg, subdata_sym, True) |
1238 | |||
1239 | # Symlinks needed for rprovides lookup | ||
1240 | if rprov: | ||
1241 | for p in rprov.strip().split(): | ||
1242 | subdata_sym = pkgdatadir + "/runtime-rprovides/%s/%s" % (p, pkg) | ||
1243 | bb.utils.mkdirhier(os.path.dirname(subdata_sym)) | ||
1244 | oe.path.symlink("../../runtime/%s" % pkg, subdata_sym, True) | ||
1238 | 1245 | ||
1239 | allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True) | 1246 | allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True) |
1240 | if not allow_empty: | 1247 | if not allow_empty: |
@@ -1254,7 +1261,7 @@ python emit_pkgdata() { | |||
1254 | 1261 | ||
1255 | bb.utils.unlockfile(lf) | 1262 | bb.utils.unlockfile(lf) |
1256 | } | 1263 | } |
1257 | emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime ${PKGDESTWORK}/runtime-reverse" | 1264 | emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime ${PKGDESTWORK}/runtime-reverse ${PKGDESTWORK}/runtime-rprovides" |
1258 | 1265 | ||
1259 | ldconfig_postinst_fragment() { | 1266 | ldconfig_postinst_fragment() { |
1260 | if [ x"$D" = "x" ]; then | 1267 | if [ x"$D" = "x" ]; then |