public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-eza] f44: 0.23.5
@ 2026-08-09 19:16 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-09 19:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-eza
Branch : f44
Commit : e4424f937a7718a0d512cf7da49c760c643a0599
Author : Terje Røsten <terjeros@gmail.com>
Date   : 2026-08-09T19:51:25+02:00
Stats  : +141/-61 in 9 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-eza/c/e4424f937a7718a0d512cf7da49c760c643a0599?branch=f44

Log:
0.23.5

---
diff --git a/.gitignore b/.gitignore
index 0801688..287596e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /eza-0.18.11.crate
 /eza-0.19.3.crate
 /eza-0.23.4.crate
+/eza-0.23.5.crate

diff --git a/eza-div-zero.patch b/eza-div-zero.patch
new file mode 100644
index 0000000..eff152b
--- /dev/null
+++ b/eza-div-zero.patch
@@ -0,0 +1,19 @@
+commit 942678c6c330493f06e7416ab2e2008f166a47fb
+Author: MeGaurav4 <gauravyadavwork07@gmail.com>
+Date:   Wed Jul 29 20:34:43 2026 +0530
+
+    fix: cap --width to prevent div-by-zero on huge values
+
+diff --git a/src/options/view.rs b/src/options/view.rs
+index 30dd3286..6ec8a9fe 100644
+--- a/src/options/view.rs
++++ b/src/options/view.rs
+@@ -198,7 +198,7 @@ impl details::Options {
+ impl TerminalWidth {
+     fn deduce<V: Vars>(matches: &ArgMatches, vars: &V) -> Result<Self, OptionsError> {
+         if let Some(&width) = matches.get_one("width") {
+-            if width >= 1 {
++            if width >= 1 && width <= usize::MAX / 2 {
+                 Ok(Set(width))
+             } else {
+                 Ok(Automatic)

diff --git a/eza-fix-metadata-auto.diff b/eza-fix-metadata-auto.diff
index dea3deb..2745f46 100644
--- a/eza-fix-metadata-auto.diff
+++ b/eza-fix-metadata-auto.diff
@@ -1,11 +1,11 @@
---- eza-0.23.4/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ eza-0.23.4/Cargo.toml	2026-04-14T16:59:42.403012+00:00
-@@ -225,12 +225,6 @@
+--- eza-0.23.5/Cargo.toml	1970-01-01T00:00:01+00:00
++++ eza-0.23.5/Cargo.toml	2026-08-09T16:23:31.501750+00:00
+@@ -226,13 +226,6 @@
  [target.'cfg(target_os = "linux")'.dependencies.proc-mounts]
  version = "0.3"
  
 -[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
--version = "0.60.2"
+-version = "0.61.2"
 -features = [
 -    "Win32_System_Console",
 -    "Win32_Foundation",
@@ -13,4 +13,9 @@
 -
  [target."cfg(unix)".dependencies.uzers]
  version = "0.12.1"
+ 
+@@ -242,3 +235,4 @@
+ codegen-units = 1
+ panic = "abort"
+ strip = true
 +

diff --git a/eza-fix-metadata-unicode-width.diff b/eza-fix-metadata-unicode-width.diff
deleted file mode 100644
index 8e1bb60..0000000
--- a/eza-fix-metadata-unicode-width.diff
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/Cargo.toml b/Cargo.toml
-index 892464d..0627e6b 100644
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -195,7 +195,7 @@ version = "0.4.2"
- default-features = false
-
- [dependencies.unicode-width]
--version = "0.2"
-+version = ">=0.1,<0.3"
-
- [dependencies.uutils_term_grid]
- version = ">=0.6.0,<0.8"

diff --git a/eza-fix-metadata.diff b/eza-fix-metadata.diff
index a902a96..03fa253 100644
--- a/eza-fix-metadata.diff
+++ b/eza-fix-metadata.diff
@@ -1,5 +1,5 @@
---- eza-0.23.4/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ eza-0.23.4/Cargo.toml	2026-04-14T16:59:42.404026+00:00
+--- eza-0.23.5/Cargo.toml	1970-01-01T00:00:01+00:00
++++ eza-0.23.5/Cargo.toml	2026-08-09T16:23:31.502729+00:00
 @@ -17,10 +17,15 @@
  authors = ["Christina Sørensen <christina@cafkafk.com>"]
  build = "build.rs"
@@ -16,66 +16,56 @@
      "/.config/",
      "/.github/",
      "/deb.asc",
-@@ -109,11 +114,6 @@
+@@ -98,12 +103,6 @@
+ [features]
+ default = ["git"]
+ git = ["git2"]
+-nix = []
+-nix-generated = []
+-nix-local = []
+-powertest = []
+-vendored-libgit2 = ["git2/vendored-libgit2"]
+-vendored-openssl = ["git2/vendored-openssl"]
+ 
+ [lib]
+ name = "eza"
+@@ -112,11 +111,6 @@
+ [[bin]]
  name = "eza"
  path = "src/main.rs"
- 
+-
 -[[bench]]
 -name = "my_benchmark"
 -path = "benches/my_benchmark.rs"
 -harness = false
--
+ 
  [dependencies.ansi-width]
  version = "0.1.0"
+@@ -199,24 +193,17 @@
+ version = "0.4.2"
  
-@@ -159,7 +159,7 @@
- version = "0.4"
- 
- [dependencies.palette]
--version = "0.7.6"
-+version = "0.7.5"
- features = ["std"]
- default-features = false
- 
-@@ -170,7 +170,7 @@
- version = "2.3.1"
- 
- [dependencies.phf]
--version = "0.12.1"
-+version = "0.13.1"
- features = ["macros"]
- 
- [dependencies.plist]
-@@ -195,17 +195,10 @@
+ [dependencies.timeago]
+-version = "0.6.0"
++version = "0.4.2"
  default-features = false
  
  [dependencies.unicode-width]
 -version = "0.2"
 +version = ">=0.1,<0.3"
  
+ [dependencies.unit-prefix]
+ version = "0.5.2"
+ 
  [dependencies.uutils_term_grid]
 -version = "0.7.0"
 -
 -[dev-dependencies.criterion]
--version = "0.5.1"
+-version = "0.8.2"
 -features = ["html_reports"]
 -
 -[dev-dependencies.trycmd]
--version = "0.15"
+-version = "1.0"
 +version = ">=0.6.0,<0.8"
  
  [build-dependencies.chrono]
  version = "0.4.40"
-@@ -215,12 +208,6 @@
- [features]
- default = ["git"]
- git = ["git2"]
--nix = []
--nix-generated = []
--nix-local = []
--powertest = []
--vendored-libgit2 = ["git2/vendored-libgit2"]
--vendored-openssl = ["git2/vendored-openssl"]
- 
- [target.'cfg(target_os = "linux")'.dependencies.proc-mounts]
- version = "0.3"

diff --git a/eza-time-opt.patch b/eza-time-opt.patch
new file mode 100644
index 0000000..ad42f42
--- /dev/null
+++ b/eza-time-opt.patch
@@ -0,0 +1,75 @@
+commit f32f5acf25e7c318f2ac605f94cf6bfc29853ede
+Author: art22s <44128645+art22s@users.noreply.github.com>
+Date:   Sat Aug 8 10:30:26 2026 -0400
+
+    fix(cli): make -t/--time field argument optional, default to modified
+    
+    The -t/--time flag previously required a FIELD argument, which meant
+    shell glob expansion like 'eza -t *.md' would silently consume the
+    first file as the field value. This is a significant footgun for anyone
+    aliasing ls to eza.
+    
+    This change makes the FIELD argument optional. When omitted, -t
+    defaults to 'modified' (the existing default field), matching the
+    behavior of 'eza -t modified'.
+    
+    This is a breaking change since -t previously required a field argument.
+    
+    Fixes #1740
+
+diff --git a/CHANGELOG.md b/CHANGELOG.md
+index 1c71b91a..76d07654 100644
+--- a/CHANGELOG.md
++++ b/CHANGELOG.md
+@@ -6,6 +6,14 @@ SPDX-License-Identifier: EUPL-1.2
+ -->
+ # Changelog
+ 
++## [Unreleased]
++
++### Breaking Changes
++
++- `-t`/`--time` field argument is now optional: when omitted, defaults to `modified` (#1740)
++
++### Bug Fixes
++
+ ## [0.23.5] - 2026-07-09
+ 
+ ### Bug Fixes
+diff --git a/src/options/parser.rs b/src/options/parser.rs
+index 5e8ba7da..5b2fe4b6 100644
+--- a/src/options/parser.rs
++++ b/src/options/parser.rs
+@@ -140,7 +140,9 @@ pub fn get_command() -> clap::Command {
+         .arg(arg!(-g --group "list each file's group"))
+         .arg(arg!(--"smart-group" "only show group if it has a different name from owner"))
+         .arg(arg!(-n --numeric "show user and group as their numeric IDs"))
+-        .arg(arg!(-t --time <FIELD>).help(format!("which timestamp field to show {TIME_FIELDS_HELP}"))
++        .arg(arg!(-t --time [FIELD]).help(format!("which timestamp field to show {TIME_FIELDS_HELP}"))
++            .num_args(0..=1)
++            .default_missing_value("modified")
+             .value_parser(value_parser!(TimeArgs))
+             .conflicts_with_all(["modified", "accessed", "changed", "created"])
+             .hide_possible_values(true))
+diff --git a/src/options/view.rs b/src/options/view.rs
+index 30dd3286..da3ff183 100644
+--- a/src/options/view.rs
++++ b/src/options/view.rs
+@@ -582,6 +582,17 @@ mod tests {
+         );
+     }
+ 
++    #[test]
++    fn deduce_time_types_short_flag_defaults_to_modified() {
++        assert_eq!(
++            TimeTypes::deduce(&mock_cli(vec!["-t"])),
++            Ok(TimeTypes {
++                modified: true,
++                ..TimeTypes::default()
++            })
++        );
++    }
++
+     #[test]
+     fn deduce_time_types_modified_word() {
+         assert_eq!(

diff --git a/rust-eza.spec b/rust-eza.spec
index 2689834..af76bfb 100644
--- a/rust-eza.spec
+++ b/rust-eza.spec
@@ -4,7 +4,7 @@
 %global crate eza
 
 Name:           rust-eza
-Version:        0.23.4
+Version:        0.23.5
 Release:        %autorelease
 Summary:        Modern replacement for ls
 
@@ -14,7 +14,7 @@ Source:         %{crates_source}
 # Automatically generated patch to strip dependencies and normalize metadata
 Patch:          eza-fix-metadata-auto.diff
 # Manually created patch for downstream crate metadata changes
-# * temporarily downgrade palette dependency from 0.7.6 to 0.7.5
+# * temporarily downgrade timeago dependency from 0.6.0 to 0.4.2
 # * temporarily downgrade uutils_term_grid dependency from 0.7.0 to 0.6.0
 # * temporarily downgrade unicode-width dependency from 0.2.0 to 0.1.0
 # * temporarily increase palette dependency from 0.12.1 to 0.13.1
@@ -25,7 +25,10 @@ Patch:          eza-fix-metadata-auto.diff
 # * drop features that are specific to powertest
 # * exclude files that are only useful for upstream development
 Patch:          eza-fix-metadata.diff
-
+# https://github.com/eza-community/eza/pull/1903
+Patch:          eza-time-opt.patch
+# https://github.com/eza-community/eza/pull/1896
+Patch:          eza-div-zero.patch
 BuildRequires:  cargo-rpm-macros >= 24
 BuildRequires:  pandoc-cli
 BuildRequires:  rust-git2-devel

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 927aedd..d3dbdd2 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,6 +1,6 @@
 [package]
 cargo-toml-patch-comments = [
-    "temporarily downgrade palette dependency from 0.7.6 to 0.7.5",
+    "temporarily downgrade timeago dependency from 0.6.0 to 0.4.2",
     "temporarily downgrade uutils_term_grid dependency from 0.7.0 to 0.6.0",
     "temporarily downgrade unicode-width dependency from 0.2.0 to 0.1.0",
     "temporarily increase palette dependency from 0.12.1 to 0.13.1",

diff --git a/sources b/sources
index 46d9694..70aed7c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (eza-0.23.4.crate) = 6c9f84d388090d4fe4125da962fc9a7795de27cb98f467f6fbd215e49daf9dde9a3ef0ba7b0bddfe13100169472abc1b0fb67e434ea5b8ffbd8df3ae84188f5d
+SHA512 (eza-0.23.5.crate) = d51b5d7bd9139aae1b93f1403290dbf44be3f21665ae87d16d68c6b34627b6affb28c8ba5467b2d8dd822ed0dcd072f2abe3025fb5688ec770306d72dc8456d2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-09 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-09 19:16 [rpms/rust-eza] f44: 0.23.5 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox