commit:     46092878f4a293cd8dd4c21de48850a45fe2f582
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Sun Mar  3 10:05:54 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Sun Mar  3 10:06:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=46092878

dev-lang/hare: fix build for riscv64

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>

 .../files/hare-0.24.0-riscv64-comment-syntax.patch | 25 ++++++++++++++++++++++
 dev-lang/hare/hare-0.24.0.ebuild                   |  4 ++++
 2 files changed, 29 insertions(+)

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 0000000000..805caf3627
--- /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 <[email protected]>
+Date: Wed, 21 Feb 2024 22:05:02 +0100
+Subject: [PATCH] debug+riscv: use correct comment syntax
+
+Signed-off-by: Andreas Schwab <[email protected]>
+---
+ 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 <https://harelang.org>
++# SPDX-License-Identifier: MPL-2.0
++# (c) Hare authors <https://harelang.org>
+ 
+ .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 380305ec5c..0c7db89848 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

Reply via email to