summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-04-20 21:47:04 -0700
committerGitHub <noreply@github.com>2020-04-20 21:47:04 -0700
commit6c8e15ee18ff11f96a4cbf99a232e90f5b090050 (patch)
tree1476a9ef333a3b093ce777429564374c7679133a /var
parentca86e56572335e726a3351910b23b69cdfd24c36 (diff)
downloadspack-6c8e15ee18ff11f96a4cbf99a232e90f5b090050.tar.gz
spack-6c8e15ee18ff11f96a4cbf99a232e90f5b090050.tar.bz2
spack-6c8e15ee18ff11f96a4cbf99a232e90f5b090050.tar.xz
spack-6c8e15ee18ff11f96a4cbf99a232e90f5b090050.zip
gettext: add missing iconv dependency (#16193)
`gettext` will pick up a random `iconv` dependency if not specified, which crashes python and its own builds on macOS.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gettext/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gettext/package.py b/var/spack/repos/builtin/packages/gettext/package.py
index 8eb0ad6f09..27165da5b4 100644
--- a/var/spack/repos/builtin/packages/gettext/package.py
+++ b/var/spack/repos/builtin/packages/gettext/package.py
@@ -27,6 +27,7 @@ class Gettext(AutotoolsPackage, GNUMirrorPackage):
# Optional variants
variant('libunistring', default=False, description='Use libunistring')
+ depends_on('iconv')
# Recommended dependencies
depends_on('ncurses', when='+curses')
depends_on('libxml2', when='+libxml2')
@@ -50,7 +51,8 @@ class Gettext(AutotoolsPackage, GNUMirrorPackage):
config_args = [
'--disable-java',
- '--disable-csharp',
+ '--disable-icsharp',
+ '--with-libiconv-prefix={0}'.format(spec['iconv'].prefix),
'--with-included-glib',
'--with-included-gettext',
'--with-included-libcroco',