From c40d1b6656a6842a22e47f350dd260e07e7bd8eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 15 Dec 2023 19:58:27 +0100 Subject: [PATCH] dua-cli: update to 2.23.0. --- ...yData-size-test-passes-on-32-bit-197.patch | 33 +++++++++++++++++++ srcpkgs/dua-cli/template | 4 +-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/dua-cli/patches/0001-fix-EntryData-size-test-passes-on-32-bit-197.patch diff --git a/srcpkgs/dua-cli/patches/0001-fix-EntryData-size-test-passes-on-32-bit-197.patch b/srcpkgs/dua-cli/patches/0001-fix-EntryData-size-test-passes-on-32-bit-197.patch new file mode 100644 index 0000000000000..9a7154e097522 --- /dev/null +++ b/srcpkgs/dua-cli/patches/0001-fix-EntryData-size-test-passes-on-32-bit-197.patch @@ -0,0 +1,33 @@ +From 392e808ebae97faecdaadf044c7ebd112b82cc94 Mon Sep 17 00:00:00 2001 +From: cinerea0 +Date: Mon, 11 Dec 2023 14:51:53 -0500 +Subject: [PATCH] fix: EntryData size test passes on 32-bit (#197) + +EntryData doesn't need to be exactly 80 to test memory consumption, just +less than it. +--- + src/traverse.rs | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/traverse.rs b/src/traverse.rs +index 157ce2c..b2c8724 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::() + ); + } + } +-- +2.43.0 + 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