From d9c5eabd7be7552846a8fc5638273b59ac35644a Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 7 Aug 2025 14:11:28 +0800 Subject: [PATCH] do not bytecompile other directories by default (cherry picked from commit fb5af160635039cf2961b16971b94c2d5ca0efc5) --- macros | 2 +- openEuler-rpm-config.spec | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/macros b/macros index 65ebb74..155df44 100644 --- a/macros +++ b/macros @@ -312,7 +312,7 @@ for k,_ in pairs(stripped_flags) do print(k .. " ") end ## Should python bytecompilation errors terminate a build? %_python_bytecompile_errors_terminate_build 1 ## Should python bytecompilation compile outisde python specific directories? -%_python_bytecompile_extra 1 +%_python_bytecompile_extra 0 # Use SHA-256 for FILEDIGESTS instead of default MD5 %_source_filedigest_algorithm 8 diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index ad836fb..6304bee 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 31 -Release: 32 +Release: 33 License: GPL+ AND MIT Summary: specific rpm configuration files URL: https://gitee.com/src-openeuler/openEuler-rpm-config @@ -211,6 +211,10 @@ sed -i "s|@OSCPE@|$(cat /etc/system-release-cpe)|" %{buildroot}%{rpmvdir}/%{vend %{rpmvdir}/find-requires.ksyms %changelog +* Thu Aug 07 2025 Funda Wang - 31-33 +- do not bytecompile other directories by default + https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 + * Tue Aug 05 2025 Funda Wang - 31-32 - export RUSTFLAGS if it is defined - define valaflags also -- Gitee