Feature #24485
-lintl woes with system gettext on RedHat/Centos/ScientificLinux
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/27/2020
Due date:
% Done:
0%
Estimated time:
Description
Changes like below, but for all the recipes that specifically
mention "-lintl", because it breaks with system gettext().
I think one pull request with all N packages is appropriate(?)
diff --git a/var/spack/repos/builtin/packages/libxpm/package.py b/var/spack/repos/builtin/packages/libxpm/package.py index 0e73980..372f8c2 100644 --- a/var/spack/repos/builtin/packages/libxpm/package.py +++ b/var/spack/repos/builtin/packages/libxpm/package.py @@ -30,6 +30,6 @@ def setup_build_environment(self, env): # If libxpm is installed as an external package, gettext won't # be available in the spec. See # https://github.com/spack/spack/issues/9149 for details. - if 'gettext' in self.spec: - env.append_flags('LDFLAGS', '-L{0} -lintl'.format( - self.spec['gettext'].prefix.lib)) + if 'gettext' in self.spec and self.spec['gettext'].prefix != '/usr': + env.append_flags('LDFLAGS', '-L{0} -lintl'.format( + self.spec['gettext'].prefix.lib))