Skip to content

Commit d7e2d3d

Browse files
committed
--with compat_build: Don't set %py_reproducible_pyc_path to unexisting path
+ /usr/lib/rpm/redhat/brp-fix-pyc-reproducibility /builddir/build/BUILDROOT/llvm19-19.1.3-4.fc40.x86_64/usr/lib/python3.12/site-packages find: ‘/builddir/build/BUILDROOT/llvm19-19.1.3-4.fc40.x86_64/usr/lib/python3.12/site-packages’: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.VbdRja (%install)
1 parent 836ccfc commit d7e2d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ BuildRequires: procps-ng
371371
# For reproducible pyc file generation
372372
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
373373
# Since Fedora 41 this happens automatically, and RHEL 8 does not support this.
374-
%if (%{defined fedora} && 0%{?fedora} < 41) || 0%{?rhel} == 9 || 0%{?rhel} == 10
374+
%if %{without compat_build} && ((%{defined fedora} && 0%{?fedora} < 41) || 0%{?rhel} == 9 || 0%{?rhel} == 10)
375375
BuildRequires: /usr/bin/marshalparser
376376
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
377377
%endif

0 commit comments

Comments
 (0)