- Remove %suse_update_desktop_file macro as it is not useful any
more. - Adding bso1227999-reproducible-builds.patch fixing bsc#1227999 adding reproducibility patches from gh#python/cpython!121872 and gh#python/cpython!121883. - Stop using %%defattr, it seems to be breaking proper executable attributes on /usr/bin/ scripts (bsc#1227378). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=59
This commit is contained in:
parent
1df7c73f9c
commit
822e5022b5
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
|
||||||
|
@@ -316,7 +316,8 @@ html_context = {
|
||||||
|
}
|
||||||
|
|
||||||
|
# This 'Last updated on:' timestamp is inserted at the bottom of every page.
|
||||||
|
-html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M UTC)', time.gmtime())
|
||||||
|
+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
|
||||||
|
@@ -1356,7 +1356,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.
|
@ -14,6 +14,19 @@ Mon Jul 22 21:20:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
|||||||
- Remove %suse_update_desktop_file macro as it is not useful any
|
- Remove %suse_update_desktop_file macro as it is not useful any
|
||||||
more.
|
more.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 18 22:37:07 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 15 12:14:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Stop using %%defattr, it seems to be breaking proper executable
|
||||||
|
attributes on /usr/bin/ scripts (bsc#1227378).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 4 16:04:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Thu Jul 4 16:04:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
@ -189,6 +189,9 @@ Patch41: docs-docutils_014-Sphinx_420.patch
|
|||||||
# PATCH-FIX-UPSTREAM CVE-2024-6923-email-hdr-inject.patch bsc#1228780 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM CVE-2024-6923-email-hdr-inject.patch bsc#1228780 mcepl@suse.com
|
||||||
# prevent email header injection, patch from gh#python/cpython!122608
|
# prevent email header injection, patch from gh#python/cpython!122608
|
||||||
Patch42: CVE-2024-6923-email-hdr-inject.patch
|
Patch42: CVE-2024-6923-email-hdr-inject.patch
|
||||||
|
# PATCH-FIX-UPSTREAM bso1227999-reproducible-builds.patch bsc#1227999 mcepl@suse.com
|
||||||
|
# reproducibility patches
|
||||||
|
Patch43: bso1227999-reproducible-builds.patch
|
||||||
BuildRequires: autoconf-archive
|
BuildRequires: autoconf-archive
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user