summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2022-08-02 22:49:14 -0400
committerGitHub <noreply@github.com>2022-08-02 20:49:14 -0600
commit2ed03407f4241c00f0851a510a26bafe4ff1cdca (patch)
tree283b9d4687428ad42fdecfc4d57ee737dbe78612 /var
parent0462818c2e72e1a592404023fbfccf0d23b529d5 (diff)
downloadspack-2ed03407f4241c00f0851a510a26bafe4ff1cdca.tar.gz
spack-2ed03407f4241c00f0851a510a26bafe4ff1cdca.tar.bz2
spack-2ed03407f4241c00f0851a510a26bafe4ff1cdca.tar.xz
spack-2ed03407f4241c00f0851a510a26bafe4ff1cdca.zip
libedit: Make sure libedit linkes to the correct terminfo lib from spack (#31870)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libedit/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libedit/package.py b/var/spack/repos/builtin/packages/libedit/package.py
index 2033837066..4564264db9 100644
--- a/var/spack/repos/builtin/packages/libedit/package.py
+++ b/var/spack/repos/builtin/packages/libedit/package.py
@@ -34,3 +34,13 @@ class Libedit(AutotoolsPackage):
def url_for_version(self, version):
url = "http://thrysoee.dk/editline/libedit-{0}-{1}.tar.gz"
return url.format(version[-1], version.up_to(-1))
+
+ def configure_args(self):
+ args = ["ac_cv_lib_curses_tgetent=no", "ac_cv_lib_termcap_tgetent=no"]
+
+ if "+termlib" in self.spec["ncurses"]:
+ args.append("ac_cv_lib_ncurses_tgetent=no")
+ else:
+ args.append("ac_cv_lib_tinfo_tgetent=no")
+
+ return args