[arch-commits] Commit in htop/trunk (3 files)

2020-08-27 Thread Christian Hesse via arch-commits
Date: Thursday, August 27, 2020 @ 12:26:44
  Author: eworm
Revision: 394762

upgpkg: htop 3.0.0-1: new upstream, new release

Modified:
  htop/trunk/PKGBUILD
Deleted:
  htop/trunk/0001-fix-option-string.patch
  htop/trunk/0002-gcc10.patch

--+
 0001-fix-option-string.patch |   25 -
 0002-gcc10.patch |   39 ---
 PKGBUILD |   24 
 3 files changed, 8 insertions(+), 80 deletions(-)

Deleted: 0001-fix-option-string.patch
===
--- 0001-fix-option-string.patch2020-08-27 12:10:13 UTC (rev 394761)
+++ 0001-fix-option-string.patch2020-08-27 12:26:44 UTC (rev 394762)
@@ -1,25 +0,0 @@
-From 731acc8bced18c90fbe0e18381c32f007f71e0d9 Mon Sep 17 00:00:00 2001
-From: Christian Hesse 
-Date: Tue, 10 Apr 2018 16:21:46 +0200
-Subject: [PATCH 1/1] fix option string
-
-This broke with commit db05ba61065f64b59d0014518be0786b5439e54c.
-
-Signed-off-by: Christian Hesse 

- htop.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/htop.c b/htop.c
-index 6db81dd..678a3b8 100644
 a/htop.c
