Skip to contentSkip to conversation

layerindex: exclude vardeps from PACKAGECONFIG parsing

PATCH New [email protected] 1 participant 1 message Mar 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 layerindex: exclude vardeps from PACKAGECONFIG parsing

From: Jean-Pierre Geslin <[email protected]>

When the PACKAGECONFIG variable is defined with an anonymous Python function, it is mandatory to also set the vardeps flag to ensure that bitbake follows it correctly. This fix prevents the presence of vardeps in the PACKAGECONFIG web interface section.

---
 layerindex/recipeparse.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
layerindex/recipeparse.py +1 -1
index 9be6c10..d593def 100644
@@ -184,7 +184,7 @@ def handle_recipe_depends(recipe, depends, packageconfig_opts, logger):
     dynamicdeps = list(recipe.dynamicbuilddep_set.values_list('name', flat=True))
     PackageConfig.objects.filter(recipe=recipe).delete()
     for key, value in packageconfig_opts.items():
-        if key == "doc":
+        if key in ["doc", "vardeps"]:
             continue
         package_config = PackageConfig()
         package_config.feature = key