Source: link-grammar Version: 5.13.0+dfsg-1 Severity: serious Tags: upstream ftbfs patch Justification: makes the package in question unusable or mostly so
Dear Maintainer, Your package FTBFS with SWIG 4.5.0 as revealed by debci: 92s lg_python_wrap.cc: In function 'PyObject* _py_error_printall(PyObject*)': 92s lg_python_wrap.cc:4256:21: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'? 92s 4256 | PyObject *py_n = PyInt_FromLong(n); 92s | ^~~~~~~~~~~~~~ 92s | PyLong_FromLong 92s lg_python_wrap.cc: In function 'PyObject* _wrap__py_error_default_handler(PyObject*, PyObject*)': 92s lg_python_wrap.cc:9671:12: error: 'PyInt_Check' was not declared in this scope; did you mean 'PySet_Check'? 92s 9671 | if (!PyInt_Check(swig_obj[1])) 92s | ^~~~~~~~~~~ 92s | PySet_Check 92s lg_python_wrap.cc:9678:22: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'? 92s 9678 | arg20 = (int)PyInt_AsLong(swig_obj[1]); 92s | ^~~~~~~~~~~~ 92s | PyLong_AsLong https://ci.debian.net/packages/l/link-grammar/testing/amd64/74304445/ The attached patch resolves the issue by using PyLong_* instead of PyInt_*. Kind Regards, Bas
0001-Add-patch-to-fix-FTBFS-with-swig-4.5.0.patch
Description: application/mbox

