-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Build Debian Package With rustc 1.70 #267
Comments
So, a small update. In theory, using the following override in override_dh_auto_build:
cargo fetch
cargo update -p [email protected] --precise 4.4.18
cargo build --release However, the generated package is empty apparently, but that's a different issue/not related to |
Otherwise for building, the best option is to install rustup and get the latest version that way. When Rust 2024 is released it might improve this a bit with the Minimum Support Rust Version (MSRV) tracking - rust-lang/rust#123749 - although it'll take a while to be rolled out (e.g. across vopono's dependencies). But in general it's a bit like glibc - your best option is to upgrade, or use compatible pre-built binaries. |
Hey - sorry for the lack of clarification. I am building the Debian packages for Kali Linux, as per https://bugs.kali.org/view.php?id=7782 - thus they follow a bit of a different rule/policy (AFAIK) when it comes to packaging Rust-based tools. By default, Debian's packaging guidelines requires/recommends the use of Currently, the |
Hey there.
I am trying to package
vopono
for Kali Linux but facing a small issue. SInce I am not that well-versed in Rust, I wanted to ask for assistance here regarding the matter.To build
vopono
, I have to userustc
andcargo
packages, which are1.70.0
and1.69.1
respectively. I am building the package with the followingdebian/rules
file:In theory and based on README.md,
rustc
being1.43.0+
is more than enough. However, I get the following error:Now, I don't really know how to get the build process to respect the
rustc
version available on Kali/Debian repositories. Can I request your assistance with this matter?TIA
EDIT
I have tried patching
Cargo.toml
to specify the version ofclap
(becauseclap_builder
andclap_lex
are dependencies ofclap
):However, despite the patch (placed in
debian/patches/patch-clap.patch
) being applied,cargo build --release
somehow manages to pull[email protected]
, which prevents the use of4.4.18
, which is compatible withrustc
v1.70.0.The text was updated successfully, but these errors were encountered: