From 3f6550f0f15dc78786d60f6dafa25ee738070832 Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Sat, 3 Apr 2021 23:15:43 +0200 Subject: [PATCH] Make python3-clang bytecode reproducible across arches --- clang.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clang.spec b/clang.spec index 3fb56a7..d6c2d16 100644 --- a/clang.spec +++ b/clang.spec @@ -4,7 +4,7 @@ %global min_ver 0 %global patch_ver 0 %global rc_ver 4 -%global baserelease 9 +%global baserelease 10 %global clang_tools_binaries \ %{_bindir}/clang-apply-replacements \ @@ -133,6 +133,11 @@ BuildRequires: libatomic # We need python3-devel for pathfix.py. BuildRequires: python3-devel +# For reproducible pyc file generation +# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility +BuildRequires: /usr/bin/marshalparser +%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib} + # Needed for %%multilib_fix_c_header BuildRequires: multilib-rpm-config @@ -533,6 +538,9 @@ false %endif %changelog +* Sat Apr 03 2021 sguelton@redhat.com - 12.0.0-0.10.rc4 +- Make pyc files from python3-clang reproducible + * Fri Apr 02 2021 sguelton@redhat.com - 12.0.0-0.9.rc4 - New upstream release candidate