commit: 82879c233f6f8be1e6626a2b44718a6ba4fc14b3 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Wed Oct 19 09:17:59 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Wed Oct 19 09:21:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82879c23
net-misc/getdate: fix build w/ upcoming clang16 Closes: https://bugs.gentoo.org/874501 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> net-misc/getdate/files/getdate-1.2-clang16.patch | 8 ++++++++ net-misc/getdate/getdate-1.2-r2.ebuild | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/net-misc/getdate/files/getdate-1.2-clang16.patch b/net-misc/getdate/files/getdate-1.2-clang16.patch new file mode 100644 index 000000000000..7b578e37bb26 --- /dev/null +++ b/net-misc/getdate/files/getdate-1.2-clang16.patch @@ -0,0 +1,8 @@ +https://bugs.gentoo.org/874501 +--- a/getdate.c ++++ b/getdate.c +@@ -250,3 +250,3 @@ + +-main (int argc, char *argv[]) ++int main (int argc, char *argv[]) + { diff --git a/net-misc/getdate/getdate-1.2-r2.ebuild b/net-misc/getdate/getdate-1.2-r2.ebuild index 21c21d60ba86..d06f3c2be84e 100644 --- a/net-misc/getdate/getdate-1.2-r2.ebuild +++ b/net-misc/getdate/getdate-1.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -21,6 +21,7 @@ S="${WORKDIR}/${MY_P}" PATCHES=( "${FILESDIR}/${PN}-glibc-2.31.patch" + "${FILESDIR}/${P}-clang16.patch" ) src_prepare() {