public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glib2] cve-2026-58016-f44: Switch to explicit byte compilation to override invalidation mode
@ 2026-08-11 10:36 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-11 10:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/glib2
Branch : cve-2026-58016-f44
Commit : de2e4aad989fff9bdd232b7f68b5e619198f5ef6
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date   : 2019-03-06T15:44:10+01:00
Stats  : +11/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/glib2/c/de2e4aad989fff9bdd232b7f68b5e619198f5ef6?branch=cve-2026-58016-f44

Log:
Switch to explicit byte compilation to override invalidation mode

---
diff --git a/glib2.spec b/glib2.spec
index fb8ddda..4e5fa61 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -1,12 +1,5 @@
-# This package depends on automagic byte compilation
-# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
-%global _python_bytecompile_extra 1
-
 %global _changelog_trimtime %(date +%s -d "1 year ago")
 
-# See https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
-%global __python %{__python3}
-
 Name: glib2
 Version: 2.60.0
 Release: 2%{?dist}
@@ -106,14 +99,19 @@ rm glib/pcre/*.[ch]
 
 %install
 %meson_install
-# Since this is a generated .py file, set it to a known timestamp,
-# otherwise it will vary by build time, and thus break multilib -devel
-# installs.
-# Also copy the timestamp for other .py files, because meson doesn't do
-# this, see https://github.com/mesonbuild/meson/issues/5027.
+# Since this is a generated .py file, set it to a known timestamp for
+# better reproducibility.
+# Also copy the timestamp for other .py files, because meson doesn't
+# do this, see https://github.com/mesonbuild/meson/issues/5027.
 touch -r gio/gdbus-2.0/codegen/config.py.in $RPM_BUILD_ROOT/%{_datadir}/glib-2.0/codegen/*.py
 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so
 
+# Perform byte compilation manually to avoid issues with
+# irreproducibility of the default invalidation mode, see
+# https://www.python.org/dev/peps/pep-0552/.
+export SOURCE_DATE_EPOCH=0
+%py_byte_compile %{__python3} %{buildroot}%{_datadir}
+
 mv  $RPM_BUILD_ROOT%{_bindir}/gio-querymodules $RPM_BUILD_ROOT%{_bindir}/gio-querymodules-%{__isa_bits}
 
 touch $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
@@ -223,6 +221,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 * Wed Mar  6 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.60.0-2
 - Make sure all .py files have fixed timestamps (fixes issue with
   parallel installability of i686 and amd64 -devel packages)
+- Switch to explicit byte compilation to override invalidation mode
 
 * Mon Mar 04 2019 Kalev Lember <klember@redhat.com> - 2.60.0-1
 - Update to 2.60.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-11 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-11 10:36 [rpms/glib2] cve-2026-58016-f44: Switch to explicit byte compilation to override invalidation mode 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox