2 issues were present:
*disabled was a string and so,when binary locales generation was disabled
it never executed the return statement
For fixing it,I've copied and adapted the glibc code that JaMa pointed me out:
FreeNode-#oe.log:Jul 09 14:19:26
<JaMa> GNUtoo|laptop: glibc/glibc-package.inc is using "if enabled and int(enabled):"
*return should return "",else the dependency of task-shr-minimal are "None".
I also bumped PR
DESCRIPTION = "SHR Lite Image Feed"
-PR = "r31"
+PR = "r32"
PV = "2.0"
LICENSE = "GPL"
enabled = bb.data.getVar("ENABLE_BINARY_LOCALE_GENERATION", d, 1)
# If locale is disabled, bail out
- if not enabled:
- return
+ if not enabled or not int(enabled):
+ return ""
locales = bb.data.getVar("GLIBC_GENERATE_LOCALES", d, 1)
if not locales or locales == "all":