commit:     59e7fe66282908d11677b4e5626b964b0fa723c4
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 30 03:20:00 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 03:42:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59e7fe66

app-text/letterize: fix build with clang16

Trivial fix.

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

 app-text/letterize/files/letterize-1.4-clang16.patch | 8 ++++++++
 app-text/letterize/letterize-1.4.ebuild              | 6 +++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/app-text/letterize/files/letterize-1.4-clang16.patch 
b/app-text/letterize/files/letterize-1.4-clang16.patch
new file mode 100644
index 000000000000..82a1258a60d3
--- /dev/null
+++ b/app-text/letterize/files/letterize-1.4-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/870775
+--- a/letterize.c
++++ b/letterize.c
+@@ -234,3 +234,3 @@
+ 
+-main(int argc, char **argv)
++int main(int argc, char **argv)
+ {

diff --git a/app-text/letterize/letterize-1.4.ebuild 
b/app-text/letterize/letterize-1.4.ebuild
index 91dbcfff516e..d28a490c6729 100644
--- a/app-text/letterize/letterize-1.4.ebuild
+++ b/app-text/letterize/letterize-1.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -13,6 +13,10 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-clang16.patch
+)
+
 src_configure() {
        tc-export CC
        default

Reply via email to