From 55513ee34ee9c1b7948b2c57ae7bda68b21d8de2 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Sun, 15 Mar 2026 03:45:07 +0900 Subject: [PATCH] Dockerfile: runc: omit libpathrs Fix issue 4793 Signed-off-by: Akihiro Suda --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5ab9d77f08e..1ba5604cbc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -97,7 +97,8 @@ WORKDIR /go/src/github.com/opencontainers/runc RUN git-checkout-tag-with-hash.sh ${RUNC_VERSION} && \ mkdir -p /out ENV CGO_ENABLED=1 -RUN GO=xx-go CC=$(xx-info)-gcc STRIP=$(xx-info)-strip make static && \ +# FIXME: avoid omitting libpathrs +RUN set -x ; GO=xx-go CC=$(xx-info)-gcc STRIP=$(xx-info)-strip make BUILDTAGS="$(grep -oP "^BUILDTAGS := \K.*" Makefile | sed -e s/libpathrs//)" static && \ xx-verify --static runc && cp -v -a runc /out/runc.${TARGETARCH} FROM build-base AS build-bypass4netns