* [gentoo-commits] repo/gentoo:master commit in: dev-python/ukkonen/, dev-python/ukkonen/files/
@ 2021-12-12 8:48 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-12-12 8:48 UTC (permalink / raw
To: gentoo-commits
commit: 24da026ada8e90c3800ee7ac9ddb38313d395dc4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 12 08:41:54 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 12 08:48:49 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24da026a
dev-python/ukkonen: fix build on musl
Closes: https://bugs.gentoo.org/828871
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-python/ukkonen/files/ukkonen-1.0.1-musl-include.patch | 15 +++++++++++++++
dev-python/ukkonen/ukkonen-1.0.1.ebuild | 6 +++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/dev-python/ukkonen/files/ukkonen-1.0.1-musl-include.patch b/dev-python/ukkonen/files/ukkonen-1.0.1-musl-include.patch
new file mode 100644
index 000000000000..0be1be4adefd
--- /dev/null
+++ b/dev-python/ukkonen/files/ukkonen-1.0.1-musl-include.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/828871
+https://github.com/asottile/ukkonen/commit/1b2aa2833b08e00279ff77612e82dad152eb3c14.patch
+
+From: Joonas Niilola <juippis@gentoo.org>
+Date: Sat, 11 Dec 2021 10:39:16 +0200
+Subject: [PATCH] _ukkonen.cpp: add #include <cstdint>
+
+--- a/_ukkonen.cpp
++++ b/_ukkonen.cpp
+@@ -1,4 +1,5 @@
+ #include <algorithm>
++#include <cstdint>
+ #include <vector>
+
+ template <typename T> int64_t edit_distance_k_impl(
diff --git a/dev-python/ukkonen/ukkonen-1.0.1.ebuild b/dev-python/ukkonen/ukkonen-1.0.1.ebuild
index a4cc21241192..bd7bbdbacc80 100644
--- a/dev-python/ukkonen/ukkonen-1.0.1.ebuild
+++ b/dev-python/ukkonen/ukkonen-1.0.1.ebuild
@@ -22,6 +22,10 @@ RDEPEND="
$(python_gen_cond_dep '
dev-python/cffi[${PYTHON_USEDEP}]
' 'python*')"
-BDEPEND=${RDEPEND}
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-musl-include.patch
+)
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-12 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-12 8:48 [gentoo-commits] repo/gentoo:master commit in: dev-python/ukkonen/, dev-python/ukkonen/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox