1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00
Commit graph

828 commits

Author SHA1 Message Date
3ea679a29e
echo: print help if not posixly corrent and only argument is --help 2025-07-12 01:37:07 +03:00
f1436f3949 echo: cleanup 2025-07-08 01:01:27 +02:00
Dorian Péron
5808786642
Merge pull request #8302 from nyurik/map_unwrap_or
chore: cleanup `map_unwrap_or` lint
2025-07-07 23:18:44 +02:00
Dorian Péron
2f16b14d6c
Merge pull request #8303 from nyurik/inefficient_to_string
chore: cleanup `inefficient_to_string` lint
2025-07-07 23:12:33 +02:00
renovate[bot]
13243caa24
chore(deps): update rust crate indicatif to 0.18.0 2025-07-04 12:30:38 +00:00
Yuri Astrakhan
e54d9bd76d chore: cleanup map_unwrap_or lint
Used this command and fixed a few remaining manual ones.

```sh
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --allow-dirty
```
2025-07-04 00:18:31 -04:00
Yuri Astrakhan
db06c64255 chore: cleanup inefficient_to_string lint
Apparently this causes a slowdown per [docs](https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string).

I used this command and fixed a few remaining manual ones.

```sh
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --allow-dirty
```
2025-07-03 23:56:16 -04:00
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
1d39e75b89 chore: a lot of documentation cleanups
Go throgh the `doc_markdown` lint everywhere, fixing code links and some grammar.
2025-07-03 00:05:26 -04:00
Yuri Astrakhan
4fa9af4953 chore: cleanup unused dependencies 2025-07-02 19:47:23 -04:00
Daniel Hofstetter
ff1a211c6a Bump linux-raw-sys from 0.9 to 0.10 2025-06-30 15:28:55 +02:00
Daniel Hofstetter
7ead5121da Cargo.toml/config.toml: format files 2025-06-27 15:11:54 +02:00
Daniel Hofstetter
85952a07a2 Cargo.toml: remove match_on_vec_items lint
it has been removed from clippy
2025-06-27 14:57:40 +02:00
Dorian Peron
231b0e5c59 uucore: retrieve the Locale encoding from env variables 2025-06-25 00:47:51 +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
Sylvestre Ledru
ba1833d39b
Merge pull request #8104 from Ecordonnier/eco/stdbuf-external
stdbuf: add feat_external_libstdbuf
2025-06-18 10:40:05 +02:00
Etienne Cordonnier
99aa51a9a9 stdbuf: add feat_external_stdbuf
Fixes https://github.com/uutils/coreutils/issues/6591

 "feat_external_stdbuf": use an external libstdbuf.so for stdbuf instead of embedding it into
 the stdbuf binary.
 There are 2 use-cases:
 1. Installation of uutils-coreutils using cargo install (e.g. from crates.io
    which supports only "cargo install" as installation method).  In this case,
    installing libstdbuf.so is impossible, because "cargo install" installs
    only binary programs (no cdylib), thus libstdbuf.so must be embedded into
    stdbuf and written to /tmp at runtime.  This is a hack, and may not work
    on some platforms, e.g. because the SELinux permissions may not allow
    stdbuf to write to /tmp, /tmp may be read-only, libstdbuf.so may not work
    at all without SELinux labels, etc.

 2. Installation of uutils-coreutils using an external tool, e.g. dpkg/apt on
    debian. In this case, libstdbuf.so should be installed separately to its
    correct location and the environment variable LIBSTDBUF_PATH configures the
    installation path during the build. E.g. LIBSTDBUF_PATH="/lib/libstdbuf.so"

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-06-13 11:08:00 +02:00
Daniel Hofstetter
3eb1cece30 Bump windows-sys from 0.59.0 to 0.60.1 2025-06-12 11:09:39 +02: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
Sylvestre Ledru
a36d5455ab l10n: improve the display when the ftl is invalid 2025-06-04 19:24:03 +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
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
Daniel Hofstetter
5bbcb4ee63 Cargo.toml: remove procfs dependency 2025-06-02 10:00:49 +02:00
Daniel Hofstetter
dfc2e249ef
Merge pull request #7894 from drinkcat/jiff-date-ls
date/ls: Switch from chrono to jiff
2025-06-02 09:36:27 +02:00
Nicolas Boichat
986bdf545d uucore: Remove custom_tz_fmt, cleanup dependencies
Nobody needs it anymore.
2025-05-29 14:00:25 +02:00
Nicolas Boichat
301e33cfe3 date: switch from chrono to jiff
Also adds cargo dependency.
2025-05-29 14:00:25 +02:00
Daniel Hofstetter
5e92917b6d Cargo.toml: remove unused coz dependency 2025-05-28 19:54:11 +02:00
Sylvestre Ledru
04e7de1546
Merge pull request #7976 from cakebaker/bump_onig
Bump `onig` from `6.4.0` to `6.5.1`
2025-05-25 21:32:41 +02:00
Sylvestre Ledru
7d2644f3a8 move from version 0.0.30 => 0.1.0 2025-05-24 22:28:54 +02:00
Daniel Hofstetter
2a885b8d60 Bump fluent & fluent-bundle
fluent from 0.16.1 to 0.17.0 and fluent-bundle from 0.15.3 to 0.16.0
2025-05-24 14:57:23 +02:00
Daniel Hofstetter
a0cf06ea8c Bump onig from 6.4.0 to 6.5.1 2025-05-24 13:35:55 +02:00
Sylvestre Ledru
5a7c50d64e uucore: add functions to manage translations 2025-05-23 23:37:59 +02:00
Daniel Hofstetter
fd4c315fa3 Bump nix to 0.30.1 and ctrlc to 3.4.7 2025-05-22 16:54:35 +02:00
Daniel Hofstetter
3a05fa92d6
Merge pull request #7908 from sylvestre/selinux-installa
selinux: start the support of install
2025-05-22 15:14:08 +02:00
renovate[bot]
8655e8194d
chore(deps): update rust crate zip to v4 2025-05-22 02:48:34 +00:00
Sylvestre Ledru
38861cc767 selinux: add support for install 2025-05-21 09:51:27 +02:00
Aaron Ang
7692b93ea6 more: constant mem initialization for files and pipes 2025-05-18 21:09:48 +02:00
renovate[bot]
3566f88874
chore(deps): update rust crate zip to v3 2025-05-15 03:50:17 +00:00
Daniel Hofstetter
fd29eb5fc1
Cargo.toml: remove exact version req for selinux (#7883) 2025-05-04 17:54:48 +02:00
Daniel Hofstetter
698cdf1427
Merge pull request #7862 from drinkcat/profiling-profile
Cargo.toml: Add profiling profile
2025-04-30 09:14:32 +02:00
Nicolas Boichat
b5824cd498 Cargo.toml: Add profiling profile
Also fix comment about release profile, debug info is not there.
2025-04-29 22:37:41 +08:00
Leo Emar-Kar
b14388ca41
ls: update chrono crate version and switch to new_lenient use (#7858)
* update chrono crate version and switch to new_lenient use

* bring back custom_tz_fmt and update test

* update chrono version in fuzz lock file

* replace boxing with parse_to_owned
2025-04-29 16:29:42 +02:00
Sylvestre Ledru
bf747acd30 update parse_datetime 2025-04-25 11:31:08 +02:00
Sylvestre Ledru
8298173554 mkfifo: implement selinux support
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

merge
2025-04-24 21:54:12 +02:00
Jeremy Smart
044b33d8cb
Merge pull request #7760 from Qelxiros/7670-tail-hex-formatting
tail hex parsing, remove fundu dependency
2025-04-23 18:34:00 +02:00
Sylvestre Ledru
aebada4cd4 mknod: implement selinux support
+ improve the option management a bit
2025-04-23 08:37:42 +02:00
Terts Diepraam
d99b7b31a6
Merge pull request #7740 from Ecordonnier/eco/enable-utmpx-for-musl
enable utmpx feature for musl
2025-04-17 22:46:23 +02:00