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

Evangelos Foutras foutrelis at archlinux.org
Fri Sep 11 05:00:09 UTC 2020


    Date: Friday, September 11, 2020 @ 05:00:09
  Author: foutrelis
Revision: 395760

upgpkg: htop 3.0.1-2: fix 'htop -u' without an argument

Added:
  htop/trunk/0001-Fix-regression-in-u-optional-argument-handling.patch
Modified:
  htop/trunk/PKGBUILD

-----------------------------------------------------------+
 0001-Fix-regression-in-u-optional-argument-handling.patch |   23 ++++++++++++
 PKGBUILD                                                  |   10 +++--
 2 files changed, 30 insertions(+), 3 deletions(-)

Added: 0001-Fix-regression-in-u-optional-argument-handling.patch
===================================================================
--- 0001-Fix-regression-in-u-optional-argument-handling.patch	                        (rev 0)
+++ 0001-Fix-regression-in-u-optional-argument-handling.patch	2020-09-11 05:00:09 UTC (rev 395760)
@@ -0,0 +1,23 @@
+From 0750ff7e76d845a70749cc00fa25dbe98a7147a1 Mon Sep 17 00:00:00 2001
+From: Nathan Scott <nathans at redhat.com>
+Date: Fri, 4 Sep 2020 09:49:30 +1000
+Subject: [PATCH] Fix regression in -u optional-argument handling
+
+Resolves https://github.com/htop-dev/htop/issues/91
+---
+ htop.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/htop.c b/htop.c
+index bbf3a91..37727d0 100644
+--- a/htop.c
++++ b/htop.c
+@@ -98,7 +98,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
+ 
+    int opt, opti=0;
+    /* Parse arguments */
+-   while ((opt = getopt_long(argc, argv, "hvmCs:td:u:Up:", long_opts, &opti))) {
++   while ((opt = getopt_long(argc, argv, "hvmCs:td:u::Up:", long_opts, &opti))) {
+       if (opt == EOF) break;
+       switch (opt) {
+          case 'h':

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-11 04:37:24 UTC (rev 395759)
+++ PKGBUILD	2020-09-11 05:00:09 UTC (rev 395760)
@@ -5,7 +5,7 @@
 
 pkgname=htop
 pkgver=3.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Interactive process viewer'
 arch=('x86_64')
 url='https://htop.dev/'
@@ -14,12 +14,16 @@
 optdepends=('lsof: show files opened by a process'
             'strace: attach to a running process')
 options=('!emptydirs')
-source=("https://github.com/htop-dev/htop/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('8465164bc085f5f1813e1d3f6c4b9b56bf4c95cc12226a5367e65794949b01ca')
+source=("https://github.com/htop-dev/htop/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        '0001-Fix-regression-in-u-optional-argument-handling.patch')
+sha256sums=('8465164bc085f5f1813e1d3f6c4b9b56bf4c95cc12226a5367e65794949b01ca'
+            'b06ea0ea03629ecd3b304a26251613de3290f65d89af5d73b5b9274aca8cb7e7')
 
 prepare() {
   cd "$pkgname-$pkgver"
 
+  patch -Np1 -i ../0001-Fix-regression-in-u-optional-argument-handling.patch
+
   autoreconf -fi
 }
 



More information about the arch-commits mailing list