-+++ b/htop.c
-@@ -93,7 +93,7 @@ static CommandLineSettings parseArguments(int argc, char** 
argv) {
- 
-int opt, opti=0;
-/* Parse arguments */
--   while ((opt = getopt_long(argc, argv, "hvCst::d:u:p:i", long_opts, 
))) {
-+   while ((opt = getopt_long(argc, argv, "hvCs:td:u:p:i", long_opts, ))) 
{
-   if (opt == EOF) break;
-   switch (opt) {
-  case 'h':

Deleted: 0002-gcc10.patch
===
--- 0002-gcc10.patch2020-08-27 12:10:13 UTC (rev 394761)
+++ 0002-gcc10.patch2020-08-27 12:26:44 UTC (rev 394762)
@@ -1,39 +0,0 @@
-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
- 

Modified: PKGBUILD
===
--- PKGBUILD2020-08-27 12:10:13 UTC (rev 394761)
+++ PKGBUILD2020-08-27 12:26:44 UTC (rev 394762)
@@ -4,31 +4,23 @@
 # Contributor: Daniel J Griffiths 
 
 pkgname=htop
-pkgver=2.2.0
-pkgrel=3
+pkgver=3.0.0
+pkgrel=1
 pkgdesc='Interactive process viewer'
 arch=('x86_64')
-url='https://hisham.hm/htop/'
+url='https://htop.dev/'
 license=('GPL')
-depends=('ncurses' 'libnl')
-makedepends=('python')
+depends=('ncurses' 'libncursesw.so' 'libnl')
 optdepends=('lsof: show files opened by a process'
 'strace: attach to a running process')
-options=('!emptydirs' debug)
-validpgpkeys=('8460980B2B79786DE0C7FCC83FD8F43C2BB3C478') # Hisham Muhammad 

-source=("https://hisham.hm/$pkgname/releases/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
-'0001-fix-option-string.patch'
-'0002-gcc10.patch')
-sha256sums=('d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57'
-'SKIP'
-'e0ea3a91dfbc7f8c516a19e0d8890314845e768ea4132dfaa49c4d4e89ec10ca'
-'f715a87cffc6375eb3915530f4b27455b00b9324b8ee9168c0b983ba2a536938')
+options=('!emptydirs')
+source=("https://github.com/htop-dev/htop/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz;)
+sha256sums=('1c0661f0ae5f4e2874da250b60cd515e4ac4c041583221adfe95f10e18d1a4e6')
 
 prepare() {
   cd "$pkgname-$pkgver"
 
-  patch -Np1 < "${srcdir}"/0001-fix-option-string.patch
-  patch -Np1 < "${srcdir}"/0002-gcc10.patch
+  autoreconf -fi
 }
 
 build() {


[arch-commits] Commit in htop/trunk (3 files)

2011-11-22 Thread Angel Velásquez
Date: Tuesday, November 22, 2011 @ 10:51:20
  Author: angvp
Revision: 143083

upgpkg: htop 1.0-1

Version bump to 1.0

Modified:
  htop/trunk/PKGBUILD
Deleted:
  htop/trunk/fix-segfault-small-terminal.patch
  htop/trunk/fix-sort-key-bug.patch

---+
 PKGBUILD  |   15 ---
 fix-segfault-small-terminal.patch |   24 
 fix-sort-key-bug.patch|   15 ---
 3 files changed, 4 insertions(+), 50 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-11-22 13:27:59 UTC (rev 143082)
+++ PKGBUILD2011-11-22 15:51:20 UTC (rev 143083)
@@ -4,8 +4,8 @@
 # Contributor: Daniel J Griffiths ghost1...@archlinux.us
 
 pkgname=htop
-pkgver=0.9
-pkgrel=3
+pkgver=1.0
+pkgrel=1
 pkgdesc=Interactive process viewer
 arch=('i686' 'x86_64')
 url=http://htop.sourceforge.net/;
@@ -15,12 +15,8 @@
 optdepends=('lsof' 'strace')
 options=('!emptydirs')
 changelog=ChangeLog
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
-'fix-sort-key-bug.patch'
-'fix-segfault-small-terminal.patch')
-md5sums=('7c5507f35f363f3f40183a2ba3c561f8'
- '750e8ad8476c5d9738da2a2bc7a7c2b6'
- 'd93e39c9662522367dc3a73cc3057039')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('325112ca7947ea1f6d6441f631e00384')
 
 build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -28,9 +24,6 @@
sed -i 's|ncursesw/curses.h|curses.h|' RichString.h RichString.c 
configure 
sed -i 's|python|python2|' scripts/MakeHeader.py
 
-patch -Np0 -i ${srcdir}/fix-sort-key-bug.patch
-patch -p1 -i ${srcdir}/fix-segfault-small-terminal.patch
-
./configure --prefix=/usr \
   --enable-unicode \
   --enable-openvz \

Deleted: fix-segfault-small-terminal.patch
===
--- fix-segfault-small-terminal.patch   2011-11-22 13:27:59 UTC (rev 143082)
+++ fix-segfault-small-terminal.patch   2011-11-22 15:51:20 UTC (rev 143083)
@@ -1,24 +0,0 @@
 trunk/Meter.c  2011/08/26 20:52:35 229
-+++ trunk/Meter.c  2011/08/26 20:55:09 230
-@@ -264,13 +264,19 @@
-
-w--;
-x++;
--   char bar[w];
-+
-+   if (w  1) {
-+  attrset(CRT_colors[RESET_COLOR]);
-+  return;
-+   }
-+   char bar[w + 1];
-
-int blockSizes[10];
-for (int i = 0; i  w; i++)
-   bar[i] = ' ';
- 
--   sprintf(bar + (w-strlen(buffer)), %s, buffer);
-+   const size_t barOffset = w - MIN(strlen(buffer), w);
-+   snprintf(bar + barOffset, w - barOffset + 1, %s, buffer);
- 
-// First draw in the bar[] buffer...
-double total = 0.0;

Deleted: fix-sort-key-bug.patch
===
--- fix-sort-key-bug.patch  2011-11-22 13:27:59 UTC (rev 143082)
+++ fix-sort-key-bug.patch  2011-11-22 15:51:20 UTC (rev 143083)
@@ -1,15 +0,0 @@
-From: Roman Kosenko madk...@gmail.com
-Date: Thu, 10 Mar 2011 16:23:53 +0200
-Subject: [PATCH] Fix stupid bug with --sort-key
-
 htop.c.old 2010-11-24 20:45:38.0 +0200
-+++ htop.c 2011-03-10 16:32:18.473716667 +0200
-@@ -282,7 +282,7 @@
- printVersionFlag();
- break;
-  case 's':
--if (strcmp(optarg, help)) {
-+if (!strcmp(optarg, help)) {
-for (int j = 1; j  LAST_PROCESSFIELD; j++)
-   printf (%s\n, Process_fieldNames[j]);
-exit(0);