brp-python-bytecompile: Pass --invalidation-mode=timestamp to compileall

Resolves: RHEL-22139
This commit is contained in:
Miro Hrončok 2024-01-18 22:57:25 +01:00
parent f567673967
commit 74cfcb57bf
2 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,7 @@ function python_bytecompile()
# -x and -e together implements the same functionality as the Filter class below
# -s strips $RPM_BUILD_ROOT from the path
# -p prepends the leading slash to the path to make it absolute
$python_binary -B $options -m compileall -q -f $exclude -s $RPM_BUILD_ROOT -p / -e $RPM_BUILD_ROOT $python_libdir
$python_binary -B $options -m compileall -q -f $exclude -s $RPM_BUILD_ROOT -p / -e $RPM_BUILD_ROOT --invalidation-mode=timestamp $python_libdir
#
# Python 3.4 and higher

View File

@ -6,7 +6,7 @@
Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config
Version: 206
Version: 207
Release: 1%{?dist}
# No version specified.
License: GPL+
@ -254,6 +254,10 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
%doc buildflags.md
%changelog
* Thu Jan 18 2024 Miro Hrončok <mhroncok@redhat.com> - 207-1
- brp-python-bytecompile: Pass --invalidation-mode=timestamp to compileall
- Resolves: RHEL-22139
* Mon Oct 02 2023 Nikita Popov <npopov@redhat.com> - 206-1
- Use correct format specifier in brp-llvm-compile-lto-elf