From cbf6d34f845a4c97c47582996257079dbabba9ae448dcf54d61ae1d313f2a384 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 30 Nov 2022 09:07:34 +0000 Subject: [PATCH] Accepting request 1038846 from openSUSE:Factory:RISCV - Enable build on riscv64 - Increase stack size OBS-URL: https://build.opensuse.org/request/show/1038846 OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=93 --- coccinelle.changes | 6 ++++++ coccinelle.spec | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/coccinelle.changes b/coccinelle.changes index 3067f17..f6eb301 100644 --- a/coccinelle.changes +++ b/coccinelle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 29 10:51:36 UTC 2022 - Andreas Schwab + +- Enable build on riscv64 +- Increase stack size + ------------------------------------------------------------------- Wed Dec 29 21:21:21 UTC 2021 - ohering@suse.de diff --git a/coccinelle.spec b/coccinelle.spec index 1e4a4ee..9709790 100644 --- a/coccinelle.spec +++ b/coccinelle.spec @@ -1,7 +1,7 @@ # # spec file for package coccinelle # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ URL: http://coccinelle.lip6.fr/ Source0: %name-%version.tar.xz Source1: %name.rpmlintrc Patch1: kill-env.diff -ExclusiveArch: aarch64 ppc64le s390x x86_64 +ExclusiveArch: aarch64 ppc64le s390x x86_64 riscv64 BuildRequires: autoconf BuildRequires: automake BuildRequires: fdupes @@ -66,6 +66,12 @@ fixing bugs in systems code. %build autoreconf -fi %configure --with-python=%python_for_executables +# Compiling the generated parser requires an extraordinary amount of stack +%if 0%{?qemu_user_space_build} +export QEMU_STACK_SIZE=$((32768*1024)) +%else +ulimit -s 32768 +%endif %make_build -j1 VERBOSE=yes %install