pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/dua-cli



Module Name:    pkgsrc
Committed By:   pin
Date:           Thu Jul 30 21:24:10 UTC 2026

Modified Files:
        pkgsrc/sysutils/dua-cli: Makefile cargo-depends.mk distinfo

Log Message:
sysutils/dua-cli: update to 2.39.1

v2.39.1
This release is merely to allow attestations to be used, and you should be able to validate the binary origin with:

    gh attestation verify ./dua-v2.39.1-aarch64-apple-darwin.tar.gz --repo Byron/dua-cli

v2.39.0
The main feature this release is parallel deletion, both for collecting files to be deleted as well as the deletion itself. On my local disk, it now reaches 144k files/s overall deletion performance.
New Features

    delete files in parallel
    Recursive deletion now uses the same worker count selected with --threads for
    the initial filesystem scan, to accelerate the collection of files to be deleted,
    as well as the deletion of files.

    When marked directories are deleted, dua now:
        walks the selected tree without (following symbolic links as usual)
        collects regular files and symbolic links;
        removes those entries across the configured workers;
        removes directories from deepest to shallowest after their contents are gone on a single thread.

    A value of 1 keeps deletion effectively serial. Larger values allow
    independent file removals to overlap, which is most useful for large directory
    trees or filesystems with concurrent metadata operations.

Bug Fixes

    open errors and cleanup/gitignored footer labels

Refactor

    use jwalk for parallel, symlink-safe deletion
    Replace the hand-rolled stack traversal in delete_directory_recursively
    with a jwalk WalkDir (follow_links=false, skip_hidden=false). This is
    the same walker the rest of dua uses for scanning, so deletion now
    benefits from parallel traversal on multi-core machines.

    Behaviour preserved:
        Symlinks are removed without following them (remove_file on the link).
        Directories are removed deepest-first so each remove_dir sees an
        empty directory.
        Error counting and byte accounting unchanged.

    Adds unit tests covering: single file, nested tree, symlink safety,
    and missing-path error reporting.

Test

    Make traversal tree tests filesystem-independent
    That way, tests will work locally.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 pkgsrc/sysutils/dua-cli/Makefile \
    pkgsrc/sysutils/dua-cli/distinfo
cvs rdiff -u -r1.38 -r1.39 pkgsrc/sysutils/dua-cli/cargo-depends.mk

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

Modified files:

Index: pkgsrc/sysutils/dua-cli/Makefile
diff -u pkgsrc/sysutils/dua-cli/Makefile:1.51 pkgsrc/sysutils/dua-cli/Makefile:1.52
--- pkgsrc/sysutils/dua-cli/Makefile:1.51       Mon Jul 20 13:05:16 2026
+++ pkgsrc/sysutils/dua-cli/Makefile    Thu Jul 30 21:24:09 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.51 2026/07/20 13:05:16 pin Exp $
+# $NetBSD: Makefile,v 1.52 2026/07/30 21:24:09 pin Exp $
 
-DISTNAME=      dua-cli-2.38.1
+DISTNAME=      dua-cli-2.39.1
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=Byron/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -12,9 +12,9 @@ LICENSE=      mit
 
 .include "cargo-depends.mk"
 
-#RUST_REQ=     1.97.0-beta.4
+#RUST_REQ=     1.98.0-beta.5
 #Upstream does not state the required MSRV.
-#This package is confirmed to build with Rust 1.97.0-beta.4 on amd64
+#This package is confirmed to build with Rust 1.98.0-beta.5 on amd64
 
 INSTALLATION_DIRS=     bin
 
