Prevent runc inheriting BUILDTAGS from containerd
Both runc and containerd use BUILDTAGS to customize go build-tags. When building containerd with custom build-tags, runc inherited those, causing the default to be overwritten, e.g.; make BUILDTAGS=no_btrfs cri-cni-release (in script/setup/install-runc) HEAD is now at 12644e61 VERSION: release 1.0.0~rc93 make[1]: Entering directory '/tmp/tmp.ZJzc2KtI0A/runc' go build -trimpath "-mod=vendor" "-buildmode=pie" -tags "no_btrfs" -ldflags "-X main.gitCommit="12644e614e25b05da6fd08a38ffa0cfe1903fdec" -X main.version=1.0.0-rc93 " -o runc . ^^^^^^^^^^^^^^^^ This patch brings back the BUILDTAGS make-var in the runc-install script, which fixates the buildtags to our defaults. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9d5c1165a6
commit
55a9bbc033
@ -30,7 +30,7 @@ function install_runc() {
|
|||||||
git clone https://github.com/opencontainers/runc.git "${TMPROOT}"/runc
|
git clone https://github.com/opencontainers/runc.git "${TMPROOT}"/runc
|
||||||
pushd "${TMPROOT}"/runc
|
pushd "${TMPROOT}"/runc
|
||||||
git checkout "${RUNC_VERSION}"
|
git checkout "${RUNC_VERSION}"
|
||||||
make
|
make BUILDTAGS='seccomp' runc
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
rm -fR "${TMPROOT}"
|
rm -fR "${TMPROOT}"
|
||||||
|
Loading…
Reference in New Issue
Block a user