mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
[1.4] script: seccomp.sh -> build-seccomp.sh
This name is far more descriptive.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
(cherry picked from commit b1a9047c7a)
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
+4
-2
@@ -54,14 +54,16 @@ RUN cd /tmp \
|
||||
&& ./install.sh /usr/local \
|
||||
&& rm -rf /tmp/bats-core
|
||||
|
||||
ARG RELEASE_ARCHES="386 amd64 arm64 armel armhf ppc64le riscv64 s390x"
|
||||
ENV DYLIB_DIR=/opt/runc-dylibs
|
||||
|
||||
# install libseccomp
|
||||
ARG LIBSECCOMP_VERSION
|
||||
COPY script/seccomp.sh script/lib.sh /tmp/script/
|
||||
COPY script/build-seccomp.sh script/lib.sh /tmp/script/
|
||||
RUN mkdir -p $DYLIB_DIR \
|
||||
&& /tmp/script/seccomp.sh "$LIBSECCOMP_VERSION" $DYLIB_DIR 386 amd64 arm64 armel armhf ppc64le riscv64 s390x
|
||||
&& /tmp/script/build-seccomp.sh "$LIBSECCOMP_VERSION" $DYLIB_DIR $RELEASE_ARCHES
|
||||
ENV LIBSECCOMP_VERSION=$LIBSECCOMP_VERSION
|
||||
|
||||
ENV LD_LIBRARY_PATH=$DYLIB_DIR/lib
|
||||
ENV PKG_CONFIG_PATH=$DYLIB_DIR/lib/pkgconfig
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ function build_libseccomp() {
|
||||
}
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Usage: seccomp.sh <version> <dest-dir> [<extra-arch> ...]" >&2
|
||||
echo "Usage: $0 <version> <dest-dir> [<extra-arch> ...]" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -47,7 +47,7 @@ function build_project() {
|
||||
trap 'rm -rf "$dylibdir"' EXIT
|
||||
dylibdir="$(mktemp -d)"
|
||||
# Download and build libseccomp.
|
||||
"$root/script/seccomp.sh" "$LIBSECCOMP_VERSION" "$dylibdir" "${arches[@]}"
|
||||
"$root/script/build-seccomp.sh" "$LIBSECCOMP_VERSION" "$dylibdir" "${arches[@]}"
|
||||
fi
|
||||
|
||||
# For reproducible builds, add these to EXTRA_LDFLAGS:
|
||||
|
||||
Reference in New Issue
Block a user