summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-02-10 18:17:55 -0600
committerbecker33 <becker33@llnl.gov>2017-02-10 16:17:55 -0800
commit6e2903534a0444ac9c36c512fec7042a711aaa3f (patch)
treecf70eec0b74d34a49a3254ddb33fd89781e89ec0 /var
parente24fdb49ea92fe310d5a39e610821bf0e51be8b1 (diff)
downloadspack-6e2903534a0444ac9c36c512fec7042a711aaa3f.tar.gz
spack-6e2903534a0444ac9c36c512fec7042a711aaa3f.tar.bz2
spack-6e2903534a0444ac9c36c512fec7042a711aaa3f.tar.xz
spack-6e2903534a0444ac9c36c512fec7042a711aaa3f.zip
Add patch to allow PGI to build Bison (#3044)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/bison/package.py4
-rw-r--r--var/spack/repos/builtin/packages/bison/pgi.patch10
2 files changed, 13 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/bison/package.py b/var/spack/repos/builtin/packages/bison/package.py
index a9691fab8b..2615266c8a 100644
--- a/var/spack/repos/builtin/packages/bison/package.py
+++ b/var/spack/repos/builtin/packages/bison/package.py
@@ -35,6 +35,8 @@ class Bison(AutotoolsPackage):
version('3.0.4', 'a586e11cd4aff49c3ff6d3b6a4c9ccf8')
- depends_on("m4", type='build')
+ depends_on('m4', type='build')
+
+ patch('pgi.patch', when='@3.0.4')
build_directory = 'spack-build'
diff --git a/var/spack/repos/builtin/packages/bison/pgi.patch b/var/spack/repos/builtin/packages/bison/pgi.patch
new file mode 100644
index 0000000000..8aeaa96a51
--- /dev/null
+++ b/var/spack/repos/builtin/packages/bison/pgi.patch
@@ -0,0 +1,10 @@
+--- a/lib/config.in.h
++++ b/lib/config.in.h
+@@ -2182,6 +2182,7 @@
+ ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
+ : (199901L <= __STDC_VERSION__ \
+ && !defined __HP_cc \
++ && !defined __PGI \
+ && !(defined __SUNPRO_C && __STDC__))) \
+ && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
+ # define _GL_INLINE inline