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

101 commits

Author SHA1 Message Date
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
Caleb Maclennan
07f7226a96
deny.toml: remove obsolete skips related to rustix
The holdup on crossterm was bumped in d5258d280, bringing rustix to 0.38.44. Meanwhile while
linux-raw-sys is still at 0.4.15 in the lock file, it is unclear to my why it got added in 2c0f97fc3
in the first place as it does not seem to trigger any complaints from `cargo deny`.
2025-05-28 16:20:59 +03:00
Daniel Hofstetter
12eb45281f deny.toml: remove rustc-hash from skip list 2025-05-26 07:37:41 +02:00
Daniel Hofstetter
d6a35dc837 deny.toml: remove self_cell from skip list 2025-05-24 14:57:23 +02:00
Sylvestre Ledru
7b5012c6d1 deny: adjust the skip list for fluent-bundle 2025-05-23 23:37:59 +02:00
Daniel Hofstetter
5c894e40a5 deny.toml: fix incorrect comment 2025-04-17 18:47:24 +02:00
Daniel Hofstetter
49be8821fd deny.toml: remove zerocopy from skip list 2025-04-17 18:45:17 +02:00
Daniel Hofstetter
c8fc02a05d deny.toml: remove windows-core from skip list 2025-04-09 16:04:08 +02:00
Daniel Hofstetter
3fded2a12e deny.toml: update comments 2025-04-01 08:15:18 +02:00
Daniel Hofstetter
2b31be039c deny.toml: add windows-core to skip list 2025-04-01 08:07:50 +02:00
Daniel Hofstetter
db8b84fc06 deny.toml: remove two crates from skip list
bindgen & rustc-hash
2025-03-25 13:46:32 +01:00
Daniel Hofstetter
2c0f97fc3b deny.toml: add rustix & linux-raw-sys to skip list 2025-03-07 16:44:17 +01:00
Daniel Hofstetter
4b618dc7bb deny.toml: remove three crates from skip list
linux-raw-sys, rustix, and terminal_size
2025-03-04 07:18:21 +01:00
Daniel Hofstetter
cb3ee46ca9 deny.toml: add bindgen & rustc-hash to skip list 2025-02-07 09:06:28 +01:00
Daniel Hofstetter
6235f1cbb9 deny.toml: add some crates to skip list 2025-01-30 08:52:42 +01:00
Daniel Hofstetter
3849242ee0 deny.toml: add getrandom & wasi to skip list 2025-01-29 08:33:43 +01:00
Daniel Hofstetter
5b55405220 deny.toml: add nom to skip list 2025-01-27 09:46:18 +01:00
Daniel Hofstetter
5767f6edc6 deny.toml: remove Unicode-DFS-2016 from licenses 2025-01-15 07:22:20 +01:00
Daniel Hofstetter
e642b16534 deny.toml: remove syn from skip list 2025-01-15 07:20:40 +01:00
Sylvestre Ledru
354c1d27ec deny: add Unicode 3.0 and zlib as allowed license 2025-01-11 13:48:34 +01:00
Sylvestre Ledru
55ec19ae56 deny: ignore hashbrown duplication 2025-01-11 13:47:11 +01:00
Daniel Hofstetter
7781f25395 deny.toml: remove entries from skip list 2025-01-11 08:49:47 +01:00
Daniel Hofstetter
ac542966e7 deny.toml: add itertools to skip list 2025-01-01 09:27:22 +01:00
Dorian Péron
50271381c4 fix cargo-deny-action job 2024-12-29 04:40:07 +01:00
Daniel Hofstetter
c38897b101 deny.toml: add thiserror & thiserror-impl
to skip list
2024-11-25 09:32:01 +01:00
Daniel Hofstetter
6257cf1793 deny.toml: add mio to skip list 2024-11-19 09:47:49 +01:00
Sylvestre Ledru
0f74ae05c9
add unicode-width to the skip list of cargo-deny 2024-11-13 09:49:26 +01:00
Daniel Hofstetter
ee47006229 deny.toml: remove itertools from skip list 2024-09-13 07:41:11 +02:00
Daniel Hofstetter
60c912a278 deny.toml: remove redox_syscall from skip list 2024-08-22 10:59:34 +02:00
Daniel Hofstetter
5db3b47ecb deny.toml: add windows-sys 0.52.0 to skip list 2024-08-14 17:38:56 +02:00
Daniel Hofstetter
dd5a070ecf deny.toml: add itertools 2024-06-06 10:54:16 +02:00
Daniel Hofstetter
05decd97ec deny.toml: allow BSL-1.0 as license 2024-05-24 09:48:36 +02:00
Daniel Hofstetter
67922d60d5 deny.toml: remove hashbrown, update comment 2024-05-07 07:57:41 +02:00
Ulrich Hornung
d202baba97 use num_prime for factorisation to fix gnu test 2024-04-21 11:24:25 +02:00
Daniel Hofstetter
fd78d8c3b7 deny.toml: add redox_syscall to skip list 2024-03-13 15:17:07 +01:00
Daniel Hofstetter
08b75589f5 deny.toml: remove deprecated keys, opt-in to v2 2024-03-13 09:35:11 +01:00
Daniel Hofstetter
e0abb76c0f Bump redox_syscall to 0.4.1
redox_syscall from 0.3.5 & 0.4.0 -> 0.4.1
filetime from 0.2.22 -> 0.2.23
parking_lot_core from 0.9.8 -> 0.9.9
2024-01-13 14:58:36 +01:00
Daniel Hofstetter
4754e071d4 deny.toml: update comment for windows-sys 2024-01-10 10:48:50 +01:00
Daniel Hofstetter
116245b8ef deny.toml: allow three versions of windows-sys 2023-12-13 06:56:27 +01:00
Daniel Hofstetter
6e114fe203 deny.toml: remove two entries from skip list
rustix & linux-raw-sys
2023-10-30 09:26:47 +01:00
Daniel Hofstetter
1562ef52e8 Bump rustix crates
0.36.15 -> 0.36.16
0.37.23 -> 0.37.26
0.38.8 -> 0.38.20
2023-10-20 07:11:56 +02:00
Daniel Hofstetter
e59285e276 deny.toml: add terminal_size to skip list 2023-09-15 10:53:36 +02:00
Daniel Hofstetter
8916dc4087 deny.toml: remove constant_time_eq from skip list 2023-09-11 07:06:23 +02:00
Daniel Hofstetter
6a63acc983 deny.toml: add redox_syscall to skip list 2023-09-08 07:27:19 +02:00
Daniel Hofstetter
dd584b6332 deny.toml: add constant_time_eq to skip list 2023-09-05 11:17:51 +02:00
Daniel Hofstetter
228a58080d deny.toml: remove aho-corasick from skip list 2023-08-17 11:22:06 +02:00
Terts Diepraam
a4e8be4456 chore(deps): update deny.toml 2023-08-11 10:51:18 +02:00
Daniel Hofstetter
0c6b1893a4
Merge pull request #5140 from cakebaker/bump_aho_corasick_crates
Bump aho-corasick crates
2023-08-09 09:00:13 +02:00
Daniel Hofstetter
492c9a4591 Bump rustix crates
From 0.36.14 to 0.36.15 and from 0.37.19 to 0.37.23
2023-08-09 07:47:30 +02:00