Hello community, here is the log from the commit of package vim for openSUSE:Factory checked in at 2019-10-25 18:39:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vim (Old) and /work/SRC/openSUSE:Factory/.vim.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vim" Fri Oct 25 18:39:38 2019 rev:244 rq:742143 version:8.1.2148 Changes: -------- --- /work/SRC/openSUSE:Factory/vim/vim.changes 2019-10-22 15:39:26.849306541 +0200 +++ /work/SRC/openSUSE:Factory/.vim.new.2990/vim.changes 2019-10-25 18:39:43.763760921 +0200 @@ -1,0 +2,6 @@ +Wed Oct 23 12:35:39 CEST 2019 - Matej Cepl <[email protected]> + +- Add python38-config.patch to make vim buildable with new Python 3.8. + (gh#vim/vim#4080) + +------------------------------------------------------------------- New: ---- python38-config.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vim.spec ++++++ --- /var/tmp/diff_new_pack.79gtxF/_old 2019-10-25 18:39:44.783761881 +0200 +++ /var/tmp/diff_new_pack.79gtxF/_new 2019-10-25 18:39:44.783761881 +0200 @@ -69,6 +69,8 @@ Patch101: vim-8.0.1568-defaults.patch # https://github.com/vim/vim/issues/3348 - problem more probadly in buildenv than in test Patch102: vim-8.1.0297-dump3.patch +# https://github.com/vim/vim/issues/4080 +Patch103: python38-config.patch BuildRequires: autoconf BuildRequires: db-devel BuildRequires: fdupes @@ -175,6 +177,7 @@ %patch100 -p1 %patch101 -p1 %patch102 -p1 +%patch103 -p1 cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} . # Unreliable tests ++++++ python38-config.patch ++++++ --- a/src/if_python3.c +++ b/src/if_python3.c @@ -600,6 +600,44 @@ static struct {"", NULL}, }; +# if PY_VERSION_HEX >= 0x030800f0 + static inline void +py3__Py_DECREF(const char *filename, int lineno, PyObject *op) +{ + (void)filename; /* may be unused, shut up -Wunused-parameter */ + (void)lineno; /* may be unused, shut up -Wunused-parameter */ + _Py_DEC_REFTOTAL; + if (--op->ob_refcnt != 0) + { +# ifdef Py_REF_DEBUG + if (op->ob_refcnt < 0) + { + _Py_NegativeRefcount(filename, lineno, op); + } +# endif + } + else + { + _Py_Dealloc(op); + } +} + +# undef Py_DECREF +# define Py_DECREF(op) py3__Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) + + static inline void +py3__Py_XDECREF(PyObject *op) +{ + if (op != NULL) + { + Py_DECREF(op); + } +} + +# undef Py_XDECREF +# define Py_XDECREF(op) py3__Py_XDECREF(_PyObject_CAST(op)) +# endif + /* * Free python.dll */
