From 46092878f4a293cd8dd4c21de48850a45fe2f582 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 3 Mar 2024 11:05:54 +0100 Subject: dev-lang/hare: fix build for riscv64 Signed-off-by: Haelwenn (lanodan) Monnier --- .../files/hare-0.24.0-riscv64-comment-syntax.patch | 25 ++++++++++++++++++++++ dev-lang/hare/hare-0.24.0.ebuild | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 dev-lang/hare/files/hare-0.24.0-riscv64-comment-syntax.patch (limited to 'dev-lang') diff --git a/dev-lang/hare/files/hare-0.24.0-riscv64-comment-syntax.patch b/dev-lang/hare/files/hare-0.24.0-riscv64-comment-syntax.patch new file mode 100644 index 000000000..805caf362 --- /dev/null +++ b/dev-lang/hare/files/hare-0.24.0-riscv64-comment-syntax.patch @@ -0,0 +1,25 @@ +From 80e45e4d931a6e90d999846b86471cac00d2a6d5 Mon Sep 17 00:00:00 2001 +From: Andreas Schwab +Date: Wed, 21 Feb 2024 22:05:02 +0100 +Subject: [PATCH] debug+riscv: use correct comment syntax + +Signed-off-by: Andreas Schwab +--- + debug/+riscv64/getfp.s | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/debug/+riscv64/getfp.s b/debug/+riscv64/getfp.s +index 9c3698af..b822036a 100644 +--- a/debug/+riscv64/getfp.s ++++ b/debug/+riscv64/getfp.s +@@ -1,5 +1,5 @@ +-// SPDX-License-Identifier: MPL-2.0 +-// (c) Hare authors ++# SPDX-License-Identifier: MPL-2.0 ++# (c) Hare authors + + .section ".text.debug.getfp","ax" + .global debug.getfp +-- +2.38.5 + diff --git a/dev-lang/hare/hare-0.24.0.ebuild b/dev-lang/hare/hare-0.24.0.ebuild index 380305ec5..0c7db8984 100644 --- a/dev-lang/hare/hare-0.24.0.ebuild +++ b/dev-lang/hare/hare-0.24.0.ebuild @@ -31,6 +31,10 @@ RDEPEND="${DEPEND}" # hare and haredoc are built by hare QA_FLAGS_IGNORED="usr/bin/hare usr/bin/haredoc" +PATCHES=( + "${FILESDIR}/hare-0.24.0-riscv64-comment-syntax.patch" +) + src_configure() { local target_arch case ${ARCH} in -- cgit v1.2.3-65-gdbad