public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Richard Fearn <richardfearn@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ncdu] f44: Update to 2.10.0 from new upstream (#2487467)
Date: Sat, 27 Jun 2026 20:50:41 GMT	[thread overview]
Message-ID: <178259344187.1.1135724234320447698.rpms-ncdu-cb734548284e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ncdu
Branch : f44
Commit : cb734548284e85fa34346d1ca8bdfc67552d2458
Author : Richard Fearn <richardfearn@gmail.com>
Date   : 2026-06-25T19:36:38+01:00
Stats  : +113/-11 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/ncdu/c/cb734548284e85fa34346d1ca8bdfc67552d2458?branch=f44

Log:
Update to 2.10.0 from new upstream (#2487467)

---
diff --git a/ncdu-translate-c.patch b/ncdu-translate-c.patch
new file mode 100644
index 0000000..3242070
--- /dev/null
+++ b/ncdu-translate-c.patch
@@ -0,0 +1,102 @@
+diff --git a/build.zig b/build.zig
+--- a/build.zig
++++ b/build.zig
+@@ -3,8 +3,6 @@
+ 
+ const std = @import("std");
+ 
+-const Translator = @import("translate_c").Translator;
+-
+ const manifest = @import("build.zig.zon");
+ 
+ pub fn build(b: *std.Build) void {
+@@ -14,50 +12,15 @@ pub fn build(b: *std.Build) void {
+     const pie = b.option(bool, "pie", "Build with PIE support (by default: target-dependant)");
+     const strip = b.option(bool, "strip", "Strip debugging info (by default false)") orelse false;
+ 
+-    const translate_c = b.dependency("translate_c", .{});
+-    const t: Translator = .init(translate_c, .{
+-        .c_source_file = b.path("src/c.h"),
++    const c_mod = b.createModule(.{
++        .root_source_file = b.path("src/c.zig"),
+         .target = target,
+         .optimize = optimize,
+     });
+ 
+-    const use_system_ncurses = b.systemIntegrationOption("ncurses", .{});
+-    if (use_system_ncurses) {
+-        t.linkSystemLibrary("ncursesw", .{});
+-    } else ncurses: {
+-        const ncurses_dep = b.lazyDependency("ncurses", .{}) orelse break :ncurses;
+-
+-        const ncurses = buildNcurses(b, ncurses_dep, target.result, pie);
+-        t.run.step.dependOn(&ncurses.step.step);
+-        t.addIncludePath(ncurses.inst_dir.path(b, "include/ncursesw"));
+-        t.addIncludePath(ncurses.inst_dir.path(b, "include"));
+-        t.mod.addObjectFile(ncurses.inst_dir.path(b, "lib/libncursesw.a"));
+-    }
++    c_mod.linkSystemLibrary("ncursesw", .{});
+ 
+-    const use_system_zstd = b.systemIntegrationOption("zstd", .{});
+-    if (use_system_zstd) {
+-        t.linkSystemLibrary("zstd", .{});
+-    } else zstd: {
+-        // These are settings used by release process
+-        // (for tarballs with static binary)
+-        const zstd_dep = b.lazyDependency("zstd", .{
+-            .target = target,
+-            .optimize = optimize,
+-
+-            .linkage = .static,
+-            .strip = strip,
+-            .pie = pie,
+-
+-            .compression = true,
+-            .decompression = true,
+-            .dictbuilder = false,
+-            .minify = true,
+-            .@"exclude-compressors-dfast-and-up" = true,
+-        }) orelse break :zstd;
+-        const zstd_lib = zstd_dep.artifact("zstd");
+-        t.addIncludePath(zstd_lib.getEmittedIncludeTree());
+-        t.mod.linkLibrary(zstd_lib);
+-    }
++    c_mod.linkSystemLibrary("zstd", .{});
+ 
+     const main_mod = b.createModule(.{
+         .root_source_file = b.path("src/main.zig"),
+@@ -66,7 +29,7 @@ pub fn build(b: *std.Build) void {
+         .strip = strip,
+         .link_libc = true,
+         .imports = &.{
+-            .{ .name = "c", .module = t.mod },
++            .{ .name = "c", .module = c_mod },
+         },
+     });
+ 
+diff --git a/build.zig.zon b/build.zig.zon
+--- a/build.zig.zon
++++ b/build.zig.zon
+@@ -11,22 +11,6 @@
+ 
+     .name = .ncdu,
+     .version = "2.10.0",
+-    .dependencies = .{
+-        .translate_c = .{
+-            .url = "https://codeberg.org/ziglang/translate-c/archive/1.0.0.tar.gz",
+-            .hash = "translate_c-1.0.0-Q_BUWo75BgBmrtWsRz9QVUZlzvsSUUe_IIXD9vmWguhX",
+-        },
+-        .zstd = .{
+-            .url = "https://github.com/allyourcodebase/zstd/archive/refs/tags/1.5.7-2.tar.gz",
+-            .hash = "zstd-1.5.7-2-KEItkAMwAADNhCbGaImKrjXjnSA51jcqEbGCA3RasVZ9",
+-            .lazy = true,
+-        },
+-        .ncurses = .{
+-            .url = "https://ftp.gnu.org/gnu/ncurses/ncurses-6.5.tar.gz",
+-            .hash = "N-V-__8AAMZOFwGYoq9VA4jW9LOy4Ud9bufE7x2ep88NNqFr",
+-            .lazy = true,
+-        },
+-    },
+     .paths = .{
+         "LICENSES/MIT.txt",
+         // "LICENSES/CC0-1.0.txt" not included, because files with this license

diff --git a/ncdu.spec b/ncdu.spec
index 9436d5e..b9b6a2e 100644
--- a/ncdu.spec
+++ b/ncdu.spec
@@ -1,15 +1,14 @@
 Name:           ncdu
-Version:        2.9.2
-Release:        2%{?dist}
+Version:        2.10.0
+Release:        1%{?dist}
 Summary:        Text-based disk usage viewer
 
 License:        MIT
-URL:            https://dev.yorhel.nl/ncdu/
-Source0:        https://dev.yorhel.nl/download/ncdu-%{version}.tar.gz
-Source1:        https://dev.yorhel.nl/download/ncdu-%{version}.tar.gz.asc
-Source2:        https://yorhel.nl/key.asc
+URL:            https://github.com/BratishkaErik/ncdu
+Source0:        https://github.com/BratishkaErik/ncdu/releases/download/v%{version}/ncdu-%{version}.tar.gz
 
 Patch0:         ncdu-allow-shlib-undefined.patch
+Patch1:         ncdu-translate-c.patch
 
 ExclusiveArch:  %{zig_arches}
 
@@ -25,12 +24,11 @@ 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.
 
 %prep
-%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
-%setup -q -n ncdu-%{version}
-%patch -P0 -p1
+%autosetup -n ncdu-%{version} -p1
 
 %build
 %zig_prep
+%__zig translate-c src/c.h -lc -lncurses > src/c.zig
 %zig_build -Dpie
 
 %install
@@ -44,6 +42,9 @@ and provides a fast way to see what directories are using your disk space.
 %{_bindir}/ncdu
 
 %changelog
+* Thu Jun 25 2026 Richard Fearn <richardfearn@gmail.com> - 2.10.0-1
+- Update to 2.10.0 from new upstream (#2487467)
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

diff --git a/sources b/sources
index 9babd4c..00ba33c 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-SHA512 (ncdu-2.9.2.tar.gz) = 57fc6f5d2d5d7bf18b9201c4be07c88dbf5998929678a13f276e775db44740173bf03d5ab3c062492016af741074e0304e7df8a3eb05e8d68ff17aa4ff0724a8
-SHA512 (ncdu-2.9.2.tar.gz.asc) = d0e6723d66470d99a748c28888045597e0969a4d664a5a48eb9ebb4de32cc7f8638447ce5168523f152709f4d8b89003bdaa20d275b456887c5eb97011633e13
+SHA512 (ncdu-2.10.0.tar.gz) = ac31728459478310c39e152f5d34f093a8a0f661c83fa9535b84bff5e97e3cc1c388d4eee8005973538b032d194a10f2cce0a90395f8dd3a33474d31a26cad15

                 reply	other threads:[~2026-06-27 20:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178259344187.1.1135724234320447698.rpms-ncdu-cb734548284e@fedoraproject.org \
    --to=richardfearn@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox