Fix build and tests for uptime on OpenBSD#9158
Conversation
|
@cakebaker Conflics with your #7256 ? |
eb778df to
f1b2243
Compare
|
@oech3 it's possible, though my PR is work in progress anyway. |
f1b2243 to
8c53000
Compare
Signed-off-by: Laurent Cheylus <foxy@free.fr>
Signed-off-by: Laurent Cheylus <foxy@free.fr>
8c53000 to
7b1fbc0
Compare
CodSpeed Performance ReportMerging #9158 will degrade performances by 2.55%Comparing Summary
Benchmarks breakdown
|
|
GNU testsuite comparison: |
|
Merci Laurent ! :) |
|
Can this repo bump rust used at CI to 1.90+ from 1.85? |
|
@oech3 in the CI we already use Rust stable for most jobs. What you probably mean is the MSRV (minimum supported Rust version), which currently is |
|
Because this issue(PR) and an issue is 1.90 specific and not detected by CI. (and newer ver uses fast linker by default.)
|
This error is not detected by CI because there is no CI for OpenBSD (work that's been in progress for a long time that I need to finish...). |
|
Oops... Maybe, we can start CI from |
* uptime: fix build errors on OpenBSD Signed-off-by: Laurent Cheylus <foxy@free.fr> * tests: fix error for uptime on OpenBSD Signed-off-by: Laurent Cheylus <foxy@free.fr> --------- Signed-off-by: Laurent Cheylus <foxy@free.fr>
* uptime: fix build errors on OpenBSD Signed-off-by: Laurent Cheylus <foxy@free.fr> * tests: fix error for uptime on OpenBSD Signed-off-by: Laurent Cheylus <foxy@free.fr> --------- Signed-off-by: Laurent Cheylus <foxy@free.fr>
* uptime: fix build errors on OpenBSD Signed-off-by: Laurent Cheylus <foxy@free.fr> * tests: fix error for uptime on OpenBSD Signed-off-by: Laurent Cheylus <foxy@free.fr> --------- Signed-off-by: Laurent Cheylus <foxy@free.fr>
Fix #9157
Build for
uptimeOK on OpenBSD current/amd64 with Rust 1.90.0$ cargo build -v --no-default-features --features uptime (...) Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.11s $ ./target/debug/coreutils uptime 10:58:57 up 7 days 22:44, 1 user, load average: 0.21, 0.49, 0.75 $ ./target/debug/coreutils uptime -s 2025-10-29 12:14:06 $ ./target/debug/coreutils uptime && guptime 10:59:30 up 7 days 22:45, 1 user, load average: 0.25, 0.47, 0.73 10:59:30 up 7 days 22:45, 1 user, load average: 0.25, 0.47, 0.73Tests for
uptimeOK on OpenBSD current/amd64 with Rust 1.90.0