From 74cfcb57bfe702ffb23a254ed92ae3604ac26025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 18 Jan 2024 22:57:25 +0100 Subject: [PATCH] brp-python-bytecompile: Pass --invalidation-mode=timestamp to compileall Resolves: RHEL-22139 --- brp-python-bytecompile | 2 +- redhat-rpm-config.spec | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/brp-python-bytecompile b/brp-python-bytecompile index ead7022..4f587d4 100755 --- a/brp-python-bytecompile +++ b/brp-python-bytecompile @@ -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 diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 8a7dd05..aee0fdf 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -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 - 207-1 +- brp-python-bytecompile: Pass --invalidation-mode=timestamp to compileall +- Resolves: RHEL-22139 + * Mon Oct 02 2023 Nikita Popov - 206-1 - Use correct format specifier in brp-llvm-compile-lto-elf