diff --git a/htop-gcc10.patch b/htop-gcc10.patch new file mode 100644 index 0000000..98cb8dc --- /dev/null +++ b/htop-gcc10.patch @@ -0,0 +1,27 @@ +--- CRT.h.orig 2020-02-04 17:18:44.505493387 -0500 ++++ CRT.h 2020-02-04 17:19:33.112820135 -0500 +@@ -140,7 +140,7 @@ + + 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_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/htop.spec b/htop.spec index 25fbaab..198185f 100644 --- a/htop.spec +++ b/htop.spec @@ -1,10 +1,11 @@ Name: htop Version: 2.2.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Interactive process viewer License: GPLv2+ URL: http://hisham.hm/htop/ Source0: http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz +Patch0: %{name}-gcc10.patch BuildRequires: desktop-file-utils BuildRequires: ncurses-devel @@ -56,6 +57,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %{_mandir}/man1/htop.1* %changelog +* Tue Feb 04 2020 Mukundan Ragavan - 2.2.0-8 +- Add patch to build against gcc-10 + * Wed Jan 29 2020 Fedora Release Engineering - 2.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild