mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
classes/package: don't make locale pkgs depend on PN pkg if not in PACKAGES
If ${PN} is not in PACKAGES then don't add it as an RDEPENDS for each
locale package. This fixes the installation of gcc-runtime locale
packages, for example.
(From OE-Core rev: d36c3235b3022c07f064929f55114f808a7634f6)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b9fa9d713b
commit
06ad59cca9
@@ -408,12 +408,13 @@ python package_do_split_locales() {
|
|||||||
description = d.getVar('DESCRIPTION', True) or ""
|
description = d.getVar('DESCRIPTION', True) or ""
|
||||||
locale_section = d.getVar('LOCALE_SECTION', True)
|
locale_section = d.getVar('LOCALE_SECTION', True)
|
||||||
mlprefix = d.getVar('MLPREFIX', True) or ""
|
mlprefix = d.getVar('MLPREFIX', True) or ""
|
||||||
|
pndep = base_contains('PACKAGES', pn, '%s ' % pn, '', d)
|
||||||
for l in sorted(locales):
|
for l in sorted(locales):
|
||||||
ln = legitimize_package_name(l)
|
ln = legitimize_package_name(l)
|
||||||
pkg = pn + '-locale-' + ln
|
pkg = pn + '-locale-' + ln
|
||||||
packages.append(pkg)
|
packages.append(pkg)
|
||||||
d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l))
|
d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l))
|
||||||
d.setVar('RDEPENDS_' + pkg, '%s %svirtual-locale-%s' % (pn, mlprefix, ln))
|
d.setVar('RDEPENDS_' + pkg, '%s%svirtual-locale-%s' % (pndep, mlprefix, ln))
|
||||||
d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
|
d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
|
||||||
d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l))
|
d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l))
|
||||||
d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
|
d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
|
||||||
|
|||||||
Reference in New Issue
Block a user