Skip to contentSkip to conversation

utils/checkpackagelib/lib_mk.py: check CONF_OPTS

PATCH Applied Fabrice Fontaine 2 participants 2 messages Feb 23, 2022 – Mar 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/checkpackagelib/lib_mk.py: check CONF_OPTS

As already done for {FOO}_DEPENDENCIES in commit 4910a175b3f1f4b55ff257a75945d8ffb14a4ceb, check that {FOO}_CONF_OPTS are never overridden in a conditional

---
 utils/checkpackagelib/lib_mk.py | 1 +
 1 file changed, 1 insertion(+)
utils/checkpackagelib/lib_mk.py +1 -0
index 153754b6f1..b50a19ac62 100644
@@ -90,6 +90,7 @@ class OverriddenVariable(_CheckFunction):
         r"_SOURCE\s*=\s*",
         r"_VERSION\s*=\s*"])))
     FORBIDDEN_OVERRIDDEN = re.compile(r"^[A-Z0-9_]+({})".format("|".join([
+        r"_CONF_OPTS\s*=\s*",
         r"_DEPENDENCIES\s*=\s*"])))
 
     def before(self):
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · Fabrice Fontaine

As already done for {FOO}_DEPENDENCIES in commit 4910a175b3f1f4b55ff257a75945d8ffb14a4ceb, check that {FOO}_CONF_OPTS are never overridden in a conditional

 Applied to master, thanks.

upmpdcli.mk failed this check, so I also pushed a fix.

 Regards,
 Arnout

Quoted 9 lines
---
  utils/checkpackagelib/lib_mk.py | 1 +
  1 file changed, 1 insertion(+)
utils/checkpackagelib/lib_mk.py +0 -0
index 153754b6f1..b50a19ac62 100644

utils/checkpackagelib/lib_mk.py class OverriddenVariable(_CheckFunction): · line 96

Quoted 7 lines
utils/checkpackagelib/lib_mk.py +1 -0
@@ -90,6 +90,7 @@ class OverriddenVariable(_CheckFunction):
          r"_SOURCE\s*=\s*",
          r"_VERSION\s*=\s*"])))
      FORBIDDEN_OVERRIDDEN = re.compile(r"^[A-Z0-9_]+({})".format("|".join([
+        r"_CONF_OPTS\s*=\s*",
          r"_DEPENDENCIES\s*=\s*"])))
 
      def before(self):

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot