summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorYang Zongze <yangzongze@gmail.com>2022-11-11 10:40:03 +0800
committerGitHub <noreply@github.com>2022-11-11 03:40:03 +0100
commit0b302034dfb9af346abbf4a4f16d2147d26e1c41 (patch)
tree8f5db41429cff1565b0015c4cc80ab0571c49ff6 /var
parentb9f69a8dfa14349d7b13456f9ac3d1ff4bfc0acf (diff)
downloadspack-0b302034dfb9af346abbf4a4f16d2147d26e1c41.tar.gz
spack-0b302034dfb9af346abbf4a4f16d2147d26e1c41.tar.bz2
spack-0b302034dfb9af346abbf4a4f16d2147d26e1c41.tar.xz
spack-0b302034dfb9af346abbf4a4f16d2147d26e1c41.zip
global: add --with-ncurses with prefix to configure (#33136)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/global/global-ncurse.patch11
-rw-r--r--var/spack/repos/builtin/packages/global/package.py12
2 files changed, 18 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/global/global-ncurse.patch b/var/spack/repos/builtin/packages/global/global-ncurse.patch
new file mode 100644
index 0000000000..89d48fbf00
--- /dev/null
+++ b/var/spack/repos/builtin/packages/global/global-ncurse.patch
@@ -0,0 +1,11 @@
+--- a/configure 2021-07-01 12:06:50.000000000 +0800
++++ b/configure 2022-10-10 14:30:01.348062669 +0800
+@@ -15771,7 +15771,7 @@
+ withval=$with_ncurses; if test x$withval = xno ; then
+ search_ncurses=false
+ elif test x$withval != xyes ; then
+- CURSES_LIBS="$LIBS -L$withval/lib -lncurses"
++ CURSES_LIBS="$LIBS -L$withval/lib -lncurses -ltinfo"
+ CURSES_INCLUDEDIR="-I$withval/include"
+ search_ncurses=false
+ screen_manager="ncurses"
diff --git a/var/spack/repos/builtin/packages/global/package.py b/var/spack/repos/builtin/packages/global/package.py
index 8e39f79c9f..0cdd674eb4 100644
--- a/var/spack/repos/builtin/packages/global/package.py
+++ b/var/spack/repos/builtin/packages/global/package.py
@@ -24,14 +24,16 @@ class Global(Package):
depends_on("exuberant-ctags", type=("build", "run"))
depends_on("ncurses")
- def install(self, spec, prefix):
- config_args = ["--prefix={0}".format(prefix)]
+ patch("global-ncurse.patch")
- config_args.append(
+ def install(self, spec, prefix):
+ config_args = [
+ "--prefix={0}".format(prefix),
"--with-exuberant-ctags={0}".format(
os.path.join(spec["exuberant-ctags"].prefix.bin, "ctags")
- )
- )
+ ),
+ "--with-ncurses={0}".format(spec["ncurses"].prefix),
+ ]
configure(*config_args)