- Add 103213-fetch-CONFIG_ARGS.patch (gh#python/cpython#103053).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=60
This commit is contained in:
parent
a48f5d0f80
commit
ea266df005
37
103213-fetch-CONFIG_ARGS.patch
Normal file
37
103213-fetch-CONFIG_ARGS.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From d3217d12eee9eefad8444e80545b82b2a8c2be4c Mon Sep 17 00:00:00 2001
|
||||
From: Ijtaba Hussain <ijtabahussain@live.com>
|
||||
Date: Mon, 3 Apr 2023 17:28:32 +0500
|
||||
Subject: [PATCH 1/3] Fetch CONFIG_ARGS from original python instance
|
||||
|
||||
instead of fetching from intermediate instance. As "make clean" is called
|
||||
against the intermediate instance, the build directory is cleared and the
|
||||
config arguments lookup fails with a ModuleNotFoundError
|
||||
---
|
||||
Misc/NEWS.d/next/Tools-Demos/2023-04-05-07-19-36.gh-issue-103186.yEozgK.rst | 2 ++
|
||||
Tools/freeze/test/freeze.py | 3 +--
|
||||
2 files changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
--- /dev/null
|
||||
+++ b/Misc/NEWS.d/next/Tools-Demos/2023-04-05-07-19-36.gh-issue-103186.yEozgK.rst
|
||||
@@ -0,0 +1,2 @@
|
||||
+``freeze`` now fetches ``CONFIG_ARGS`` from the original CPython instance
|
||||
+the Makefile uses to call utility scripts. Patch by Ijtaba Hussain.
|
||||
--- a/Tools/freeze/test/freeze.py
|
||||
+++ b/Tools/freeze/test/freeze.py
|
||||
@@ -96,7 +96,6 @@ def copy_source_tree(newroot, oldroot):
|
||||
if os.path.exists(os.path.join(newroot, 'Makefile')):
|
||||
_run_quiet([MAKE, 'clean'], newroot)
|
||||
|
||||
-
|
||||
def get_makefile_var(builddir, name):
|
||||
regex = re.compile(rf'^{name} *=\s*(.*?)\s*$')
|
||||
filename = os.path.join(builddir, 'Makefile')
|
||||
@@ -153,7 +152,7 @@ def prepare(script=None, outdir=None):
|
||||
print(f'configuring python in {builddir}...')
|
||||
cmd = [
|
||||
os.path.join(srcdir, 'configure'),
|
||||
- *shlex.split(get_config_var(srcdir, 'CONFIG_ARGS') or ''),
|
||||
+ *shlex.split(get_config_var(SRCDIR, 'CONFIG_ARGS') or ''),
|
||||
]
|
||||
ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache'))
|
||||
prefix = os.path.join(outdir, 'python-installation')
|
@ -2,6 +2,7 @@
|
||||
Sun Apr 30 18:13:16 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Why in the world we download from HTTP?
|
||||
- Add 103213-fetch-CONFIG_ARGS.patch (gh#python/cpython#103053).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 27 21:57:15 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
@ -170,6 +170,9 @@ Patch36: support-expat-CVE-2022-25236-patched.patch
|
||||
# PATCH-FIX-UPSTREAM CVE-2007-4559-filter-tarfile_extractall.patch bsc#1203750 mcepl@suse.com
|
||||
# PEP 706 – Filter for tarfile.extractall
|
||||
Patch37: CVE-2007-4559-filter-tarfile_extractall.patch
|
||||
# PATCH-FIX-UPSTREAM 103213-fetch-CONFIG_ARGS.patch gh#python/cpython#103053 mcepl@suse.com
|
||||
# Fetch CONFIG_ARGS from original python instance
|
||||
Patch38: 103213-fetch-CONFIG_ARGS.patch
|
||||
BuildRequires: autoconf-archive
|
||||
BuildRequires: automake
|
||||
BuildRequires: fdupes
|
||||
@ -442,6 +445,7 @@ other applications.
|
||||
%patch35 -p1
|
||||
%patch36 -p1
|
||||
%patch37 -p1
|
||||
%patch38 -p1
|
||||
|
||||
# drop Autoconf version requirement
|
||||
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
||||
|
Loading…
Reference in New Issue
Block a user