From 1dd985a086ea4e3b85d7a89e9a0a94d2d92f5e57 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 16 Jul 2024 10:29:26 +0000 Subject: [PATCH] Disable marshalparser on RHEL 8 --- llvm.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index a0a43f0..f39a48d 100644 --- a/llvm.spec +++ b/llvm.spec @@ -110,9 +110,10 @@ BuildRequires: python3-pexpect # This is required because we need "ps" when running LLDB tests BuildRequires: procps-ng -%if %{without compat_build} # For reproducible pyc file generation # See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility +# Since Fedora 41 this happens automatically, and RHEL 8 does not support this. +%if (%{defined fedora} && 0%{?fedora} < 41) || 0%{?rhel} == 9 || 0%{?rhel} == 10 BuildRequires: /usr/bin/marshalparser %global py_reproducible_pyc_path %{buildroot}%{python3_sitelib} %endif