From f8df93540434694e88dd9f62c926b75fe54f8f20 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Tue, 1 Mar 2022 13:54:54 +0000 Subject: [PATCH] Disable RPATH checking, as it will fail with some of the paths in the Python virtualenv, in particular Pillow.libs. --- pkg/redhat/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/redhat/build.sh b/pkg/redhat/build.sh index 2de1dfb71..3bc389723 100755 --- a/pkg/redhat/build.sh +++ b/pkg/redhat/build.sh @@ -46,6 +46,10 @@ cat << EOF > "${BUILDROOT}/server.spec" %global __provides_exclude_from ^/.*$ %global _build_id_links none +# Disable RPATH checking, as it will fail with some of the paths in the Python +# virtualenv, in particular Pillow.libs. +%global __brp_check_rpaths %{nil} + # Bytecompiling Python 3 doesn't work on RHEL/CentOS 7, so make it a no-op %if 0%{?rhel} && 0%{?rhel} == 7 %define __python /bin/true