void-packages/srcpkgs/perl/patches/multiplicity.patch

40 lines
1.2 KiB
Diff

From a31a5cddd6c52fd21976b9cbff303b966c4a3122 Mon Sep 17 00:00:00 2001
From: Alex Suykov <alex.suykov@gmail.com>
Date: Tue, 7 Jun 2022 17:50:03 +0300
Subject: [PATCH] enable multiplicity whenever ithreads are enabled
---
cnf/configure_misc.sh | 1 -
cnf/configure_thrd.sh | 3 +++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/cnf/configure_misc.sh b/cnf/configure_misc.sh
index 77d73b4..33b1834 100644
--- a/cnf/configure_misc.sh
+++ b/cnf/configure_misc.sh
@@ -62,7 +62,6 @@ define usekernprocpathname 'undef'
define uselongdouble 'undef'
define usemallocwrap 'define'
define usemorebits 'undef'
-define usemultiplicity 'undef'
define usemymalloc 'n'
define usenamedanoncv 'undef'
define usenm 'false'
diff --git a/cnf/configure_thrd.sh b/cnf/configure_thrd.sh
index 6e63b68..8874a1d 100644
--- a/cnf/configure_thrd.sh
+++ b/cnf/configure_thrd.sh
@@ -14,9 +14,12 @@ if [ "$usethreads" = 'define' ]; then
define use5005threads 'undef'
result 'yes, ithreads'
fi
+
+ define usemultiplicity "$useithreads"
else
define useithreads 'undef'
define use5005threads 'undef'
+ define usemultiplicity 'undef'
result 'no'
msg "Disabling thread-related stuff"
fi