htop: added patch for gcc 10

This commit is contained in:
Matt Housh 2020-07-20 10:23:16 -05:00
parent c79887e549
commit 17c4fffa1e
3 changed files with 35 additions and 4 deletions

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/VyJxi846kY8mQgpfkDWc6zAdzBlTv8R/1na4keM4PEclGupPj6xdP0fzxQ2nTqEFZ4ubdndMyUUMcP9tGLpHQo=
SHA256 (Pkgfile) = 808b193f8f89287cd5fd421ff942a95d597584cea1e04f7f7286ccb16b8e65aa
RWSE3ohX2g5d/dEOow2YCmQMmIIhx7pkK/zAx+pa+HCMcAIY5pqx/1YvryJSOBw/wOmwcBE+KpupSfYedkPrVg0Tp0JLI9fOKwc=
SHA256 (Pkgfile) = d4635e87ddba1ac5db3bb25733164967b0e6100451d1d44e30bc3b66156dc7d4
SHA256 (.footprint) = f11cf3a232e1f7885985d2d8ee00b4dbfbd263941e45f11afb4c6c56829b148f
SHA256 (htop-2.2.0.tar.gz) = d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57
SHA256 (gcc10.patch) = 2a09f4fc7752edf4738ac17caa245ade1360f184cdbb92756b5ba5bf4647e1fd

@ -6,11 +6,13 @@
name=htop
version=2.2.0
release=1
source=(https://hisham.hm/htop/releases/$version/htop-$version.tar.gz)
release=2
source=(https://hisham.hm/htop/releases/$version/htop-$version.tar.gz \
gcc10.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/gcc10.patch
./configure --prefix=/usr
make
make DESTDIR=$PKG install

28
htop/gcc10.patch Normal file

@ -0,0 +1,28 @@
diff -urN htop-2.2.0.orig/CRT.h htop-2.2.0/CRT.h
--- htop-2.2.0.orig/CRT.h 2018-04-10 13:23:24.000000000 +0000
+++ htop-2.2.0/CRT.h 2020-07-14 19:46:33.328273400 +0000
@@ -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