forked from pool/python38
- Adding bso1227999-reproducible-builds.patch fixing bsc#1227999
adding reproducibility patches from gh#python/cpython!121872 and gh#python/cpython!121883. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=162
This commit is contained in:
parent
394799feb0
commit
7199bebb4c
37
bso1227999-reproducible-builds.patch
Normal file
37
bso1227999-reproducible-builds.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From ac2b8869724d7a57d9b5efbdce2f20423214e8bb Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
||||||
|
Date: Tue, 16 Jul 2024 21:39:33 +0200
|
||||||
|
Subject: [PATCH] Allow to override build date with SOURCE_DATE_EPOCH
|
||||||
|
|
||||||
|
to make builds reproducible.
|
||||||
|
See https://reproducible-builds.org/ for why this is good
|
||||||
|
and https://reproducible-builds.org/specs/source-date-epoch/
|
||||||
|
for the definition of this variable.
|
||||||
|
---
|
||||||
|
Doc/conf.py | 3 ++-
|
||||||
|
Doc/library/functions.rst | 2 +-
|
||||||
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/Doc/conf.py
|
||||||
|
+++ b/Doc/conf.py
|
||||||
|
@@ -78,7 +78,8 @@ html_short_title = '%s Documentation' %
|
||||||
|
|
||||||
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
|
# using the given strftime format.
|
||||||
|
-html_last_updated_fmt = '%b %d, %Y'
|
||||||
|
+html_time = int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
|
||||||
|
+html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M UTC)', time.gmtime(html_time))
|
||||||
|
|
||||||
|
# Path to find HTML templates.
|
||||||
|
templates_path = ['tools/templates']
|
||||||
|
--- a/Doc/library/functions.rst
|
||||||
|
+++ b/Doc/library/functions.rst
|
||||||
|
@@ -1238,7 +1238,7 @@ are always available. They are listed h
|
||||||
|
(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:`tempfile`,
|
||||||
|
and :mod:`shutil`.
|
||||||
|
|
||||||
|
- .. audit-event:: open file,mode,flags open
|
||||||
|
+ .. audit-event:: open path,mode,flags open
|
||||||
|
|
||||||
|
The ``mode`` and ``flags`` arguments may have been modified or inferred from
|
||||||
|
the original call.
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 8 19:30:36 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Adding bso1227999-reproducible-builds.patch fixing bsc#1227999
|
||||||
|
adding reproducibility patches from gh#python/cpython!121872
|
||||||
|
and gh#python/cpython!121883.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 22 21:20:54 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Mon Jul 22 21:20:54 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
@ -192,6 +192,9 @@ Patch44: CVE-2024-0397-memrace_ssl.SSLContext_cert_store.patch
|
|||||||
# PATCH-FIX-UPSTREAM CVE-2024-4032-private-IP-addrs.patch bsc#1226448 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM CVE-2024-4032-private-IP-addrs.patch bsc#1226448 mcepl@suse.com
|
||||||
# rearrange definition of private v global IP addresses
|
# rearrange definition of private v global IP addresses
|
||||||
Patch45: CVE-2024-4032-private-IP-addrs.patch
|
Patch45: CVE-2024-4032-private-IP-addrs.patch
|
||||||
|
# PATCH-FIX-UPSTREAM bso1227999-reproducible-builds.patch bsc#1227999 mcepl@suse.com
|
||||||
|
# reproducibility patches
|
||||||
|
Patch46: bso1227999-reproducible-builds.patch
|
||||||
BuildRequires: autoconf-archive
|
BuildRequires: autoconf-archive
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -444,28 +447,29 @@ other applications.
|
|||||||
%patch -P 05 -p1
|
%patch -P 05 -p1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%patch -P 06 -p1
|
%patch -p1 -P 06
|
||||||
%patch -P 07 -p1
|
%patch -p1 -P 07
|
||||||
%patch -P 08 -p1
|
%patch -p1 -P 08
|
||||||
%patch -P 09 -p1
|
%patch -p1 -P 09
|
||||||
%patch -P 15 -p1
|
%patch -p1 -P 15
|
||||||
%patch -P 23 -p1
|
%patch -p1 -P 23
|
||||||
%patch -P 24 -p1
|
%patch -p1 -P 24
|
||||||
%patch -P 25 -p1
|
%patch -p1 -P 25
|
||||||
%patch -P 27 -p1
|
%patch -p1 -P 27
|
||||||
%patch -P 28 -p1
|
%patch -p1 -P 28
|
||||||
%patch -P 29 -p1
|
%patch -p1 -P 29
|
||||||
%patch -P 32 -p1
|
%patch -p1 -P 32
|
||||||
%patch -P 33 -p1
|
%patch -p1 -P 33
|
||||||
%patch -P 34 -p1
|
%patch -p1 -P 34
|
||||||
%patch -P 36 -p1
|
%patch -p1 -P 36
|
||||||
%patch -P 37 -p1
|
%patch -p1 -P 37
|
||||||
%patch -P 38 -p1
|
%patch -p1 -P 38
|
||||||
%patch -P 41 -p1
|
%patch -p1 -P 41
|
||||||
%patch -P 42 -p1
|
%patch -p1 -P 42
|
||||||
%patch -P 43 -p1
|
%patch -p1 -P 43
|
||||||
%patch -P 44 -p1
|
%patch -p1 -P 44
|
||||||
%patch -P 45 -p1
|
%patch -p1 -P 45
|
||||||
|
%patch -p1 -P 46
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
||||||
|
Loading…
Reference in New Issue
Block a user