Santiago Vila:
> [..]
> Exception: no cargo executable found at `/usr/bin/cargo`
> debian/rules:216: recipe for target 'override_dh_auto_build-indep' failed
> make[1]: *** [override_dh_auto_build-indep] Error 1
> make[1]: Leaving directory '/<<BUILDDIR>>/rustc-1.24.1+dfsg1'
> debian/rules:143: recipe for target 'build-indep' failed
> make: *** [build-indep] Error 2
> dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
> --------------------------------------------------------------------------------
> 
> I did "dpkg-buildpackage -A" but apparently it also fails with 
> "dpkg-buildpackage -B"
> in every other architecture:
> 

Moritz,

The easiest way to fix all of the above would be to re-introduce the 
cargo/rustc self-Build-Depends but add a [!amd64] architecture-specific 
annotation to it. Then an arch:all build and the other-architecture builds will 
simply be not performed due to "missing build-deps".

This is what `d/rules source_orig-dl` suggests and I should have been more 
strict about it when reviewing your earlier patch, sorry.

If you need to bootstrap other architectures you can cross-compile them using 
`sbuild --host=$foreign-arch` although this was broken in upstream 1.25 [1] but 
may work on 1.24.

X

[1] https://github.com/rust-lang/rust/issues/49677

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git

Reply via email to