From 8e2cef94b0575d1b2ca8d09cbaba02a4735f021d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Fri, 7 Mar 2025 19:08:22 +0000 Subject: [PATCH] Disable pccsadmin on RHEL to avoid python deps from EPEL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- linux-sgx.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux-sgx.spec b/linux-sgx.spec index bde9a04..e7069d0 100644 --- a/linux-sgx.spec +++ b/linux-sgx.spec @@ -37,8 +37,10 @@ # unreasonable burden fighting the build system for enclave pieces. %global with_aesm 0 +%global with_pccsadmin 0 %if 0%{?fedora} %global with_aesm 1 +%global with_pccsadmin 1 %endif %global with_sysusers_scripts 0 @@ -963,6 +965,7 @@ rmdir %{buildroot}/root/opt/intel/sgx-aesm-service ############################################################ # Host PCCS admin tool +%if %{with_pccsadmin} %__install -d %{buildroot}%{_datadir}/pccsadmin cp external/dcap_source/tools/PccsAdminTool/pccsadmin.py %{buildroot}%{_datadir}/pccsadmin/pccsadmin.py cp -a external/dcap_source/tools/PccsAdminTool/lib %{buildroot}%{_datadir}/pccsadmin/lib @@ -973,7 +976,7 @@ cat > %{buildroot}%{_bindir}/pccsadmin <