From 634ab7609bddcdbb2cfebd0c131cd7c770bd7ce5831ea1d3741d695d25a1b42d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 17 May 2022 17:43:33 +0000 Subject: [PATCH] Fix building with system-expat (gh#python/cpython#92875). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=11 --- python311.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python311.spec b/python311.spec index 6858c81..255a13c 100644 --- a/python311.spec +++ b/python311.spec @@ -445,7 +445,7 @@ for dir in Lib Tools; do find $dir -name '*.py' -type f -exec sed -i '1{/^#!.*python/ d}' '{}' \; done # We shortened the file Lib/pdb.py so we have to move the test breakpoint location -sed -i -e '/Breakpoint 3 at ...pdb.py:94/s/94/93/' Lib/test/test_pdb.py +sed -i -e '/Breakpoint 3 at ...pdb.py:97/s/97/96/' Lib/test/test_pdb.py %endif # drop in-tree libffi and expat @@ -558,6 +558,12 @@ if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then ulimit -v 11000000 || : fi +# test_freeze_simple_script in test.test_tools.test_freeze.TestFreeze +# uses CONFIG_ARGS to run ./configure. +export CONFIG_ARGS="--enable-ipv6 --enable-shared --with-ensurepip=no \ + --with-system-ffi --with-system-expat --with-lto --enable-optimizations \ + --with-system-libmpdec --enable-loadable-sqlite-extensions" + export PYTHONPATH="$(pwd -P)/Lib" # Use timeout, like make target buildbottest # We cannot run tests parallel, because osc build environment doesn’t