commit: ffcf06f5e11b47daae87b336b8f3fda4c25919ad Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Sep 9 02:21:48 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Sep 9 02:26:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffcf06f5
app-text/psutils: fix build w/ Clang 15 for old too Bug: https://bugs.gentoo.org/869242 Signed-off-by: Sam James <sam <AT> gentoo.org> .../psutils/files/psutils-1.17-clang-implicit-int.patch | 16 ++++++++++++++++ app-text/psutils/psutils-1.17-r5.ebuild | 1 + 2 files changed, 17 insertions(+) diff --git a/app-text/psutils/files/psutils-1.17-clang-implicit-int.patch b/app-text/psutils/files/psutils-1.17-clang-implicit-int.patch new file mode 100644 index 000000000000..0f70648dd600 --- /dev/null +++ b/app-text/psutils/files/psutils-1.17-clang-implicit-int.patch @@ -0,0 +1,16 @@ +--- a/pserror.c ++++ b/pserror.c +@@ -22,11 +22,11 @@ extern char *program ; /* Defined by mai + #define MAX_COLUMN 78 /* maximum column to print upto */ + + void message(int flags, char *format, ...) + { + va_list args ; +- static column = 0 ; /* current screen column for message wrap */ ++ static int column = 0 ; /* current screen column for message wrap */ + char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */ + char *bufptr = msgbuf ; /* message buffer pointer */ + + if ( (flags & MESSAGE_NL) && column != 0 ) { /* new line if not already */ + putc('\n', stderr) ; + diff --git a/app-text/psutils/psutils-1.17-r5.ebuild b/app-text/psutils/psutils-1.17-r5.ebuild index dd64aadab49c..87cb65425884 100644 --- a/app-text/psutils/psutils-1.17-r5.ebuild +++ b/app-text/psutils/psutils-1.17-r5.ebuild @@ -19,6 +19,7 @@ BDEPEND="dev-lang/perl" PATCHES=( "${FILESDIR}"/${P}-makefile.patch "${FILESDIR}"/${P}-no-fixmacps.patch + "${FILESDIR}"/${P}-clang-implicit-int.patch ) src_compile() {
