Skip to content

Conversation

@cpuguy83
Copy link
Member

The makefile for runc no longer supports setting COMMIT (and some other things) through env var and instead must be set through make args.

Additionally adds urfave_cli_no_docs which is added to the base BUILDTAGS in 1.2 but is not set in 1.1.
This just makes it so the build tag is set on both 1.1 and 1.2 instead of relying on the make file for those tags across branches.

@cpuguy83 cpuguy83 changed the title runc 1.2 got rid of COMMIT env var support runc: set COMMIT via make arg Dec 31, 2024
Copy link
Contributor

@pmengelbert pmengelbert left a comment

Choose a reason for hiding this comment

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

See above

runc:
cd src && \
$(MAKE) runc BUILDTAGS='seccomp' VERSION="${VERSION}-${REVISION}"
$(MAKE) runc BUILDTAGS='seccomp urfave_cli_no_docs' VERSION="${VERSION}-${REVISION}" COMMIT=${COMMIT}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$(MAKE) runc BUILDTAGS='seccomp urfave_cli_no_docs' VERSION="${VERSION}-${REVISION}" COMMIT=${COMMIT}
$(MAKE) runc BUILDTAGS='seccomp urfave_cli_no_docs' VERSION="${VERSION}-${REVISION}" COMMIT="${COMMIT}"

rpm.mk has quotes around ${COMMIT}, so this should too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

The makefile for runc no longer supports setting COMMIT (and some other
things) through env var and instead must be set through make args.

Additionally adds `urfave_cli_no_docs` which is added to the base
BUILDTAGS in 1.2 but is not set in 1.1.
This just makes it so the build tag is set on both 1.1 and 1.2 instead
of relying on the make file for those tags across branches.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@pmengelbert pmengelbert merged commit 3cd4f43 into Azure:main Dec 31, 2024
5 checks passed
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.

2 participants