Index: pkgsrc/sysutils/dua-cli/distinfo
diff -u pkgsrc/sysutils/dua-cli/distinfo:1.51 pkgsrc/sysutils/dua-cli/distinfo:1.52
--- pkgsrc/sysutils/dua-cli/distinfo:1.51       Mon Jul 20 13:05:16 2026
+++ pkgsrc/sysutils/dua-cli/distinfo    Thu Jul 30 21:24:09 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.51 2026/07/20 13:05:16 pin Exp $
+$NetBSD: distinfo,v 1.52 2026/07/30 21:24:09 pin Exp $
 
 BLAKE2s (addr2line-0.25.1.crate) = cc5c422ec48ccef5c2c46379d2f600644609490afafea5020f2020815d1146e6
 SHA512 (addr2line-0.25.1.crate) = c400f3b6ccaff8a1c0d7d82c708a1784b8fd5ba64b6e420e85819d59b1cadb55fa59c852925093b921469f272d1d5140cf12f013ae75d1e1bc85021097df8fc2
@@ -162,9 +162,9 @@ Size (dirs-6.0.0.crate) = 14190 bytes
 BLAKE2s (dirs-sys-0.5.0.crate) = 1a5da6fa801a3e637f337f7c4a46854899b08a5fa8ea2b5864edaa713b7cbf58
 SHA512 (dirs-sys-0.5.0.crate) = c2ca362ad04e92c929e2cea4db359de689e512b7c76246c408f40d10f1d47c5dbbd49238e67edc0a251bd642ee292cae88992e5755035c632baec36cd77c10b2
 Size (dirs-sys-0.5.0.crate) = 10157 bytes
-BLAKE2s (dua-cli-2.38.1.tar.gz) = 142bb7cd2cdce7d58d0cbb2e7553d10b8817351905047e8b8abbb29aec3db07c
-SHA512 (dua-cli-2.38.1.tar.gz) = 7973ba0beeffffba617a8a0fa9034932d8eecab5ef88fd44ae203746f28e82774eb396232b9f94739267218f81ee7e7a7311325aa5f0950e5c6f92b520d17e81
-Size (dua-cli-2.38.1.tar.gz) = 185485 bytes
+BLAKE2s (dua-cli-2.39.1.tar.gz) = e3c0f10e4e180a1951c48a7cdf3dd53283ec58ce62880c939071911f960b518a
+SHA512 (dua-cli-2.39.1.tar.gz) = f381a8e586f32d99a48b41ceb3d07df830a54dd0c11d26e4425757986aa3c23f3bf80ecc257f07c9f4ba19aa829d87f2b74c968117b1a6d14ade31cee57c8e2a
+Size (dua-cli-2.39.1.tar.gz) = 188106 bytes
 BLAKE2s (dunce-1.0.5.crate) = 7f72598a5d04e4d5cc63e25fa0c215cf532e09f04b63f92b72f8da1f8118de2f
 SHA512 (dunce-1.0.5.crate) = 36d7d75217d629185a9a9187f7d2e2dc346a28be0ad1c21b1b6bcbe3991e9cd11797e53d745c0b3b5ae94cf1e4cf141cdb2322bab86d97cc258b4145e3b97a56
 Size (dunce-1.0.5.crate) = 8244 bytes

Index: pkgsrc/sysutils/dua-cli/cargo-depends.mk
diff -u pkgsrc/sysutils/dua-cli/cargo-depends.mk:1.38 pkgsrc/sysutils/dua-cli/cargo-depends.mk:1.39
--- pkgsrc/sysutils/dua-cli/cargo-depends.mk:1.38       Fri Jul 17 05:25:07 2026
+++ pkgsrc/sysutils/dua-cli/cargo-depends.mk    Thu Jul 30 21:24:09 2026
@@ -1,4 +1,4 @@
-# $NetBSD: cargo-depends.mk,v 1.38 2026/07/17 05:25:07 pin Exp $
+# $NetBSD: cargo-depends.mk,v 1.39 2026/07/30 21:24:09 pin Exp $
 
 CARGO_CRATE_DEPENDS+=  addr2line-0.25.1
 CARGO_CRATE_DEPENDS+=  adler2-2.0.1



Home | Main Index | Thread Index | Old Index