From cdcde36f5165744365f2e7aa590b50aee452eaaf Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Mon, 15 Nov 2021 04:24:36 -0600 Subject: 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. --- var/spack/repos/builtin/packages/perl-forks/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2