Commit Graph

124 Commits

Author SHA1 Message Date
Daniel Hofstetter 2ab8e25899 deny.toml: add redox_syscall to skip list 2026-04-10 17:00:29 +02:00
xtqqczze c087fd3f72 chore(deps): update rust crates 2026-04-10 08:58:09 +02:00
Daniel Hofstetter 319a06caa4 deny.toml: add crates to skip list
digest, crypto-common, block-buffer
2026-03-29 12:22:41 +02:00
xtqqczze fb44ce342a chore(deps): update rand and related crates to version 0.10 2026-03-11 11:03:09 +01:00
Daniel Hofstetter 717fb6f16d deny.toml: add foldhash to skip list 2026-02-24 12:05:15 +01:00
Daniel Hofstetter 5fa809ffed deny.toml: remove signal-hook from skip list (#10785) 2026-02-07 14:54:07 +01:00
xtqqczze f274c92ddf deny.toml: remove unmatched items from skip list 2026-01-31 01:19:20 +00:00
Daniel Hofstetter ea3526c5e9 deny.toml: remove wasi from skip list (#10355) 2026-01-20 13:09:05 +01:00
xtqqczze fa8de55f49 deps: remove unused rust crate linux-raw-sys
maybe unused since 61ac193286
2026-01-19 22:48:54 +00:00
mattsu 87c332c727 sort : gnu core utils test (sort-merge-fdlimit.sh) (#9849) 2026-01-18 22:46:17 +01:00
Daniel Hofstetter ade95d6c18 deny.toml: remove constant_time_eq from skip list (#10176) 2026-01-11 12:31:27 +01:00
Daniel Hofstetter 23b11eaf67 deny.toml: add constant_time_eq to skip list (#10137) 2026-01-09 09:42:42 +01:00
Daniel Hofstetter a413c9f099 deny.toml: add signal-hook to skip list 2026-01-01 16:39:51 +01:00
Daniel Hofstetter 2dee0eb6ed deny.toml: remove windows-link from skip list 2025-11-29 07:25:09 +01:00
Daniel Hofstetter 21ee64cbb6 Bump linux-raw-sys from 0.11 to 0.12 (#9019)
* Bump linux-raw-sys from 0.11 to 0.12

* deny.toml: add linux-raw-sys to skip list
2025-10-25 20:21:26 +02:00
Daniel Hofstetter 722b8c0a88 deny.toml: remove nix from skip list 2025-10-21 07:33:02 +02:00
Daniel Hofstetter 94034d01a5 deny.toml: remove old windows-sys from skip list 2025-10-11 14:08:01 +02:00
Daniel Hofstetter 852244f864 deny.toml: add zerocopy-derive to skip list 2025-10-10 15:14:00 +02:00
Sylvestre Ledru fa865ca19b cargo-deny: allow duplication of nix given it is only used for bencharmking 2025-09-23 13:55:38 +02:00
Sylvestre Ledru cc96230b78 cargo-deny: allow MPL 2.0 2025-09-23 13:54:42 +02:00
Daniel Hofstetter c53b5dc26c deny.toml: remove linux-raw-sys from skip list 2025-09-11 16:01:12 +02:00
Daniel Hofstetter 7b3b3296b7 deny.toml: add windows-sys & windows-link entries 2025-09-05 08:23:34 +02:00
Daniel Hofstetter 7662547fd6 deny.toml: remove old windows-sys from skip list 2025-08-06 09:47:08 +02:00
Daniel Hofstetter 116e1cd82b deny.toml: add linux-raw-sys to skip list 2025-06-30 15:33:21 +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