#51 Update to 7.3.15 and fix of FTBFS
Merged 3 months ago by churchyard. Opened 3 months ago by cstratak.
rpms/ cstratak/pypy3.9 7.3.15  into  rawhide

file modified
+1
@@ -24,3 +24,4 @@ 

  /pypy3.9-v7.3.11-src.tar.bz2

  /pypy3.9-v7.3.12-src.tar.bz2

  /pypy3.9-v7.3.13-src.tar.bz2

+ /pypy3.9-v7.3.15-src.tar.bz2

@@ -0,0 +1,25 @@ 

+ From 2d689b133337084a6f00982462b58486bf6bd3a4 Mon Sep 17 00:00:00 2001

+ From: mattip <matti.picus@gmail.com>

+ Date: Tue, 19 Mar 2024 08:45:03 +0200

+ Subject: [PATCH] fix 'const' in signature of Tcl_Merge (issue 4926)

+ 

+ ---

+  lib_pypy/_tkinter/tklib_build.py | 2 +-

+  1 file changed, 1 insertion(+), 1 deletion(-)

+ 

+ diff --git a/lib_pypy/_tkinter/tklib_build.py b/lib_pypy/_tkinter/tklib_build.py

+ index 0e4e93c..44c1d10 100644

+ --- a/lib_pypy/_tkinter/tklib_build.py

+ +++ b/lib_pypy/_tkinter/tklib_build.py

