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

1738 commits

Author SHA1 Message Date
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
renovate[bot]
80e6393777
chore(deps): update rust crate jiff to v0.2.14 2025-06-02 08:19:26 +00: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
renovate[bot]
7f5d1fd5b6
chore(deps): update rust crate clap_complete to v4.5.52 2025-05-30 18:33:26 +00: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
fc947eca33 ls: convert to jiff 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
Daniel Hofstetter
76848de952
Merge pull request #8015 from uutils/renovate/clap_complete-4.x-lockfile
chore(deps): update rust crate clap_complete to v4.5.51
2025-05-28 07:19:45 +02:00
renovate[bot]
e92cf92f7e
chore(deps): update rust crate clap_complete to v4.5.51 2025-05-27 19:53:36 +00:00
renovate[bot]
72ccd8dcad
chore(deps): update rust crate clap to v4.5.39 2025-05-27 19:53:29 +00:00
Sylvestre Ledru
685df65cc5
Merge pull request #7993 from cakebaker/bump_type_map
Bump `type-map`
2025-05-26 18:35:45 +02:00
Daniel Hofstetter
fcfd9210cd
Merge pull request #7988 from drinkcat/bump_toml_edit
Cargo.lock: Bump toml_edit to latest version
2025-05-26 09:10:46 +02:00
Daniel Hofstetter
eb16277f74 Bump type-map from 0.5.0 to 0.5.1 2025-05-26 07:31: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
Nicolas Boichat
12f075cd95 Cargo.lock: Bump toml_edit to latest version
If we want to update parse_datetime, we'll need winnow 0.7.10
(and not 0.7.3).

So let's just bump here.

Test: cargo build --config 'patch.crates-io.parse_datetime.path="../parse_datetime"'
2025-05-25 21:24: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
renovate[bot]
8655e8194d
chore(deps): update rust crate zip to v4 2025-05-22 02:48:34 +00:00
Aaron Ang
7692b93ea6 more: constant mem initialization for files and pipes 2025-05-18 21:09:48 +02:00
Jeremy Smart
a5a9f7d44d
pr: migrate from quick-error to thiserror (#7919)
* remove quick-error from pr

* fix windows compilation, Cargo.toml
2025-05-15 09:19:46 +02:00
renovate[bot]
3566f88874
chore(deps): update rust crate zip to v3 2025-05-15 03:50:17 +00:00
Daniel Hofstetter
04164596d1 Bump tempfile from 3.19.1 to 3.20.0 2025-05-12 07:37:49 +02:00
renovate[bot]
fa7f2bf763
chore(deps): update rust crate clap to v4.5.38 2025-05-11 03:20:24 +00:00
renovate[bot]
f0489d903a
chore(deps): update rust crate signal-hook to v0.3.18 2025-05-09 11:37:12 +00:00
renovate[bot]
1a60c2c6c4
chore(deps): update rust crate clap_complete to v4.5.50 2025-05-06 19:09:04 +00:00
renovate[bot]
179362d431
chore(deps): update rust crate clap_complete to v4.5.49 2025-05-05 22:12:05 +00:00
renovate[bot]
db89b7a415
chore(deps): update rust crate sha2 to v0.10.9 2025-04-30 20:29:51 +00: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
renovate[bot]
5c3a52b0eb
chore(deps): update rust crate clap_complete to v4.5.48 2025-04-28 22:54:13 +00:00
Sylvestre Ledru
bf747acd30 update parse_datetime 2025-04-25 11:31:08 +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
renovate[bot]
25b6543459
chore(deps): update rust crate ctor to v0.4.2 2025-04-21 19:42:25 +00:00
renovate[bot]
0eab1c2391
chore(deps): update rust crate blake3 to v1.8.2 2025-04-21 02:13:39 +00:00
siddharthteli12
5a02e74e8b whoami: remove unused libc dependency 2025-04-19 13:52:41 +05:30
renovate[bot]
7292ab97fa
chore(deps): update rust crate clap to v4.5.37 2025-04-18 19:51:00 +00:00
renovate[bot]
61d940765b
fix(deps): update rust crate rand to v0.9.1 2025-04-17 15:59:49 +00:00
Sylvestre Ledru
785ae3c954
Merge pull request #7767 from cakebaker/bump_bincode
Bump `bincode` & adapt test code to API changes
2025-04-17 17:58:39 +02:00
Daniel Hofstetter
e263ff3167 Bump bincode from 1.3.3 to 2.0.1 2025-04-16 10:21:42 +02:00
renovate[bot]
6151b8cc05
fix(deps): update rust crate proc-macro2 to v1.0.95 2025-04-16 07:32:52 +00:00
Sylvestre Ledru
c90bca4acb
Merge pull request #7758 from cakebaker/sleep_remove_fundu
sleep: remove unused `fundu` from `Cargo.toml`
2025-04-15 08:34:56 +02:00
renovate[bot]
ec11b6b21c
fix(deps): update rust crate libc to v0.2.172 2025-04-15 05:52:21 +00:00
Daniel Hofstetter
2a816e35f4 sleep: remove unused fundu from Cargo.toml 2025-04-15 07:25:21 +02:00
Yuri Astrakhan
c1d2a07c62
Merge pull request #7704 from nyurik/optimize-dd
feat: optimize `dd` parsing, bugfix
2025-04-14 21:58:11 +02:00
Daniel Hofstetter
80b6a2155c
Merge pull request #7635 from sylvestre/temp-selinux-impl
mkdir: add the selinux support
2025-04-13 14:49:52 +02:00
Sylvestre Ledru
842f47b372 uucore: move the selinux function 2025-04-12 18:43:02 +02:00