diff --git a/var/spack/repos/builtin/packages/wx/math_include.patch b/var/spack/repos/builtin/packages/wx/math_include.patch new file mode 100644 index 00000000000..152f095d189 --- /dev/null +++ b/var/spack/repos/builtin/packages/wx/math_include.patch @@ -0,0 +1,12 @@ +diff --git a/src/stc/scintilla/src/Editor.cxx b/src/stc/scintilla/src/Editor.cxx +index cd72953ae7..8c19154313 100644 +--- a/src/stc/scintilla/src/Editor.cxx ++++ b/src/stc/scintilla/src/Editor.cxx +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + + #include + #include diff --git a/var/spack/repos/builtin/packages/wx/package.py b/var/spack/repos/builtin/packages/wx/package.py index 082e608bfc4..4aa1e2f16a7 100644 --- a/var/spack/repos/builtin/packages/wx/package.py +++ b/var/spack/repos/builtin/packages/wx/package.py @@ -44,8 +44,10 @@ class Wx(AutotoolsPackage): version('develop', git='https://github.com/wxWidgets/wxWidgets.git', branch='master') + patch('math_include.patch', when='@3.0.1:3.0.2') + depends_on('pkgconfig', type='build') - depends_on('gtkplus') + depends_on('gtkplus+X') @when('@:3.0.2') def build(self, spec, prefix):