Skip to content

Makefile: error out on deprecated EXTRA_BUILDTAGS - #5511

Merged
kolyshkin merged 1 commit into
opencontainers:mainfrom
kolyshkin:rm-extra-buildtags
Oct 5, 2026
Merged

kolyshkin merged 1 commit into
opencontainers:mainfrom
kolyshkin:rm-extra-buildtags

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

EXTRA_BUILDTAGS was deprecated in favor of RUNC_BUILDTAGS in runc 1.5 (#5171, #5198), and scheduled for removal in runc 1.6. Remove it.

Rather than silently ignoring it (which would result in a binary built without the requested build tags), make it a hard error. The check itself can be removed in runc 1.8.

@kolyshkin kolyshkin added this to the 1.6.0 milestone Oct 4, 2026
@kolyshkin
kolyshkin requested a review from rata October 4, 2026 23:23
Comment thread Makefile
BUILDTAGS := $(filter-out $(BUILDTAGS_REMOVE),$(BUILDTAGS)) $(BUILDTAGS_ADD)
# TODO: remove EXTRA_BUILDTAGS for runc 1.6.
ifdef EXTRA_BUILDTAGS
$(warning EXTRA_BUILDTAGS is deprecated; use RUNC_BUILDTAGS instead)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep this for a while as an error message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

EXTRA_BUILDTAGS was deprecated in favor of RUNC_BUILDTAGS in runc 1.5
(opencontainers#5171, opencontainers#5198), and scheduled for removal in runc 1.6. Remove it.

Rather than silently ignoring it (which would result in a binary built
without the requested build tags), make it a hard error.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin changed the title Makefile: remove deprecated EXTRA_BUILDTAGS Makefile: error out on deprecated EXTRA_BUILDTAGS Oct 5, 2026
@kolyshkin
kolyshkin requested a review from AkihiroSuda October 5, 2026 05:07

@rata rata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@rata

rata commented Oct 5, 2026

Copy link
Copy Markdown
Member

I think it will be nice to include this in the rc.1. But if you have all ready as it is, we can include this in the next rc. Not merging to not accidentally create issues for the rc release :)

@kolyshkin kolyshkin modified the milestones: 1.6.0, 1.6.0-rc.1 Oct 5, 2026
@kolyshkin
kolyshkin merged commit 8ded88c into opencontainers:main Oct 5, 2026
91 checks passed
@kolyshkin kolyshkin mentioned this pull request Oct 5, 2026
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.

3 participants