summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-vcs/rcs/files/rcs-5.10.0-glibc-2.34.patch')
-rw-r--r--dev-vcs/rcs/files/rcs-5.10.0-glibc-2.34.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-vcs/rcs/files/rcs-5.10.0-glibc-2.34.patch b/dev-vcs/rcs/files/rcs-5.10.0-glibc-2.34.patch
new file mode 100644
index 000000000000..5ee636bc522a
--- /dev/null
+++ b/dev-vcs/rcs/files/rcs-5.10.0-glibc-2.34.patch
@@ -0,0 +1,44 @@
+https://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=10fb2a018f320ff3c1615baa5af491410d9f8d09
+https://bugs.gentoo.org/806356
+
+From: Paul Eggert <eggert@cs.ucla.edu>
+Date: Mon, 5 Apr 2021 10:13:49 -0700
+Subject: =?UTF-8?q?Don=E2=80=99t=20use=20SIGSTKSZ=20in=20#if?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Problem reported by Christoph Karl in:
+https://lists.gnu.org/r/bug-rcs/2021-04/msg00000.html
+* b-isr.c (ISR_STACK_SIZE): Remove.
+(isr_init): Don’t assume SIGSTKSZ is a preprocessor constant.
+--- a/src/b-isr.c
++++ b/src/b-isr.c
+@@ -198,22 +198,17 @@ setup_catchsig (size_t count, int const set[VLA_ELEMS (count)])
+ #undef MUST
+ }
+
+-#if defined HAVE_SIGALTSTACK && defined SIGSTKSZ
+-#define ISR_STACK_SIZE (10 * SIGSTKSZ)
+-#else
+-#define ISR_STACK_SIZE 0
+-#endif
+-
+ struct isr_scratch *
+ isr_init (bool *be_quiet)
+ {
+ struct isr_scratch *scratch = ZLLOC (1, struct isr_scratch);
+
+-#if ISR_STACK_SIZE
++#if defined HAVE_SIGALTSTACK && defined SIGSTKSZ
++ size_t stack_size = 10 * SIGSTKSZ;
+ stack_t ss =
+ {
+- .ss_sp = alloc (PLEXUS, ISR_STACK_SIZE),
+- .ss_size = ISR_STACK_SIZE,
++ .ss_sp = alloc (PLEXUS, stack_size),
++ .ss_size = stack_size,
+ .ss_flags = 0
+ };
+
+cgit v1.2.1