commit:     f95a5748fe369f8c20d9e7d606c9d4f8650f2c59
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  7 06:05:57 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 06:33:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95a5748

dev-libs/libstroke: fix build with upcoming clang16

Closes: https://bugs.gentoo.org/871054
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-libs/libstroke/files/libstroke-0.5.1-clang16.patch             | 7 +++++++
 .../{libstroke-0.5.1-r1.ebuild => libstroke-0.5.1-r2.ebuild}       | 1 +
 2 files changed, 8 insertions(+)

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
similarity index 95%
rename from dev-libs/libstroke/libstroke-0.5.1-r1.ebuild
rename to 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() {

Reply via email to