summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2017-07-06 11:33:57 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-07-06 13:33:57 -0500
commit8fe51b3ffc717a5ce00a69c8758e29c991865b6c (patch)
treebfd741935c51bf12e706f5f7fda3067351b85486 /var
parentb749986dcc0d31efa37a96d6c5d76acdc4b732e4 (diff)
downloadspack-8fe51b3ffc717a5ce00a69c8758e29c991865b6c.tar.gz
spack-8fe51b3ffc717a5ce00a69c8758e29c991865b6c.tar.bz2
spack-8fe51b3ffc717a5ce00a69c8758e29c991865b6c.tar.xz
spack-8fe51b3ffc717a5ce00a69c8758e29c991865b6c.zip
Make vcftools actually install its libraries (#4682)
The vcftools package was installing its Perl libraries into a directory in the staging directory named 'lib', instead of installing them into `prefix.lib` where they should have been because the value passed to the configure script was wrong. The result was that any attempt to run one of the scripts in the package failed with something like: > Can't locate VcfStats.pm in @INC (you may need to install the > VcfStats module) [...] This fix provides the correct information in `configure_args`. Tested lightly on CentOS 7.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vcftools/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/vcftools/package.py b/var/spack/repos/builtin/packages/vcftools/package.py
index f84ea1ed7c..bb2721e353 100644
--- a/var/spack/repos/builtin/packages/vcftools/package.py
+++ b/var/spack/repos/builtin/packages/vcftools/package.py
@@ -45,7 +45,7 @@ class Vcftools(AutotoolsPackage):
# this needs to be in sync with what setup_environment adds to
# PERL5LIB below
def configure_args(self):
- return ['--with-pmdir=lib']
+ return ['--with-pmdir={0}'.format(self.prefix.lib)]
@run_before('install')
def filter_sbang(self):
@@ -72,4 +72,4 @@ class Vcftools(AutotoolsPackage):
filter_file(match, substitute, *files, **kwargs)
def setup_environment(self, spack_env, run_env):
- run_env.prepend_path('PERL5LIB', join_path(self.prefix, 'lib'))
+ run_env.prepend_path('PERL5LIB', self.prefix.lib)