Description: Fix ppc64el build by treating little-endian powerpc64 like big-endian On powerpc, powerpc64 (BE), and powerpc64le, nix::sys::termios::cfgetospeed returns a BaudRate enum (not a u32). The display branch only excluded powerpc and big-endian powerpc64, leaving ppc64el to take the u32 branch and fail to compile (`BaudRate: std::fmt::Display` not satisfied). . Treat all powerpc/powerpc64 variants the same: use the BAUD_RATES table to look up the matching display string. Author: Sylvestre Ledru Forwarded: no Last-Update: 2026-05-13 =================================================================== --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -648,20 +648,20 @@ fn print_terminal_size( let mut printer = WrappedPrinter::new(window_size); - // BSDs and Linux (not ppc/big-endian ppc64) use a u32 for the baud rate, so we can simply - // print it. + // BSDs and Linux (not powerpc/powerpc64) use a u32 for the baud rate, so we can + // simply print it. #[cfg(any(target_os = "linux", bsd))] #[cfg(all( not(target_arch = "powerpc"), - not(all(target_arch = "powerpc64", target_endian = "big")) + not(target_arch = "powerpc64") ))] printer.print(&translate!("stty-output-speed", "speed" => speed)); - // Big-endian Linux PowerPC uses BaudRate enum, need to convert to display format + // Linux PowerPC (32-bit and 64-bit, both endians) uses BaudRate enum, need to convert #[cfg(target_os = "linux")] #[cfg(any( target_arch = "powerpc", - all(target_arch = "powerpc64", target_endian = "big") + target_arch = "powerpc64" ))] { // On PowerPC, find the corresponding baud rate string for display