diff --git a/3002-pyformat_long_long.patch b/3002-pyformat_long_long.patch new file mode 100644 index 0000000..81c32e2 --- /dev/null +++ b/3002-pyformat_long_long.patch @@ -0,0 +1,19 @@ +diff -rupN Python-2.7.14/configure.ac Python-2.7.14-new/configure.ac +--- Python-2.7.14/configure.ac 2017-11-05 14:34:54.220985558 +0100 ++++ Python-2.7.14-new/configure.ac 2017-11-05 14:34:55.378016507 +0100 +@@ -5077,12 +5077,12 @@ then + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include + #include +- ]], [[ +- char *buffer; ++ ]], [[[ ++ char buffer[256]; + sprintf(buffer, "%lld", (long long)123); + sprintf(buffer, "%lld", (long long)-123); + sprintf(buffer, "%llu", (unsigned long long)123); +- ]])], ++ ]]])], + ac_cv_have_long_long_format=yes + ) + CFLAGS=$save_CFLAGS diff --git a/mingw-python2.spec b/mingw-python2.spec index f1a7666..9070e28 100644 --- a/mingw-python2.spec +++ b/mingw-python2.spec @@ -18,7 +18,7 @@ Name: mingw-%{pkgname} Version: 2.7.14 -Release: 1%{?dist} +Release: 2%{?dist} Summary: MinGW Windows %{pkgname} BuildArch: noarch @@ -124,6 +124,8 @@ Patch83: 2700-cygpty-isatty-disable-readline.patch Patch84: 3000-scoketmodule-libs.patch # Also build the winreg module, adapted from https://bugs.python.org/issue17600 #Patch85: 3001-mingw-winreg.patch +# Fix PYFORMAT_LONG_LONG not defined, caused by configure test failing due to use of uninitialized variable +Patch86: 3002-pyformat_long_long.patch BuildRequires: automake autoconf libtool @@ -279,6 +281,7 @@ rm -f Misc/config_mingw \ %patch83 -p1 %patch84 -p1 #patch85 -p1 +%patch86 -p1 autoreconf -vfi @@ -559,6 +562,9 @@ find %{buildroot}%{mingw64_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{build %changelog +* Sun Nov 05 2017 Sandro Mani - 2.7.14-2 +- Fix PYFORMAT_LONG_LONG not defined + * Tue Oct 31 2017 Sandro Mani - 2.7.14-1 - Update to 2.7.14