summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTeodor Nikolov <teodor.nikolov22@gmail.com>2020-10-30 19:36:53 +0100
committerGitHub <noreply@github.com>2020-10-30 11:36:53 -0700
commitfef20524f968c759d596eca5ad9d6be92edcbb3f (patch)
tree1a3a6787ae82785a9b58120476f91b08b632b789 /var
parent3d7e8ff39906262c0b9cb6b9230739495e9d08f9 (diff)
downloadspack-fef20524f968c759d596eca5ad9d6be92edcbb3f.tar.gz
spack-fef20524f968c759d596eca5ad9d6be92edcbb3f.tar.bz2
spack-fef20524f968c759d596eca5ad9d6be92edcbb3f.tar.xz
spack-fef20524f968c759d596eca5ad9d6be92edcbb3f.zip
clingo: compilation error - needs a patch (#19624)
* Add a patch to clingo Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/clingo/package.py2
-rw-r--r--var/spack/repos/builtin/packages/clingo/python38.patch13
2 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/clingo/package.py b/var/spack/repos/builtin/packages/clingo/package.py
index 4a41089737..238f6748ad 100644
--- a/var/spack/repos/builtin/packages/clingo/package.py
+++ b/var/spack/repos/builtin/packages/clingo/package.py
@@ -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
diff --git a/var/spack/repos/builtin/packages/clingo/python38.patch b/var/spack/repos/builtin/packages/clingo/python38.patch
new file mode 100644
index 0000000000..6593a57647
--- /dev/null
+++ b/var/spack/repos/builtin/packages/clingo/python38.patch
@@ -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