Skip to contentSkip to conversation

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

PATCH New Richard Purdie 1 participant 1 message Jul 27, 2012

lore
Share & tools
lore
#0 lore raw

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

This avoids dependencies like eglibc-locale-locale creeping into the eglibc locale packaging by blinding using the value of PN.

---

meta/classes/package.bbclass +3 -1
index ea199d3..90f145d 100644
@@ -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')
meta/recipes-core/eglibc/eglibc-locale.inc +1 -0
index 6990569..c08e38d 100644
@@ -2,6 +2,7 @@ INHIBIT_DEFAULT_DEPS = "1"
 LICENSE = "GPLv2 & LGPLv2.1"
 
 BPN = "eglibc"
+LOCALEBASEPN = "eglibc"
 
 do_fetch[noexec] = "1"
 do_unpack[noexec] = "1"