Skip to contentSkip to conversation

travis: include CentOS stream 8

PATCH In review Mimi Zohar 2 participants 3 messages Mar 23, 2022 – Mar 24, 2022 Keys-trusted

lore
Share & tools
lore

Mimi Zohar

author maintainer
#0 lore raw

PATCH 1/1 travis: include CentOS stream 8

Replace CentOS 8 with CentOS stream 8.
Use podman for both CentOS 7 & 8.

---
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
.travis.yml +2 -2
index bdf78a1b12cd..0b70971a3c76 100644
@@ -52,11 +52,11 @@ matrix:
           compiler: clang
 
         - os: linux
-          env: DISTRO=centos:7 TSS=tpm2-tss
+          env: DISTRO=centos:7 TSS=tpm2-tss CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
           compiler: gcc
 
         - os: linux
-          env: DISTRO=centos:latest TSS=tpm2-tss
+          env: REPO="quay.io/centos/" DISTRO="${REPO}centos:stream8" TSS=tpm2-tss CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/crun --network=host"
           compiler: clang
 
         - os: linux
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Mimi,

Quoted 2 lines

Replace CentOS 8 with CentOS stream 8.
Use podman for both CentOS 7 & 8.

What a shame that GitHub Actions cannot specify container.

Kind regards,
Petr

author maintainer
#2 lore raw
Quoted 6 lines · Petr Vorel

Hi Mimi,

Quoted 2 lines

Replace CentOS 8 with CentOS stream 8.
Use podman for both CentOS 7 & 8.

Thanks, Petr. The three CI changes are now queued in next-testing.

Quoted 2 lines

What a shame that GitHub Actions cannot specify container.

Looking on the bright side, at least we didn't remove the travis
support. Below are a few of the "centos:stream9" compiler warnings
and runtime errors.

Build:
evmctl.c:955:2: warning: 'RSA_free' is deprecated [-Wdeprecated- declarations]

        RSA_free(key);

evmctl.c:1096:9: warning: 'HMAC_CTX_new' is deprecated [-Wdeprecated- declarations]

        pctx = HMAC_CTX_new();
        ^
evmctl.c:2249:3: warning: 'SHA1_Init' is deprecated [-Wdeprecated-
declarations]
                SHA1_Init(&c);

evmctl.c:2646:16: warning: 'ENGINE_by_id' is deprecated [-Wdeprecated- declarations]

        ENGINE *eng = ENGINE_by_id(engine_id);

Rruntime:

evmctl -v ima_verify --key test-rsa1024.pub --xattr-user --sigfile sha256.txt
Failed to d2i_X509_fp key file: test-rsa1024.pub
openssl: error:068000A8:asn1 encoding routines::wrong tag
openssl: error:0688010A:asn1 encoding routines::nested asn1 error

sha1 (test-rsa1024.key) test is skipped (openssl is unable to sign)

evmctl -v verify --key test-rsa1024.pub --xattr-user --rsa --uuid -- generation 0 sha256.txt
evmctl verify failed properly with (125)

sha1 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha1 sha1.txt
sha1 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha224 sha224.txt
sha224 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha224 sha224.txt
sha224 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha256 sha256.txt
sha256 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha256 sha256.txt
sha256 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha384 sha384.txt
sha384 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha384 sha384.txt
sha384 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha512 sha512.txt
sha512 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha512 sha512.txt
sha512 (test-prime192v1.key) test is skipped (key file not found)
- openssl dgst -sha1 sha1.txt
- openssl dgst -sha1 -sign test-prime256v1.key -hex sha1.txt

Signature · 3 lines
thanks,

Mimi