summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatoro <matoro@users.noreply.github.com>2022-06-23 00:05:30 -0400
committerSam James <sam@gentoo.org>2022-06-23 05:29:48 +0100
commite6fa63e32cc33b26430dfcd01eec8cad219ab68a (patch)
treed79fb77470d3bf2b4f34cb94aa7ba843274f18fd /dev-libs
parentmedia-libs/mlt: add 7.8.0 (diff)
downloadgentoo-e6fa63e32cc33b26430dfcd01eec8cad219ab68a.tar.gz
gentoo-e6fa63e32cc33b26430dfcd01eec8cad219ab68a.tar.bz2
gentoo-e6fa63e32cc33b26430dfcd01eec8cad219ab68a.zip
dev-libs/marisa: fix build on 64-bit sparc
See: https://github.com/gentoo/gentoo/commit/ddedb2650b0beb769a2e165681be5a99a46cfac8 See: https://github.com/gentoo/gentoo/commit/78057fe9e8fb2c1a89ff10dba205f2b40b009090 Closes: https://bugs.gentoo.org/843422 Signed-off-by: matoro <matoro@users.noreply.github.com> Closes: https://github.com/gentoo/gentoo/pull/26050 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/marisa/files/marisa-0.2.6-sparc64_word_size.patch16
-rw-r--r--dev-libs/marisa/marisa-0.2.6.ebuild1
2 files changed, 17 insertions, 0 deletions
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
new file mode 100644
index 000000000000..ff789b1c9043
--- /dev/null
+++ b/dev-libs/marisa/files/marisa-0.2.6-sparc64_word_size.patch
@@ -0,0 +1,16 @@
+Originally reported in https://bugs.gentoo.org/show_bug.cgi?id=843422
+Upstream PR https://github.com/s-yata/marisa-trie/pull/46
+
+diff --git a/include/marisa/base.h b/include/marisa/base.h
+index bf4794e..95861b4 100644
+--- a/include/marisa/base.h
++++ b/include/marisa/base.h
+@@ -30,7 +30,7 @@ typedef uint64_t marisa_uint64;
+
+ #if defined(_WIN64) || defined(__amd64__) || defined(__x86_64__) || \
+ defined(__ia64__) || defined(__ppc64__) || defined(__powerpc64__) || \
+- defined(__sparc64__) || defined(__mips64__) || defined(__aarch64__) || \
++ (defined(__sparc__) && defined(__LP64__)) || defined(__mips64__) || defined(__aarch64__) || \
+ defined(__s390x__) || (defined(__riscv) && (__riscv_xlen == 64)) || \
+ defined(__loongarch64)
+ #define MARISA_WORD_SIZE 64
diff --git a/dev-libs/marisa/marisa-0.2.6.ebuild b/dev-libs/marisa/marisa-0.2.6.ebuild
index a0f5769c7efa..7df3c25d5c77 100644
--- a/dev-libs/marisa/marisa-0.2.6.ebuild
+++ b/dev-libs/marisa/marisa-0.2.6.ebuild
@@ -41,6 +41,7 @@ fi
PATCHES=(
"${FILESDIR}/${PN}-0.2.6-riscv_word_size.patch"
"${FILESDIR}/${PN}-0.2.6-loong_word_size.patch"
+ "${FILESDIR}/${PN}-0.2.6-sparc64_word_size.patch"
)
src_prepare() {