From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/, sys-process/htop/files/
Date: Tue, 11 Feb 2020 11:23:02 +0000 (UTC) [thread overview]
Message-ID: <1581420156.5fa347583c1bf30e212cb38d529bbed3d233c9cc.soap@gentoo> (raw)
commit: 5fa347583c1bf30e212cb38d529bbed3d233c9cc
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 11 11:22:36 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Feb 11 11:22:36 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fa34758
sys-process/htop: Fix building with -fno-common
Closes: https://bugs.gentoo.org/706358
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>
.../htop/files/htop-3.0.0_beta5-gcc-10.patch | 52 ++++++++++++++++++++++
sys-process/htop/htop-3.0.0_beta5.ebuild | 4 +-
2 files changed, 54 insertions(+), 2 deletions(-)
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 00000000000..6a2004b3cf7
--- /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 <soap@gentoo.org>
+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[];
+
diff --git a/sys-process/htop/htop-3.0.0_beta5.ebuild b/sys-process/htop/htop-3.0.0_beta5.ebuild
index 9ee89943272..3351359ceb6 100644
--- a/sys-process/htop/htop-3.0.0_beta5.ebuild
+++ b/sys-process/htop/htop-3.0.0_beta5.ebuild
@@ -30,9 +30,9 @@ DOCS=( ChangeLog README )
CONFIG_CHECK="~TASKSTATS ~TASK_XACCT ~TASK_IO_ACCOUNTING ~CGROUPS"
PATCHES=(
-
# Fixes from upstream (can usually be removed with next version bump)
- "${FILESDIR}/${PN}-2.1.0-header_updates.patch"
+ "${FILESDIR}"/${PN}-2.1.0-header_updates.patch
+ "${FILESDIR}"/${PN}-3.0.0_beta5-gcc-10.patch
)
pkg_setup() {
next reply other threads:[~2020-02-11 11:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-11 11:23 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-08-29 14:31 [gentoo-commits] repo/gentoo:master commit in: sys-process/htop/, sys-process/htop/files/ Lars Wendler
2020-08-27 11:48 Thomas Deutschmann
2020-02-11 10:59 David Seifert
2018-11-27 14:35 Lars Wendler
2018-10-09 13:22 Lars Wendler
2016-07-22 8:53 Lars Wendler
2016-07-22 8:53 Lars Wendler
2016-02-11 13:37 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1581420156.5fa347583c1bf30e212cb38d529bbed3d233c9cc.soap@gentoo \
--to=soap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox