From c0c9cfdb9d33da671a47d32ba67a0915604152c0 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 19 Apr 2018 10:16:35 -0400 Subject: [PATCH] ci: Temporary libgcrypt workaround for older kernels I'm trying to get ostree tests to pass in OpenShift as part of our CI move but I've been seeing lots of failures related to GPG tests. It finally turned out to be because libgcrypt doesn't behave well on older kernels that don't have `getrandom()` (the cluster is running on RHEL7). Thankfully, there's a new build with a fix for this. Pull that in manually until it gets into stable. For more information, see: https://bugzilla.redhat.com/show_bug.cgi?id=1542453 Closes: #1547 Approved by: cgwalters --- ci/libpaprci/libbuild.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/libpaprci/libbuild.sh b/ci/libpaprci/libbuild.sh index 9ad417b2..62dc2b29 100644 --- a/ci/libpaprci/libbuild.sh +++ b/ci/libpaprci/libbuild.sh @@ -66,6 +66,10 @@ pkg_builddep() { if rpm -q gpgme | grep -q gpgme-1.9.0-6.fc27; then dnf install -y https://kojipkgs.fedoraproject.org//packages/gpgme/1.10.0/4.fc27/x86_64/{gpgme{,-devel},python{2,3}-gpg}-1.10.0-4.fc27.x86_64.rpm fi + # https://bugzilla.redhat.com/show_bug.cgi?id=1542453 + if rpm -q libgcrypt | grep -q libgcrypt-1.8.2-1.fc27; then + dnf install -y https://kojipkgs.fedoraproject.org//packages/libgcrypt/1.8.2/2.fc27/x86_64/libgcrypt-1.8.2-2.fc27.x86_64.rpm + fi else yum-builddep -y "$@" fi