pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ncdu2: update to 2.2.2, report build failure upstream.



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Sun Jan 22 19:58:36 2023 +0100
Changeset:	b37f033ab5aeff4ecda9990d85093a4efd53c661

Modified Files:
	ncdu2/DESCR
	ncdu2/Makefile
	ncdu2/PLIST
	ncdu2/distinfo
Added Files:
	ncdu2/patches/patch-build.zig

Log Message:
ncdu2: update to 2.2.2, report build failure upstream.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b37f033ab5aeff4ecda9990d85093a4efd53c661

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ncdu2/DESCR                   |  7 ++-----
 ncdu2/Makefile                | 12 ++++++------
 ncdu2/PLIST                   |  2 +-
 ncdu2/distinfo                |  9 +++++----
 ncdu2/patches/patch-build.zig | 14 ++++++++++++++
 5 files changed, 28 insertions(+), 16 deletions(-)

diffs:
diff --git a/ncdu2/DESCR b/ncdu2/DESCR
index 919e0cbf91..2976b315e3 100644
--- a/ncdu2/DESCR
+++ b/ncdu2/DESCR
@@ -1,7 +1,4 @@
 ncdu (NCurses Disk Usage) is a curses-based version of the well-known
 'du', and provides a fast way to see what directories are using
-your disk space.
-
-This is major version 2 of the program, written in Zig.  Since Zig
-is still in development, it will be developed in parallel to major
-version 1.
+your disk space. This is a complete rewrite in zig, with lower memory
+usage and better performance.
diff --git a/ncdu2/Makefile b/ncdu2/Makefile
index 87df7a80e1..2c3069a341 100644
--- a/ncdu2/Makefile
+++ b/ncdu2/Makefile
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.16 2023/01/03 13:29:49 wiz Exp $
+# $NetBSD$
 
-DISTNAME=	ncdu-2.2.1
+DISTNAME=	ncdu-2.2.2
 CATEGORIES=	sysutils
 MASTER_SITES=	https://dev.yorhel.nl/download/
 
-MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	https://dev.yorhel.nl/ncdu
 COMMENT=	Disk usage visualization tool
-LICENSE=	modified-bsd
+MAINTAINER=	nikita%NetBSD.org@localhost
+HOMEPAGE=	https://dev.yorhel.nl/ncdu
+LICENSE=	mit
 
 FAKE_NCURSES=	yes
 USE_CURSES=	vw_printw
 
-BROKEN=		"Does not support zig-0.10.0."
+CONFLICTS+=	ncdu-[0-9]*
 
 .include "../../mk/curses.buildlink3.mk"
 .include "../../lang/zig/application.mk"
diff --git a/ncdu2/PLIST b/ncdu2/PLIST
index 45b1e2322a..503ffc1637 100644
--- a/ncdu2/PLIST
+++ b/ncdu2/PLIST
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2013/08/23 11:31:29 wiz Exp $
+@comment $NetBSD$
 bin/ncdu
 man/man1/ncdu.1
diff --git a/ncdu2/distinfo b/ncdu2/distinfo
index f2c63fe9bf..8815d085dd 100644
--- a/ncdu2/distinfo
+++ b/ncdu2/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.12 2023/01/03 13:29:49 wiz Exp $
+$NetBSD$
 
-BLAKE2s (ncdu-2.2.1.tar.gz) = c53d20457a4e0fe003a0e704fdecc1f93f4893b55d955831ffa84a83fbc00b78
-SHA512 (ncdu-2.2.1.tar.gz) = 63a3b0d12c1c265d826276a01b37f7785d50721da5dc35c2934ee6ba7923254c02ab906bc49df60b26b8bf18b7d4c49b0cc02eb7e805cf32cde3e0cd35187973
-Size (ncdu-2.2.1.tar.gz) = 55972 bytes
+BLAKE2s (ncdu-2.2.2.tar.gz) = 15f96d67a36352647e986c7829d069c0d6d06954e6e5d3c160eb71a782c69e77
+SHA512 (ncdu-2.2.2.tar.gz) = 5742b4abca1168256b6a7afa24d25e709bc3b490181d85fc070ddce4aad9d41fa3acb5c5a63676d804d082918fdf2bf0c98a27d8d07a56abeef0574c1b598da6
+Size (ncdu-2.2.2.tar.gz) = 56096 bytes
+SHA1 (patch-build.zig) = a8ad575ef54b7ad682cf2ba587694f844cc0ebb1
diff --git a/ncdu2/patches/patch-build.zig b/ncdu2/patches/patch-build.zig
new file mode 100644
index 0000000000..6c523994fd
--- /dev/null
+++ b/ncdu2/patches/patch-build.zig
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Fix PIE build.
+
+--- build.zig.orig	2023-01-19 20:45:54.216372800 +0100
++++ build.zig	2023-01-19 20:46:23.795210635 +0100
+@@ -10,6 +10,7 @@
+     const exe = b.addExecutable("ncdu", "src/main.zig");
+     exe.setTarget(target);
+     exe.setBuildMode(mode);
++    exe.pie = true;
+     exe.addCSourceFile("src/ncurses_refs.c", &[_][]const u8{});
+     exe.linkLibC();
+     exe.linkSystemLibrary("ncursesw");


Home | Main Index | Thread Index | Old Index