diff options
author | Mark W. Krentel <krentel@rice.edu> | 2019-06-19 12:54:50 -0500 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-06-19 10:54:50 -0700 |
commit | d29f8d059864d126096ee5a32bb00f959514fbc0 (patch) | |
tree | b702b097f1f30c0e9eba66045e5d63e3a688d8f6 /var | |
parent | 06342923fc34fdfe480c87b0f43c442f20b21ea7 (diff) | |
download | spack-d29f8d059864d126096ee5a32bb00f959514fbc0.tar.gz spack-d29f8d059864d126096ee5a32bb00f959514fbc0.tar.bz2 spack-d29f8d059864d126096ee5a32bb00f959514fbc0.tar.xz spack-d29f8d059864d126096ee5a32bb00f959514fbc0.zip |
xfd package: use Spack-installed libintl (#11545)
Fixes #11526
The xfd configure script tests for libintl but incorrectly concludes
that no additional library is needed because gettext is provided in
libc. So we add '-lintl' to ldlibs to point to the Spack-installed
gettext. Note that the xfd configure script does not have a
--with-gettext option to do this for us.
Also add version 1.1.3
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/xfd/package.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/xfd/package.py b/var/spack/repos/builtin/packages/xfd/package.py index c37c9af57c..1e63d6e2c4 100644 --- a/var/spack/repos/builtin/packages/xfd/package.py +++ b/var/spack/repos/builtin/packages/xfd/package.py @@ -13,10 +13,12 @@ class Xfd(AutotoolsPackage): homepage = "http://cgit.freedesktop.org/xorg/app/xfd" url = "https://www.x.org/archive/individual/app/xfd-1.1.2.tar.gz" + version('1.1.3', '4a1bd18f324c239b1a807ed4ccaeb172ba771d65a7307fb492d8dd8d27f01527') version('1.1.2', '12fe8f7c3e71352bf22124ad56d4ceaf') - depends_on('libxaw') depends_on('fontconfig') + depends_on('gettext') + depends_on('libxaw') depends_on('libxft') depends_on('libxrender') depends_on('libxmu') @@ -25,3 +27,20 @@ class Xfd(AutotoolsPackage): depends_on('xproto@7.0.17:', type='build') depends_on('pkgconfig', type='build') depends_on('util-macros', type='build') + + # Xfd requires libintl (gettext), but does not test for it + # correctly, so add it here. + def flag_handler(self, name, flags): + if name == 'ldlibs': + flags.append('-lintl') + + return (flags, None, None) + + def configure_args(self): + args = [] + + # Xkb only rings a bell, so just disable it. + if self.spec.satisfies('@1.1.3:'): + args.append('--without-xkb') + + return args |