From 9981a6767dd2da7c03d36c7f06dcd52a324fa732 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 1 Mar 2023 16:10:53 +0100 Subject: [PATCH] btrfs-progs: ci: enable crypto backends on Centos images Add the libaries and update script so additional configure parameters can be passed. Also enable backtrace so it's closer to the defaults. Only the libsodium is enabled and verified to build, libgcrypt has sufficient version on 8 but configure does not detect it for some reason. Libkca is old on both. Signed-off-by: David Sterba --- ci/ci-build-centos7 | 7 ++++--- ci/ci-build-centos8 | 7 ++++--- ci/images/ci-centos-7-x86_64/Dockerfile | 2 ++ ci/images/ci-centos-8-x86_64/Dockerfile | 2 ++ 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ci/ci-build-centos7 b/ci/ci-build-centos7 index 7ba9e187..c8e39fd0 100755 --- a/ci/ci-build-centos7 +++ b/ci/ci-build-centos7 @@ -1,7 +1,7 @@ #!/bin/sh -# Usage: $0 [branch] +# Usage: $0 [branch] [configure options] # Create source tarball from HEAD or given branch and build it in Centos 7 CI -# environment +# environment. Configure options follow branch name that can be empty. HERE=`pwd` if [ -f "configure.ac" ]; then @@ -16,6 +16,7 @@ fi CIIMAGEDIR=ci/images/ci-centos-7-x86_64 BRANCH=${1:-HEAD} +shift HASH=$(git log -1 --format='%h %s' "$BRANCH") echo "CI: Generate archive from $BRANCH ($HASH)" @@ -28,4 +29,4 @@ gzip --force --best devel.tar cd "$CIIMAGEDIR" cp "$SOURCEDIR/devel.tar.gz" . ./docker-build -./docker-run -- ./test-build devel --disable-documentation --disable-backtrace --disable-libudev +./docker-run -- ./test-build devel --disable-documentation --disable-libudev "$@" diff --git a/ci/ci-build-centos8 b/ci/ci-build-centos8 index c1a7a524..05f24257 100755 --- a/ci/ci-build-centos8 +++ b/ci/ci-build-centos8 @@ -1,7 +1,7 @@ #!/bin/sh -# Usage: $0 [branch] +# Usage: $0 [branch] [configure options] # Create source tarball from HEAD or given branch and build it in Centos 8 CI -# environment +# environment. Configure options follow branch name that can be empty. HERE=`pwd` if [ -f "configure.ac" ]; then @@ -16,6 +16,7 @@ fi CIIMAGEDIR=ci/images/ci-centos-8-x86_64 BRANCH=${1:-HEAD} +shift HASH=$(git log -1 --format='%h %s' "$BRANCH") echo "CI: Generate archive from $BRANCH ($HASH)" @@ -28,4 +29,4 @@ gzip --force --best devel.tar cd "$CIIMAGEDIR" cp "$SOURCEDIR/devel.tar.gz" . ./docker-build -./docker-run -- ./test-build devel --disable-documentation --disable-backtrace --disable-libudev --disable-zoned +./docker-run -- ./test-build devel --disable-documentation --disable-libudev --disable-zoned "$@" diff --git a/ci/images/ci-centos-7-x86_64/Dockerfile b/ci/images/ci-centos-7-x86_64/Dockerfile index f1f703e3..ccf0bc2d 100644 --- a/ci/images/ci-centos-7-x86_64/Dockerfile +++ b/ci/images/ci-centos-7-x86_64/Dockerfile @@ -20,6 +20,8 @@ RUN yum -y install wget RUN yum -y install coreutils util-linux e2fsprogs findutils grep RUN yum -y install udev device-mapper acl attr xz +RUN yum -y install libsodium-devel + # For debugging RUN yum -y install less vim diff --git a/ci/images/ci-centos-8-x86_64/Dockerfile b/ci/images/ci-centos-8-x86_64/Dockerfile index 37536ee7..edc9ed90 100644 --- a/ci/images/ci-centos-8-x86_64/Dockerfile +++ b/ci/images/ci-centos-8-x86_64/Dockerfile @@ -23,6 +23,8 @@ RUN yum -y install wget RUN yum -y install util-linux e2fsprogs findutils grep RUN yum -y install udev device-mapper acl attr xz +RUN yum -y install libsodium-devel + # For debugging RUN yum -y install less vim