1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00
Commit graph

1737 commits

Author SHA1 Message Date
Daniel Hofstetter
931d388664
Merge pull request #8306 from uutils/renovate/notify-8.x
chore(deps): update rust crate notify to v8.1.0
2025-07-03 17:27:29 +02:00
Daniel Hofstetter
faa2dfada8
Merge pull request #8056 from nyurik/udeps
chore: remove unused dependencies
2025-07-03 16:53:17 +02:00
renovate[bot]
aa64151dc0
chore(deps): update rust crate notify to v8.1.0 2025-07-03 14:30:16 +00:00
Yuri Astrakhan
4fa9af4953 chore: cleanup unused dependencies 2025-07-02 19:47:23 -04:00
renovate[bot]
b454bcf918
chore(deps): update rust crate rust-ini to v0.21.2 2025-07-02 19:44:30 +00:00
Sylvestre Ledru
0923b92921
Merge pull request #8289 from cakebaker/bump_linux_raw_sys
Bump `linux-raw-sys`
2025-07-02 10:12:48 +02:00
renovate[bot]
2032a63889
chore(deps): update rust crate indicatif to v0.17.12 2025-06-30 18:42:36 +00:00
Daniel Hofstetter
ff1a211c6a Bump linux-raw-sys from 0.9 to 0.10 2025-06-30 15:28:55 +02:00
Sylvestre Ledru
3f0b87e319 l10n: port stat for translation + use thiserror + add french 2025-06-28 21:36:18 +02:00
renovate[bot]
71cf24c8d2
chore(deps): update rust crate xattr to v1.5.1 2025-06-25 14:35:47 +00:00
Daniel Hofstetter
64f308a35b
Merge pull request #8245 from sylvestre/l10n-chmod-2
l10n: port chmod for translation + add french
2025-06-25 09:30:58 +02:00
Sylvestre Ledru
2b5dfe612c
Merge pull request #8179 from RenjiSann/locale-aware-quoting
i18n: Locale-aware quoting
2025-06-25 08:39:19 +02:00
Dorian Peron
231b0e5c59 uucore: retrieve the Locale encoding from env variables 2025-06-25 00:47:51 +02:00
Sylvestre Ledru
d8ba6c01e4 l10n: port chmod for translation + add french 2025-06-25 00:16:11 +02:00
Sylvestre Ledru
e79bc8790b l10n: port rm for translation + add french 2025-06-25 00:02:36 +02:00
Sylvestre Ledru
ebc4fbcaf2 l10n: port fmt for translation + use thiserror + add french 2025-06-23 21:09:19 +02:00
Daniel Hofstetter
b084badc70
Merge pull request #8254 from sylvestre/l10n-stdbuf
l10n: port stdbuf for translation + add french
2025-06-23 10:44:03 +02:00
renovate[bot]
7d2fc68889
chore(deps): update rust crate zip to v4.2.0 2025-06-23 06:59:11 +00:00
Sylvestre Ledru
564daa89c8 l10n: port stdbuf for translation + add french 2025-06-22 23:29:59 +02:00
Daniel Hofstetter
9fb8cd2e50 Bump phf & phf_codegen from 0.11.2 to 0.12.1 2025-06-20 17:07:57 +02:00
Daniel Hofstetter
dcbb5936eb Bump selinux crates
selinux from 0.5.1 to 0.5.2, selinux-sys from 0.6.14 to 0.6.15
2025-06-19 10:25:31 +02:00
renovate[bot]
af90dd4b16
fix(deps): update rust crate libc to v0.2.174 2025-06-17 20:48:17 +00:00
renovate[bot]
511dd97547
chore(deps): update rust crate zip to v4.1.0 2025-06-15 06:13:59 +00:00
Daniel Hofstetter
0a1a36d900
Merge pull request #8166 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.173
2025-06-14 08:00:19 +02:00
renovate[bot]
a50270a5c8
fix(deps): update rust crate libc to v0.2.173 2025-06-13 19:29:29 +00:00
renovate[bot]
911a197829
chore(deps): update rust crate jiff to v0.2.15 2025-06-13 19:29:21 +00:00
renovate[bot]
7a100c9a5e
chore(deps): update rust crate windows-sys to v0.60.2 2025-06-12 20:47:39 +00:00
Daniel Hofstetter
3eb1cece30 Bump windows-sys from 0.59.0 to 0.60.1 2025-06-12 11:09:39 +02:00
renovate[bot]
95a6fcb578
chore(deps): update rust crate memchr to v2.7.5 2025-06-11 16:10:31 +00:00
Daniel Hofstetter
7e4877fb30
Merge pull request #8137 from uutils/renovate/unicode-width-0.x-lockfile
chore(deps): update rust crate unicode-width to v0.2.1
2025-06-10 08:54:49 +02:00
Sylvestre Ledru
de7b1469f7
Merge pull request #8133 from uutils/renovate/clap_mangen-0.x-lockfile
chore(deps): update rust crate clap_mangen to v0.2.27
2025-06-10 07:58:32 +02:00
Sylvestre Ledru
355af9f15a
Merge pull request #8132 from uutils/renovate/clap_complete-4.x-lockfile
chore(deps): update rust crate clap_complete to v4.5.54
2025-06-10 07:58:24 +02:00
Sylvestre Ledru
a9046788f0
Merge pull request #8129 from uutils/renovate/clap-4.x-lockfile
chore(deps): update rust crate clap to v4.5.40
2025-06-10 07:58:10 +02:00
renovate[bot]
2c01bc47eb
chore(deps): update rust crate unicode-width to v0.2.1 2025-06-10 01:40:18 +00:00
renovate[bot]
a606a52817
chore(deps): update rust crate clap_mangen to v0.2.27 2025-06-09 20:07:42 +00:00
renovate[bot]
e7407bc0c3
chore(deps): update rust crate clap_complete to v4.5.54 2025-06-09 20:07:35 +00:00
renovate[bot]
3d0adec219
chore(deps): update rust crate clap_complete to v4.5.53 2025-06-09 18:53:50 +00:00
renovate[bot]
61b1f95c75
chore(deps): update rust crate clap to v4.5.40 2025-06-09 18:53:43 +00:00
Sylvestre Ledru
09bb35e11e test: move to thiserror 2025-06-09 11:00:37 +02:00
renovate[bot]
6c1a85bb32
chore(deps): update rust crate smallvec to v1.15.1 2025-06-06 23:55:32 +00:00
Yuri Astrakhan
60c55d7c07
chore: cleanup workspace crates (#8058)
* chore: cleanup workspace crates

* properly add all crates to the workspace cargo.toml as members
  * except `fuzz` because it still has some issues, TBD
* use quotes around `true` and `false` to ensure there is no bool confusion
* remove a few leftover readme comments
* mark all unpublishable crates as `publish = false` to avoid accidental publishing
* Add `uutests` to the main workspace

* grammar

* a bit more cleanup based on feedback

* revert true/false

* Update tests/benches/factor dependencies
2025-06-06 13:56:08 +02:00
Teemu Pätsi
4d40671d79
cat: Fix reporting "input file is output file" error when outputting to an input file (#8025)
* cat: Check if a file can be overwritten safely in Unix

* cat: Check if a file can be overwritten safely in Windows

* cat: Test writing read-write file that is input and output

* cat: Unit test `is_appending` function

* cat: Unit test `is_unsafe_overwrite` function

* cat: Comment why a few function calls could return Err

* cat: Remove obvious comments from test
2025-06-06 12:01:31 +02:00
Sylvestre Ledru
9e21259e2d
Merge pull request #8062 from drinkcat/sort-float
sort: Make use of ExtendedBigDecimal in -g sorting, then attempt to recover some performance
2025-06-06 12:01:04 +02:00
Sylvestre Ledru
a36d5455ab l10n: improve the display when the ftl is invalid 2025-06-04 19:24:03 +02:00
Nicolas Boichat
8426c1480c sort: Make use of ExtendedBigDecimal in -g sorting
This provides better precision than f64, which we need.

Fixed #8031.
2025-06-03 19:54:21 +02:00
Daniel Hofstetter
040532a027
Merge pull request #8051 from uutils/renovate/bytecount-0.x-lockfile
chore(deps): update rust crate bytecount to v0.6.9
2025-06-03 10:49:41 +02:00
Vikram Kangotra
bfbdd5275d
cp: migrate from quick-error to thiserror (#7989)
* cp: migrate from quick-error to thiserror

fixes: #7916

* Remove quick-error

Now that we have migrated to thiserror, we can remove quick-error

* cp: fix test failures

* cp: fix fmt error
2025-06-03 10:12:36 +02:00
renovate[bot]
0c9f2f11f4
chore(deps): update rust crate bytecount to v0.6.9 2025-06-03 08:04:43 +00:00
Daniel Hofstetter
f002c4017f
Merge pull request #8042 from uutils/renovate/jiff-0.x-lockfile
chore(deps): update rust crate jiff to v0.2.14
2025-06-02 14:28:53 +02:00
Etienne Cordonnier
35634b46a0 stdbuf: fix cross-compilation
Summary:

Partial fix for https://github.com/uutils/coreutils/issues/6591

The current code declare libstdbuf as a build-dependency of stdbuf as a
workaround to enforce that libstdbuf is compiled before stdbuf. This breaks
cross-compilation, because build-dependencies were compiled for the host
architecture, and not for the target architecture.

The reason this workaround is necessary is that bindeps is available only in nightly at the moment:
https://rust-lang.github.io/rfcs/3028-cargo-binary-dependencies.html

This commit replaces the "build-dependency" workaround with another workaround:
calling cargo manually to build libstdbuf in the build.rs of stdbuf, in order to ensure that libstdbuf is built before stdbuf.

Changes:

- Removed cpp/cpp_build dependencies:

The cpp, cpp_build, and related dependencies were removed because they made cross-compilation in a build.rs file very complex, since you need
to pass proper CXX env variables for cross-compilation, whereas cross-compiling rust code using cargo is quite simple.
Provided Rust implementations for getting stdin, stdout, and stderr pointers.
Switched from C++/cpp macro-based initialization to using the Rust ctor crate for library initialization.

- Remove "feat_require_crate_cpp" which is not needed any more, since stdbuf was the only utility using the cpp crate.

Tests:

This commit fixes e.g. this test:
cross test --target aarch64-unknown-linux-gnu --features stdbuf test_stdbuf::test_libstdbuf_preload -- --nocapture

- The "i686" build of stdbuf was also broken (stdbuf 32 bits, but libstdbuf 64 bits) and test_stdbuf::test_libstdbuf_preload of the i686 builds in github CI serves as regression
test for this issue, no need to add a cross-rs test for aarch64.
- The x86_64 musl build of stdbuf was also broken and was passing tests in CI only because it was compiled with the wrong libc (glibc instead of musl)

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-06-02 10:55:57 +02:00