commit:     3fb9bc966ae822d16939f2fa0d5179946c8f484b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  7 05:24:19 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 05:41:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fb9bc96

app-text/sgrep: fix build with upcoming clang16

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

 app-text/sgrep/files/sgrep-1.94a-clang16.patch               | 11 +++++++++++
 app-text/sgrep/{sgrep-1.94a.ebuild => sgrep-1.94a-r1.ebuild} |  4 ++++
 2 files changed, 15 insertions(+)

diff --git a/app-text/sgrep/files/sgrep-1.94a-clang16.patch 
b/app-text/sgrep/files/sgrep-1.94a-clang16.patch
new file mode 100644
index 000000000000..8892f79bbb01
--- /dev/null
+++ b/app-text/sgrep/files/sgrep-1.94a-clang16.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/871036
+--- a/sgrep.h
++++ b/sgrep.h
+@@ -20,2 +20,3 @@
+ #include <stdlib.h>
++#include <string.h>
+ #include <assert.h>
+@@ -616,2 +617,3 @@
+ int create_index(const IndexOptions *options);
++int index_query(IndexOptions *options, int argc, char *argv[]);
+ int add_region_to_index(struct IndexWriterStruct *writer,

diff --git a/app-text/sgrep/sgrep-1.94a.ebuild 
b/app-text/sgrep/sgrep-1.94a-r1.ebuild
similarity index 93%
rename from app-text/sgrep/sgrep-1.94a.ebuild
rename to app-text/sgrep/sgrep-1.94a-r1.ebuild
index 48d4a42542ef..eb45eb4f246a 100644
--- a/app-text/sgrep/sgrep-1.94a.ebuild
+++ b/app-text/sgrep/sgrep-1.94a-r1.ebuild
@@ -11,6 +11,10 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-clang16.patch
+)
+
 src_prepare() {
        default
 

Reply via email to