summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-09-09 03:21:48 +0100
committerSam James <sam@gentoo.org>2022-09-09 03:26:54 +0100
commitffcf06f5e11b47daae87b336b8f3fda4c25919ad (patch)
treeb908f08d9be96583021ccd01876e32ed4c02b704 /app-text/psutils
parentapp-text/psutils: add 2.09 (fork) (diff)
downloadgentoo-ffcf06f5e11b47daae87b336b8f3fda4c25919ad.tar.gz
gentoo-ffcf06f5e11b47daae87b336b8f3fda4c25919ad.tar.bz2
gentoo-ffcf06f5e11b47daae87b336b8f3fda4c25919ad.zip
app-text/psutils: fix build w/ Clang 15 for old too
Bug: https://bugs.gentoo.org/869242 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text/psutils')
-rw-r--r--app-text/psutils/files/psutils-1.17-clang-implicit-int.patch16
-rw-r--r--app-text/psutils/psutils-1.17-r5.ebuild1
2 files changed, 17 insertions, 0 deletions
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() {