From 53cba99042fa967e2a93da9f8db806fe2d035543 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 17 Feb 2020 01:16:38 +0000 Subject: gentoo resync : 17.02.2020 --- sys-process/htop/files/htop-2.2.0-gcc-10.patch | 27 +++++++++++ .../htop/files/htop-3.0.0_beta5-gcc-10.patch | 52 ++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 sys-process/htop/files/htop-2.2.0-gcc-10.patch create mode 100644 sys-process/htop/files/htop-3.0.0_beta5-gcc-10.patch (limited to 'sys-process/htop/files') diff --git a/sys-process/htop/files/htop-2.2.0-gcc-10.patch b/sys-process/htop/files/htop-2.2.0-gcc-10.patch new file mode 100644 index 000000000000..dc49b0bb8508 --- /dev/null +++ b/sys-process/htop/files/htop-2.2.0-gcc-10.patch @@ -0,0 +1,27 @@ +--- a/CRT.h ++++ b/CRT.h +@@ -140,7 +140,7 @@ extern const char **CRT_treeStr; + + extern int CRT_delay; + +-int* CRT_colors; ++extern int* CRT_colors; + + extern int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT]; + +@@ -150,13 +150,13 @@ extern int CRT_scrollHAmount; + + extern int CRT_scrollWheelVAmount; + +-char* CRT_termType; ++extern char* CRT_termType; + + // TODO move color scheme to Settings, perhaps? + + extern int CRT_colorScheme; + +-void *backtraceArray[128]; ++extern void *backtraceArray[128]; + + #if HAVE_SETUID_ENABLED + diff --git a/sys-process/htop/files/htop-3.0.0_beta5-gcc-10.patch b/sys-process/htop/files/htop-3.0.0_beta5-gcc-10.patch new file mode 100644 index 000000000000..6a2004b3cf77 --- /dev/null +++ b/sys-process/htop/files/htop-3.0.0_beta5-gcc-10.patch @@ -0,0 +1,52 @@ +From ee711740d2809e7aa3ebd57d58bfc02b1e9b034b Mon Sep 17 00:00:00 2001 +From: David Seifert +Date: Thu, 23 Jan 2020 17:27:10 +0100 +Subject: [PATCH] Fix GCC 10 switch to `-fno-common` default + +--- + CRT.h | 6 +++--- + linux/LinuxProcess.h | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/CRT.h b/CRT.h +index 933fe068..65998ac6 100644 +--- a/CRT.h ++++ b/CRT.h +@@ -140,7 +140,7 @@ extern const char **CRT_treeStr; + + extern int CRT_delay; + +-int* CRT_colors; ++extern int* CRT_colors; + + extern int CRT_colorSchemes[LAST_COLORSCHEME][LAST_COLORELEMENT]; + +@@ -150,13 +150,13 @@ extern int CRT_scrollHAmount; + + extern int CRT_scrollWheelVAmount; + +-char* CRT_termType; ++extern char* CRT_termType; + + // TODO move color scheme to Settings, perhaps? + + extern int CRT_colorScheme; + +-void *backtraceArray[128]; ++extern void *backtraceArray[128]; + + #if HAVE_SETUID_ENABLED + +diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h +index 6ce3037d..cbd77be9 100644 +--- a/linux/LinuxProcess.h ++++ b/linux/LinuxProcess.h +@@ -144,7 +144,7 @@ typedef struct LinuxProcess_ { + #endif + + +-long long btime; /* semi-global */ ++extern long long btime; /* semi-global */ + + extern ProcessFieldData Process_fields[]; + -- cgit v1.2.3