Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/marisa/, dev-libs/marisa/files/
Date: Thu, 23 Jun 2022 04:30:04
Message-Id: 1655958588.e6fa63e32cc33b26430dfcd01eec8cad219ab68a.sam@gentoo
1 commit: e6fa63e32cc33b26430dfcd01eec8cad219ab68a
2 Author: matoro <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Thu Jun 23 04:05:30 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 04:29:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6fa63e3
7
8 dev-libs/marisa: fix build on 64-bit sparc
9
10 See: https://github.com/gentoo/gentoo/commit/ddedb2650b0beb769a2e165681be5a99a46cfac8
11 See: https://github.com/gentoo/gentoo/commit/78057fe9e8fb2c1a89ff10dba205f2b40b009090
12 Closes: https://bugs.gentoo.org/843422
13 Signed-off-by: matoro <matoro <AT> users.noreply.github.com>
14 Closes: https://github.com/gentoo/gentoo/pull/26050
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 .../marisa/files/marisa-0.2.6-sparc64_word_size.patch | 16 ++++++++++++++++
18 dev-libs/marisa/marisa-0.2.6.ebuild | 1 +
19 2 files changed, 17 insertions(+)
20
21 diff --git a/dev-libs/marisa/files/marisa-0.2.6-sparc64_word_size.patch b/dev-libs/marisa/files/marisa-0.2.6-sparc64_word_size.patch
22 new file mode 100644
23 index 000000000000..ff789b1c9043
24 --- /dev/null
25 +++ b/dev-libs/marisa/files/marisa-0.2.6-sparc64_word_size.patch
26 @@ -0,0 +1,16 @@
27 +Originally reported in https://bugs.gentoo.org/show_bug.cgi?id=843422
28 +Upstream PR https://github.com/s-yata/marisa-trie/pull/46
29 +
30 +diff --git a/include/marisa/base.h b/include/marisa/base.h
31 +index bf4794e..95861b4 100644
32 +--- a/include/marisa/base.h
33 ++++ b/include/marisa/base.h
34 +@@ -30,7 +30,7 @@ typedef uint64_t marisa_uint64;
35 +
36 + #if defined(_WIN64) || defined(__amd64__) || defined(__x86_64__) || \
37 + defined(__ia64__) || defined(__ppc64__) || defined(__powerpc64__) || \
38 +- defined(__sparc64__) || defined(__mips64__) || defined(__aarch64__) || \
39 ++ (defined(__sparc__) && defined(__LP64__)) || defined(__mips64__) || defined(__aarch64__) || \
40 + defined(__s390x__) || (defined(__riscv) && (__riscv_xlen == 64)) || \
41 + defined(__loongarch64)
42 + #define MARISA_WORD_SIZE 64
43
44 diff --git a/dev-libs/marisa/marisa-0.2.6.ebuild b/dev-libs/marisa/marisa-0.2.6.ebuild
45 index a0f5769c7efa..7df3c25d5c77 100644
46 --- a/dev-libs/marisa/marisa-0.2.6.ebuild
47 +++ b/dev-libs/marisa/marisa-0.2.6.ebuild
48 @@ -41,6 +41,7 @@ fi
49 PATCHES=(
50 "${FILESDIR}/${PN}-0.2.6-riscv_word_size.patch"
51 "${FILESDIR}/${PN}-0.2.6-loong_word_size.patch"
52 + "${FILESDIR}/${PN}-0.2.6-sparc64_word_size.patch"
53 )
54
55 src_prepare() {