clingo: compilation error - needs a patch (#19624)

* Add a patch to clingo

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Teodor Nikolov 2020-10-30 19:36:53 +01:00 committed by GitHub
parent 3d7e8ff399
commit fef20524f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -37,6 +37,8 @@ class Clingo(CMakePackage):
depends_on('python', type=("build", "link", "run"), when="+python")
extends('python', when='+python')
patch('python38.patch', when="@5.3:5.4")
def patch(self):
# Doxygen is optional but can't be disabled with a -D, so patch
# it out if it's really supposed to be disabled

View file

@ -0,0 +1,13 @@
diff --git a/libpyclingo/pyclingo.cc b/libpyclingo/pyclingo.cc
index 9480203..6a7068c 100644
--- a/libpyclingo/pyclingo.cc
+++ b/libpyclingo/pyclingo.cc
@@ -1177,7 +1177,7 @@ PyTypeObject ObjectBase<T>::type = {
sizeof(T), // tp_basicsize
0, // tp_itemsize
PythonDetail::Get_tp_dealloc<T>::value, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_print
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare