From 4243a274b0dd75d6f067720cd8310f156a46a738 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Mon, 11 Dec 2023 14:21:23 -0500 Subject: [PATCH] dua-cli: update to 2.23.0 --- srcpkgs/dua-cli/patches/fix-32bit-test.patch | 19 +++++++++++++++++++ srcpkgs/dua-cli/template | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/dua-cli/patches/fix-32bit-test.patch diff --git a/srcpkgs/dua-cli/patches/fix-32bit-test.patch b/srcpkgs/dua-cli/patches/fix-32bit-test.patch new file mode 100644 index 0000000000000..925fdc2eb9aa9 --- /dev/null +++ b/srcpkgs/dua-cli/patches/fix-32bit-test.patch @@ -0,0 +1,19 @@ +diff --git a/src/traverse.rs b/src/traverse.rs +index 157ce2c3a60..b2c87249dd0 100644 +--- a/src/traverse.rs ++++ b/src/traverse.rs +@@ -312,10 +312,10 @@ mod tests { + + #[test] + fn size_of_entry_data() { +- assert_eq!( +- std::mem::size_of::(), +- 80, +- "the size of this should not change unexpectedly as it affects overall memory consumption" ++ assert!( ++ std::mem::size_of::() <= 80, ++ "the size of this ({}) should not exceed 80 as it affects overall memory consumption", ++ std::mem::size_of::() + ); + } + } diff --git a/srcpkgs/dua-cli/template b/srcpkgs/dua-cli/template index 327aa1247a183..1be4fd8325d4c 100644 --- a/srcpkgs/dua-cli/template +++ b/srcpkgs/dua-cli/template @@ -1,6 +1,6 @@ # Template file for 'dua-cli' pkgname=dua-cli -version=2.20.3 +version=2.23.0 revision=1 build_style=cargo short_desc="Tool to conveniently learn about the disk usage of directories" @@ -9,7 +9,7 @@ license="MIT" homepage="https://github.com/Byron/dua-cli" changelog="https://raw.githubusercontent.com/Byron/dua-cli/main/CHANGELOG.md" distfiles="https://github.com/Byron/dua-cli/archive/refs/tags/v${version}.tar.gz" -checksum=b526c8c43853943f025ba36bf7297fbd9b1beb395ad92e70c41fed7d8d584be7 +checksum=61f6fd0c13949d23224d9776c2fd444956d73dd363501e867cf11df6ca89ddfa post_install() { vlicense LICENSE