diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-10-07 01:24:19 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-10-07 01:41:09 -0400 |
commit | 3fb9bc966ae822d16939f2fa0d5179946c8f484b (patch) | |
tree | 95420069ede43d1e69c3a23d8711ad854a5800f4 /app-text | |
parent | app-text/sgrep: EAPI6->8 (diff) | |
download | gentoo-3fb9bc966ae822d16939f2fa0d5179946c8f484b.tar.gz gentoo-3fb9bc966ae822d16939f2fa0d5179946c8f484b.tar.bz2 gentoo-3fb9bc966ae822d16939f2fa0d5179946c8f484b.zip |
app-text/sgrep: fix build with upcoming clang16
Closes: https://bugs.gentoo.org/871036
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/sgrep/files/sgrep-1.94a-clang16.patch | 11 | ||||
-rw-r--r-- | app-text/sgrep/sgrep-1.94a-r1.ebuild (renamed from app-text/sgrep/sgrep-1.94a.ebuild) | 4 |
2 files changed, 15 insertions, 0 deletions
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 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 |