kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

Fix support for long filenames in tar archive #39

Closed WGH- closed 2 years ago

WGH- commented 2 years ago

.set_path()/.set_link_name() fails when using long filenames, and Builder methods should be used instead to use GNU long-name tar extensions, as documented in tar crate docs.

Fixes errors like this:

cargo-deb: I/O error: provided value is too long when setting path for usr/share/<...>
  because: provided value is too long when setting path for usr/share/<...>
kornelski commented 2 years ago

That's a surprising api! Thanks