summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-09-29 23:20:00 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-09-29 23:42:26 -0400
commit59e7fe66282908d11677b4e5626b964b0fa723c4 (patch)
treed825c16d62b3553d954f68f2f4ec08852af56451 /app-text/letterize
parentmedia-gfx/jpegpixi: run eautoreconf for clang16 (diff)
downloadgentoo-59e7fe66282908d11677b4e5626b964b0fa723c4.tar.gz
gentoo-59e7fe66282908d11677b4e5626b964b0fa723c4.tar.bz2
gentoo-59e7fe66282908d11677b4e5626b964b0fa723c4.zip
app-text/letterize: fix build with clang16
Trivial fix. Closes: https://bugs.gentoo.org/870775 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-text/letterize')
-rw-r--r--app-text/letterize/files/letterize-1.4-clang16.patch8
-rw-r--r--app-text/letterize/letterize-1.4.ebuild6
2 files changed, 13 insertions, 1 deletions
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