+ @@ -171,7 +171,7 @@ int Tcl_ListObjGetElements(Tcl_Interp *interp, Tcl_Obj *listPtr, int *objcPtr, T

+  int Tcl_ListObjLength(Tcl_Interp* interp, Tcl_Obj* listPtr, int* intPtr);

+  int Tcl_ListObjIndex(Tcl_Interp* interp, Tcl_Obj* listPtr, int index, Tcl_Obj** objPtrPtr);

+  int Tcl_SplitList(Tcl_Interp* interp, char* list, int* argcPtr, const char*** argvPtr);

+ -char* Tcl_Merge(int argc, char** argv);

+ +char* Tcl_Merge(int argc, const char * const* argv);

+  

+  int Tcl_Eval(Tcl_Interp* interp, const char* script);

+  int Tcl_EvalFile(Tcl_Interp* interp, const char* filename);

+ -- 

+ 2.43.2

+ 

@@ -1,61 +0,0 @@ 

- diff --git a/lib-python/3/ensurepip/__init__.py b/lib-python/3/ensurepip/__init__.py

- index e510cc7..8b736b8 100644

- --- a/lib-python/3/ensurepip/__init__.py

- +++ b/lib-python/3/ensurepip/__init__.py

- @@ -1,3 +1,5 @@

- +import distutils.version

- +import glob

-  import os

-  import os.path

-  import sys

- @@ -6,13 +8,28 @@ import tempfile

-  import subprocess

-  from importlib import resources

-  

- -from . import _bundled

-  

- +__all__ = ["version", "bootstrap"]

-  

- +_WHEEL_DIR = "/usr/share/python-wheels/"

- +

- +_wheels = {}

- +

- +def _get_most_recent_wheel_version(pkg):

- +    prefix = os.path.join(_WHEEL_DIR, "{}-".format(pkg))

- +    _wheels[pkg] = {}

- +    for suffix in "-py2.py3-none-any.whl", "-py3-none-any.whl":

- +        pattern = "{}*{}".format(prefix, suffix)

- +        for path in glob.glob(pattern):

- +            version_str = path[len(prefix):-len(suffix)]

- +            _wheels[pkg][version_str] = os.path.basename(path)

- +    return str(max(_wheels[pkg], key=distutils.version.LooseVersion))

- +

- +

- +_SETUPTOOLS_VERSION = _get_most_recent_wheel_version("setuptools")

- +

- +_PIP_VERSION = _get_most_recent_wheel_version("pip")

-  

- -__all__ = ["version", "bootstrap"]

- -_SETUPTOOLS_VERSION = "58.1.0"

- -_PIP_VERSION = "23.0.1"

-  _PROJECTS = [

-      ("setuptools", _SETUPTOOLS_VERSION, "py3"),

-      ("pip", _PIP_VERSION, "py3"),

- @@ -101,13 +118,10 @@ def _bootstrap(*, root=None, upgrade=False, user=False,

-          # additional paths that need added to sys.path

-          additional_paths = []

-          for project, version, py_tag in _PROJECTS:

- -            wheel_name = "{}-{}-{}-none-any.whl".format(project, version, py_tag)

- -            whl = resources.read_binary(

- -                _bundled,

- -                wheel_name,

- -            )

- -            with open(os.path.join(tmpdir, wheel_name), "wb") as fp:

- -                fp.write(whl)

- +            wheel_name = _wheels[project][version]

- +            with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:

- +                with open(os.path.join(tmpdir, wheel_name), "wb") as fp:

- +                    fp.write(sfp.read())

-  

-              additional_paths.append(os.path.join(tmpdir, wheel_name))

-  

file modified
+12 -11
@@ -1,5 +1,5 @@ 

  %global basever 7.3

- %global micro 13

+ %global micro 15

  #global pre ...

  %global pyversion 3.9

  Name:           pypy%{pyversion}
@@ -113,10 +113,11 @@ 

  # https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt

  Patch9: 009-add-libxcrypt-support.patch

  

- # Instead of bundled wheels, use our RPM packaged wheels from

- # /usr/share/python-wheels

- # We conditionally apply this, but we use autosetup, so we use Source here

- Source189: 189-use-rpm-wheels.patch

+ # Fix function signatures uncovered by GCC 14 enforcement of

+ # -Wincompatible-pointer-types

+ # Resolved upstream:

+ # https://github.com/pypy/pypy/commit/8831ebf1cd4af225c2212dbade45624f9305a8f0

+ Patch10: 010-fix-pointers.patch

  

  # Build-time requirements:

  
@@ -248,7 +249,7 @@ 

  Requires: python-pip-wheel

  %else

  Provides: bundled(python3dist(pip)) = 23.0.1

- Provides: bundled(python3dist(setuptools)) = 58.1.0

+ Provides: bundled(python3dist(setuptools)) = 65.5.0

  %endif

  

  # Provides for the bundled libmpdec
@@ -257,8 +258,8 @@ 

  Provides: bundled(libmpdec) = %{libmpdec_version}

  }

  

- # Find the version in lib_pypy/cffi.dist-info/METADATA

- Provides: bundled(python3dist(cffi)) = 1.15.1

+ # Find the version in lib_pypy/cffi-XXX.dist-info/METADATA

+ Provides: bundled(python3dist(cffi)) = 1.16.0

  

  # Find the version in lib_pypy/cffi/_pycparser/__init__.py

  Provides: bundled(python3dist(pycparser)) = 2.21
@@ -270,7 +271,7 @@ 

  Provides: bundled(python3dist(cryptography)) = 2.7

  

  # Find the version in lib_pypy/hpy-XXX.dist-info/METADATA

- Provides: bundled(python3dist(hpy)) = 0.0.4~~dev179+g9b5d200

+ Provides: bundled(python3dist(hpy)) = 0.9.0

  

  %description libs

  Libraries required by the various PyPy implementations of Python %{pyversion}.
@@ -323,8 +324,8 @@ 

  %{?!apply_patch:%define apply_patch(qp:m:) {%__apply_patch %**}}

  

  %if %{with rpmwheels}

- %apply_patch -m %(basename %{SOURCE189}) %{SOURCE189}

  rm lib-python/3/ensurepip/_bundled/*.whl

+ echo "build_time_vars['WHEEL_PKG_DIR'] = '%{python_wheel_dir}'" >> lib_pypy/_sysconfigdata.py

  %endif

  

  
@@ -774,7 +775,7 @@ 

  %doc README.rst

  %license %{pypylibdir}/LICENSE

  %license %{pypylibdir}/_cffi_ssl/LICENSE

- %license %{pypylibdir}/cffi.dist-info/LICENSE

+ %license %{pypylibdir}/cffi-*.dist-info/LICENSE

  %license %{pypylibdir}/cffi/_pycparser/ply/LICENSE

  %license %{pypylibdir}/hpy-*.dist-info/LICENSE

  %{pypylibdir}/

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (pypy3.9-v7.3.13-src.tar.bz2) = 04b184050625f06d2acaa836a786db788c4f658f3384ebde176d0acc95044ee83dbf7193ebab1e4fd6275bed7a590d3945482294be32d8f94e8c541e053dce59

+ SHA512 (pypy3.9-v7.3.15-src.tar.bz2) = 64faca74c507ef3e8dd2df34ad81874c24bc336e79ecf53bbbb43c21adebdea60efafe6ad38bdbf15bc2a677980d7db2c2c0affa04beb7e7e1b739d85e17f333

no initial comment

rebased onto 7c9fea1

3 months ago

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/b7d6abca77c544b087cbbd5841e8d20d

1 new commit added

  • fixup! Update to 7.3.15
3 months ago

rebased onto 7384206

3 months ago

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/426639f6424d4e26a412a6d09dc33acb

Pull-Request has been merged by churchyard

3 months ago