summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-07 02:05:57 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-07 02:33:12 -0400
commitf95a5748fe369f8c20d9e7d606c9d4f8650f2c59 (patch)
tree7524d3854a6bedbb6e2e82686b0ae5cbfffcf7ad /dev-libs/libstroke
parentdev-libs/libstroke: EAPI7->8, remove dead urls (diff)
downloadgentoo-f95a5748fe369f8c20d9e7d606c9d4f8650f2c59.tar.gz
gentoo-f95a5748fe369f8c20d9e7d606c9d4f8650f2c59.tar.bz2
gentoo-f95a5748fe369f8c20d9e7d606c9d4f8650f2c59.zip
dev-libs/libstroke: fix build with upcoming clang16
Closes: https://bugs.gentoo.org/871054 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-libs/libstroke')
-rw-r--r--dev-libs/libstroke/files/libstroke-0.5.1-clang16.patch7
-rw-r--r--dev-libs/libstroke/libstroke-0.5.1-r2.ebuild (renamed from dev-libs/libstroke/libstroke-0.5.1-r1.ebuild)1
2 files changed, 8 insertions, 0 deletions
diff --git a/dev-libs/libstroke/files/libstroke-0.5.1-clang16.patch b/dev-libs/libstroke/files/libstroke-0.5.1-clang16.patch
new file mode 100644
index 000000000000..de903c63142c
--- /dev/null
+++ b/dev-libs/libstroke/files/libstroke-0.5.1-clang16.patch
@@ -0,0 +1,7 @@
+https://bugs.gentoo.org/871054
+--- a/libstroke/stroke.c
++++ b/libstroke/stroke.c
+@@ -13,2 +13,3 @@
+ #include <stdio.h>
++#include <string.h>
+ #include <math.h>
diff --git a/dev-libs/libstroke/libstroke-0.5.1-r1.ebuild b/dev-libs/libstroke/libstroke-0.5.1-r2.ebuild
index a353a532aef7..884a05341d0b 100644
--- a/dev-libs/libstroke/libstroke-0.5.1-r1.ebuild
+++ b/dev-libs/libstroke/libstroke-0.5.1-r2.ebuild
@@ -22,6 +22,7 @@ PATCHES=(
"${FILESDIR}"/${P}-m4_syntax.patch
"${FILESDIR}"/${P}-no_gtk1.patch
"${FILESDIR}"/${P}-autotools.patch
+ "${FILESDIR}"/${P}-clang16.patch
)
src_prepare() {