Skip to content

validators: warn on feed packages forcing DEFAULT via BUILDBOT - #59

Open
BKPepe wants to merge 1 commit into
mainfrom
feature/flag-buildbot-default-in-feeds
Open

validators: warn on feed packages forcing DEFAULT via BUILDBOT#59
BKPepe wants to merge 1 commit into
mainfrom
feature/flag-buildbot-default-in-feeds

Conversation

@BKPepe

@BKPepe BKPepe commented Jul 20, 2026

Copy link
Copy Markdown
Member

A package's own Makefile can pull itself into buildbot default images by conditioning DEFAULT on BUILDBOT (e.g. openwrt/packages#29022, openwrt/packages' utils/owut/Makefile), bypassing the main openwrt/openwrt repo's own default-package process entirely. See issue #4.

Add check_buildbot_default (default: warning) to flag newly added DEFAULT lines conditioned on BUILDBOT inside feed Makefiles. Plain DEFAULT:=y (not gated on BUILDBOT) is left alone since that's a normal, legitimate use of the variable. The check is skipped for the main openwrt/openwrt repo, where this is the intended mechanism, and only looks at added lines so pre-existing occurrences like owut's aren't retroactively flagged.

Fixes: #4

A package's own Makefile can pull itself into buildbot default images
by conditioning DEFAULT on BUILDBOT (e.g. openwrt/packages#29022,
openwrt/packages' utils/owut/Makefile), bypassing the main
openwrt/openwrt repo's own default-package process entirely. See
issue #4.

Add check_buildbot_default (default: warning) to flag newly added
DEFAULT lines conditioned on BUILDBOT inside feed Makefiles. Plain
DEFAULT:=y (not gated on BUILDBOT) is left alone since that's a normal,
legitimate use of the variable. The check is skipped for the main
openwrt/openwrt repo, where this is the intended mechanism, and only
looks at added lines so pre-existing occurrences like owut's aren't
retroactively flagged.

Fixes: #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flag the usage of 'DEFAULT' in Makefile

1 participant