[Pkg-rust-maintainers] Bug#1067897: rust-coreutils - FTBFS with new rust-uutils-term-grid.

Peter Green plugwash at debian.org
Thu Mar 28 15:59:58 GMT 2024


Package: rust-coreutils
Version: 0.0.24-2
Severity: serious

rust-coreutils FTBFS with the new version of rust-uutils-term-grid.
The Debian build-dependency allows the new version, but the Cargo
dependency does not.

After bumping the cargo dependency, the code fails to build with a
bunch of errors.

> error[E0432]: unresolved import `term_grid::Cell`
>   --> src/uu/ls/src/ls.rs:37:17
>    |
> 37 | use term_grid::{Cell, Direction, Filling, Grid, GridOptions};
>    |                 ^^^^ no `Cell` in the root
>    |
>    = help: consider importing one of these items instead:
>            std::cell::Cell
>            core::cell::Cell
> error[E0063]: missing field `width` in initializer of `GridOptions`
>     --> src/uu/ls/src/ls.rs:2598:34
>      |
> 2598 |         let mut grid = Grid::new(GridOptions { filling, direction });
>      |                                  ^^^^^^^^^^^ missing `width`
> 
> error[E0061]: this function takes 2 arguments but 1 argument was supplied
>     --> src/uu/ls/src/ls.rs:2598:24
>      |
> 2598 |         let mut grid = Grid::new(GridOptions { filling, direction });
>      |                        ^^^^^^^^^ ---------------------------------- an argument of type `Vec<_>` is missing
> error[E0599]: no method named `add` found for struct `Grid` in the current scope
>     --> src/uu/ls/src/ls.rs:2609:18
>      |
> 2609 |             grid.add(formatted_name);
>      |                  ^^^ method not found in `Grid<_>`
> 
> error[E0599]: no method named `fit_into_width` found for struct `Grid` in the current scope
>     --> src/uu/ls/src/ls.rs:2612:20
>      |
> 2612 |         match grid.fit_into_width(width as usize) {
>      |                    ^^^^^^^^^^^^^^ method not found in `Grid<_>`
> 
> error[E0599]: no method named `fit_into_columns` found for struct `Grid` in the current scope
>     --> src/uu/ls/src/ls.rs:2618:40
>      |
> 2618 |                 write!(out, "{}", grid.fit_into_columns(1))?;
>      |                                        ^^^^^^^^^^^^^^^^ method not found in `Grid<_>`



More information about the Pkg-rust-maintainers mailing list