summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-11-15 04:24:36 -0600
committerGitHub <noreply@github.com>2021-11-15 11:24:36 +0100
commitcdcde36f5165744365f2e7aa590b50aee452eaaf (patch)
tree63662a7f1bcbac45c0664f2613c14613c9a89777 /var
parent85a33bd2f170fbd09e60bbbef3a89d9270f3be67 (diff)
downloadspack-cdcde36f5165744365f2e7aa590b50aee452eaaf.tar.gz
spack-cdcde36f5165744365f2e7aa590b50aee452eaaf.tar.bz2
spack-cdcde36f5165744365f2e7aa590b50aee452eaaf.tar.xz
spack-cdcde36f5165744365f2e7aa590b50aee452eaaf.zip
perl-forks: handle non-threaded perl (#27392)
If the perl that perl-forks is built against is non-threaded the build system will drop into interactive mode to ask about simulating ithreads. This causes the build to hang. Set FORKS_SIMULATE_USEITHREADS to avoid going into interactive mode.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl-forks/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl-forks/package.py b/var/spack/repos/builtin/packages/perl-forks/package.py
index 7fbd843ac2..16e69a6b6a 100644
--- a/var/spack/repos/builtin/packages/perl-forks/package.py
+++ b/var/spack/repos/builtin/packages/perl-forks/package.py
@@ -19,3 +19,7 @@ class PerlForks(PerlPackage):
depends_on('perl-devel-symdump', type=('build', 'run'))
depends_on('perl-list-moreutils', type=('build', 'run'))
depends_on('perl-sys-sigaction', type=('build', 'run'))
+
+ def setup_build_environment(self, env):
+ if 'perl~threads' in self.spec:
+ env.set('FORKS_SIMULATE_USEITHREADS', '1')