package.bbclass/eglibc-locale: Ensure the correct PN is used for locale packages

(From OE-Core rev: fc4b138948656d482603b80f8c8e86fdbb185df4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2012-07-27 10:50:37 +00:00
parent 72ab2866e1
commit 754d240d2c
2 changed files with 4 additions and 1 deletions

View File

@ -371,6 +371,8 @@ python package_get_auto_pr() {
d.setVar('PRAUTO',str(auto_pr))
}
LOCALEBASEPN ??= "${PN}"
python package_do_split_locales() {
if (d.getVar('PACKAGE_NO_LOCALE', True) == '1'):
bb.debug(1, "package requested not splitting locales")
@ -384,7 +386,7 @@ python package_do_split_locales() {
return
dvar = d.getVar('PKGD', True)
pn = d.getVar('PN', True)
pn = d.getVar('LOCALEBASEPN', True)
if pn + '-locale' in packages:
packages.remove(pn + '-locale')

View File

@ -2,6 +2,7 @@ INHIBIT_DEFAULT_DEPS = "1"
LICENSE = "GPLv2 & LGPLv2.1"
BPN = "eglibc"
LOCALEBASEPN = "eglibc"
do_fetch[noexec] = "1"
do_unpack[noexec] = "1"