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:
parent
3d7e8ff399
commit
fef20524f9
@ -37,6 +37,8 @@ class Clingo(CMakePackage):
|
|||||||
depends_on('python', type=("build", "link", "run"), when="+python")
|
depends_on('python', type=("build", "link", "run"), when="+python")
|
||||||
extends('python', when='+python')
|
extends('python', when='+python')
|
||||||
|
|
||||||
|
patch('python38.patch', when="@5.3:5.4")
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
# Doxygen is optional but can't be disabled with a -D, so patch
|
# Doxygen is optional but can't be disabled with a -D, so patch
|
||||||
# it out if it's really supposed to be disabled
|
# it out if it's really supposed to be disabled
|
||||||
|
13
var/spack/repos/builtin/packages/clingo/python38.patch
Normal file
13
var/spack/repos/builtin/packages/clingo/python38.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user