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.
This commit is contained in:
Glenn Johnson 2021-11-15 04:24:36 -06:00 committed by GitHub
parent 85a33bd2f1
commit cdcde36f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,3 +19,7 @@ class PerlForks(PerlPackage):
depends_on('perl-devel-symdump', type=('build', 'run')) depends_on('perl-devel-symdump', type=('build', 'run'))
depends_on('perl-list-moreutils', type=('build', 'run')) depends_on('perl-list-moreutils', type=('build', 'run'))
depends_on('perl-sys-sigaction', 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')