diff options
author | Patrick Gartung <gartung@fnal.gov> | 2019-04-10 08:44:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 08:44:27 -0500 |
commit | a5315f3878ed55ed5e373f51905da865085c756b (patch) | |
tree | 2ef6c8f46736ace77333ee9330530a1abbbc31f4 /var | |
parent | 1e9748a3c80373a4b4274f993cb8be225320e91c (diff) | |
download | spack-a5315f3878ed55ed5e373f51905da865085c756b.tar.gz spack-a5315f3878ed55ed5e373f51905da865085c756b.tar.bz2 spack-a5315f3878ed55ed5e373f51905da865085c756b.tar.xz spack-a5315f3878ed55ed5e373f51905da865085c756b.zip |
Fix bug when system perl is used. (#11034)
* Fix bug when system perl is used.
If system perl is being used through packages.yaml there cannot be dependent modules.
The setup_dependent_packages function should not do anything in that case.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perl/package.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 51cfc8869b..1825832644 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -190,15 +190,19 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package perl('Makefile.PL','INSTALL_BASE=%s' % self.prefix) """ - # perl extension builds can have a global perl executable function - module.perl = self.spec['perl'].command + # If system perl is used through packages.yaml + # there cannot be extensions. + if dependent_spec.package.is_extension: - # Add variables for library directory - module.perl_lib_dir = dependent_spec.prefix.lib.perl5 + # perl extension builds can have a global perl + # executable function + module.perl = self.spec['perl'].command - # Make the site packages directory for extensions, - # if it does not exist already. - if dependent_spec.package.is_extension: + # Add variables for library directory + module.perl_lib_dir = dependent_spec.prefix.lib.perl5 + + # Make the site packages directory for extensions, + # if it does not exist already. mkdirp(module.perl_lib_dir) @run_after('install') |