summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2019-09-04 08:06:35 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-09-04 10:06:35 -0500
commit407834fffa9b9b247ecc4dee7888231079325b04 (patch)
tree204c499f3536ffa7e3aa9a44f1c5c82934fe7536
parent5953336c3e8ca8334be135bb89e9e0cbf540d626 (diff)
downloadspack-407834fffa9b9b247ecc4dee7888231079325b04.tar.gz
spack-407834fffa9b9b247ecc4dee7888231079325b04.tar.bz2
spack-407834fffa9b9b247ecc4dee7888231079325b04.tar.xz
spack-407834fffa9b9b247ecc4dee7888231079325b04.zip
cppflags point to ncurses headers (#12691)
While debugging this package on our Cray machine, tmux was throwing an error involving the ncurses headers. Tmux would look for headers in system locations rather than where spack installed ncurses. Tested only on a Cray.
-rw-r--r--var/spack/repos/builtin/packages/tmux/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tmux/package.py b/var/spack/repos/builtin/packages/tmux/package.py
index 272cd5e317..b65a067d45 100644
--- a/var/spack/repos/builtin/packages/tmux/package.py
+++ b/var/spack/repos/builtin/packages/tmux/package.py
@@ -30,5 +30,10 @@ class Tmux(AutotoolsPackage):
depends_on('libevent')
depends_on('ncurses')
+ def flag_handler(self, name, flags):
+ if name == 'cppflags':
+ flags.append(self.spec['ncurses'].headers.include_flags)
+ return (None, flags, None)
+
def configure_args(self):
return ['LIBTINFO_LIBS=-lncurses']