Hello community, here is the log from the commit of package python36 for openSUSE:Factory checked in at 2020-08-25 09:33:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python36 (Old) and /work/SRC/openSUSE:Factory/.python36.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python36" Tue Aug 25 09:33:20 2020 rev:2 rq:828928 version:3.6.12 Changes: -------- --- /work/SRC/openSUSE:Factory/python36/python36.changes 2020-08-20 22:32:09.764074881 +0200 +++ /work/SRC/openSUSE:Factory/.python36.new.3399/python36.changes 2020-08-25 09:35:03.656081382 +0200 @@ -1,0 +2,9 @@ +Fri Aug 21 15:14:15 UTC 2020 - Andreas Schwab <sch...@suse.de> + +- riscv64-support.patch: bpo-33377: add triplets for mips-r6 and riscv + (#6655) +- riscv64-ctypes.patch: bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK + (GH-11694) +- Update list of tests to exclude under qemu linux-user + +------------------------------------------------------------------- New: ---- riscv64-ctypes.patch riscv64-support.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python36.spec ++++++ --- /var/tmp/diff_new_pack.vNiJi6/_old 2020-08-25 09:35:09.856084999 +0200 +++ /var/tmp/diff_new_pack.vNiJi6/_new 2020-08-25 09:35:09.860085002 +0200 @@ -155,6 +155,10 @@ # PATCH-FIX-UPSTREAM CVE-2019-9674-zip-bomb.patch bsc#1162825 mc...@suse.com # Improve documentation warning against the possible zip bombs Patch35: CVE-2019-9674-zip-bomb.patch +# PATCH-FIX-UPSTREAM riscv64-support.patch bpo-33377: add triplets for mips-r6 and riscv (#6655) +Patch36: riscv64-support.patch +# PATCH-FIX-UPSTREAM riscv64-ctypes.patch bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694) +Patch37: riscv64-ctypes.patch ### COMMON-PATCH-END ### BuildRequires: automake BuildRequires: fdupes @@ -307,8 +311,8 @@ # python-importlib_resources is a backport of 3.7 behaviour into older pythons Provides: %{python_pkg_name}-importlib_resources = %{version} %if %{primary_interpreter} -Provides: python3-base = %{version} Provides: python3-asyncio = %{version} +Provides: python3-base = %{version} Obsoletes: python3-asyncio < %{version} Provides: python3-typing = %{version} Obsoletes: python3-typing < %{version} @@ -334,14 +338,14 @@ %package -n %{python_pkg_name}-tools Summary: Python Utility and Demonstration Scripts Requires: %{python_pkg_name}-base = %{version} -Provides: %{python_pkg_name}-demo = %{version} Provides: %{python_pkg_name}-2to3 = %{version} +Provides: %{python_pkg_name}-demo = %{version} %if %{primary_interpreter} -Provides: python3-tools = %{version} -Provides: python3-demo = %{version} Provides: python3-2to3 = %{version} -Obsoletes: python3-demo < %{version} +Provides: python3-demo = %{version} +Provides: python3-tools = %{version} Obsoletes: python3-2to3 < %{version} +Obsoletes: python3-demo < %{version} %endif %description -n %{python_pkg_name}-tools @@ -415,6 +419,8 @@ %patch32 -p1 %patch33 -p1 %patch35 -p1 +%patch36 -p1 +%patch37 -p1 # drop Autoconf version requirement sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac @@ -510,7 +516,7 @@ EXCLUDE="$EXCLUDE test_faulthandler" # some tests break in QEMU %if 0%{?qemu_user_space_build} > 0 -EXCLUDE="$EXCLUDE test_asyncio test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_main_handling test_multiprocessing_spawn test_threading test_threadedtempfile test_io test_posix test_ioctl test_mmap test_openpty test_pty test_time test_subprocess test_asyncore test_asyncio test_os test_faulthandler" +EXCLUDE="$EXCLUDE test_multiprocessing_forkserver test_multiprocessing_spawn test_posix test_os test_socket" # qemu bug (siginterrupt handling) EXCLUDE="$EXCLUDE test_signal" %endif ++++++ riscv64-ctypes.patch ++++++ >From 742d768656512a469ce9571b1cbd777def7bc5ea Mon Sep 17 00:00:00 2001 From: Andreas Schwab <sch...@linux-m68k.org> Date: Tue, 29 Jan 2019 17:16:10 +0100 Subject: [PATCH] bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694) This fixes the ctypes.test.test_structures.StructureTestCase test. https://bugs.python.org/issue35847 --- .../next/Library/2019-01-29-09-11-09.bpo-35847.eiSi4t.rst | 1 + Modules/_ctypes/callproc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2019-01-29-09-11-09.bpo-35847.eiSi4t.rst diff --git a/Misc/NEWS.d/next/Library/2019-01-29-09-11-09.bpo-35847.eiSi4t.rst b/Misc/NEWS.d/next/Library/2019-01-29-09-11-09.bpo-35847.eiSi4t.rst new file mode 100644 index 0000000000..e3775f96f3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-01-29-09-11-09.bpo-35847.eiSi4t.rst @@ -0,0 +1 @@ +RISC-V needed the CTYPES_PASS_BY_REF_HACK. Fixes ctypes Structure test_pass_by_value. diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index a7965c19b7..bed5364020 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -1058,7 +1058,7 @@ GetComError(HRESULT errcode, GUID *riid, IUnknown *pIunk) #endif #if (defined(__x86_64__) && (defined(__MINGW64__) || defined(__CYGWIN__))) || \ - defined(__aarch64__) + defined(__aarch64__) || defined(__riscv) #define CTYPES_PASS_BY_REF_HACK #define POW2(x) (((x & ~(x - 1)) == x) ? x : 0) #define IS_PASS_BY_REF(x) (x > 8 || !POW2(x)) -- 2.28.0 ++++++ riscv64-support.patch ++++++ >From ddbe976964933cb943c6383a776e800cc7e0f47d Mon Sep 17 00:00:00 2001 From: Matthias Klose <dok...@users.noreply.github.com> Date: Mon, 30 Apr 2018 19:22:16 +0200 Subject: [PATCH] bpo-33377: add triplets for mips-r6 and riscv (#6655) * issue33377: add triplets for mips-r6 and riscv * issue33377: add triplets for mips-r6 and riscv (NEWS entry) --- .../2018-04-30-16-53-00.bpo-33377.QBh6vP.rst | 2 + configure | 42 ++++++++++++++++++- configure.ac | 28 +++++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Build/2018-04-30-16-53-00.bpo-33377.QBh6vP.rst diff --git a/Misc/NEWS.d/next/Build/2018-04-30-16-53-00.bpo-33377.QBh6vP.rst b/Misc/NEWS.d/next/Build/2018-04-30-16-53-00.bpo-33377.QBh6vP.rst new file mode 100644 index 0000000000..f5dbd23c7c --- /dev/null +++ b/Misc/NEWS.d/next/Build/2018-04-30-16-53-00.bpo-33377.QBh6vP.rst @@ -0,0 +1,2 @@ +Add new triplets for mips r6 and riscv variants (used in extension +suffixes). diff --git a/configure b/configure index f9eee2c028..673cfbd3cf 100755 --- a/configure +++ b/configure @@ -781,6 +781,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -893,6 +894,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1145,6 +1147,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1282,7 +1293,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1435,6 +1446,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -5238,6 +5250,26 @@ cat >> conftest.c <<EOF ia64-linux-gnu # elif defined(__m68k__) && !defined(__mcoldfire__) m68k-linux-gnu +# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) +# if _MIPS_SIM == _ABIO32 + mipsisa32r6el-linux-gnu +# elif _MIPS_SIM == _ABIN32 + mipsisa64r6el-linux-gnuabin32 +# elif _MIPS_SIM == _ABI64 + mipsisa64r6el-linux-gnuabi64 +# else +# error unknown platform triplet +# endif +# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) +# if _MIPS_SIM == _ABIO32 + mipsisa32r6-linux-gnu +# elif _MIPS_SIM == _ABIN32 + mipsisa64r6-linux-gnuabin32 +# elif _MIPS_SIM == _ABI64 + mipsisa64r6-linux-gnuabi64 +# else +# error unknown platform triplet +# endif # elif defined(__mips_hard_float) && defined(_MIPSEL) # if _MIPS_SIM == _ABIO32 mipsel-linux-gnu @@ -5280,6 +5312,14 @@ cat >> conftest.c <<EOF sparc64-linux-gnu # elif defined(__sparc__) sparc-linux-gnu +# elif defined(__riscv) +# if __riscv_xlen == 32 + riscv32-linux-gnu +# elif __riscv_xlen == 64 + riscv64-linux-gnu +# else +# error unknown platform triplet +# endif # else # error unknown platform triplet # endif diff --git a/configure.ac b/configure.ac index b83abee18c..419bc34eab 100644 --- a/configure.ac +++ b/configure.ac @@ -781,6 +781,26 @@ cat >> conftest.c <<EOF ia64-linux-gnu # elif defined(__m68k__) && !defined(__mcoldfire__) m68k-linux-gnu +# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) +# if _MIPS_SIM == _ABIO32 + mipsisa32r6el-linux-gnu +# elif _MIPS_SIM == _ABIN32 + mipsisa64r6el-linux-gnuabin32 +# elif _MIPS_SIM == _ABI64 + mipsisa64r6el-linux-gnuabi64 +# else +# error unknown platform triplet +# endif +# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) +# if _MIPS_SIM == _ABIO32 + mipsisa32r6-linux-gnu +# elif _MIPS_SIM == _ABIN32 + mipsisa64r6-linux-gnuabin32 +# elif _MIPS_SIM == _ABI64 + mipsisa64r6-linux-gnuabi64 +# else +# error unknown platform triplet +# endif # elif defined(__mips_hard_float) && defined(_MIPSEL) # if _MIPS_SIM == _ABIO32 mipsel-linux-gnu @@ -823,6 +843,14 @@ cat >> conftest.c <<EOF sparc64-linux-gnu # elif defined(__sparc__) sparc-linux-gnu +# elif defined(__riscv) +# if __riscv_xlen == 32 + riscv32-linux-gnu +# elif __riscv_xlen == 64 + riscv64-linux-gnu +# else +# error unknown platform triplet +# endif # else # error unknown platform triplet # endif -- 2.28.0