[Pkg-rust-maintainers] Upstream has changed the bootstrap process

Ximin Luo infinity0 at debian.org
Tue Jul 12 10:40:51 UTC 2016


Ximin Luo:
>> Re bootstrap key: yes, that's the one.  Chasing through where
>> CFG_BOOTSTRAP_KEY is used in the makefiles, I *think* we can avoid
>> modifying stage0.txt by using ./configure --enable-local-rebuild if
>> rebuilding with the same version.  If that doesn't work, we may be able to
>> just pass CFG_BOOTSTRAP_KEY=e8edd0fd env var to makefiles directly, or
>> patch the makefiles until one of those works ;)    That key is the same
>> CFG_FILENAME_EXTRA used on libraries, fwiw.  If we want to calculate it
>> ourselves, it's: `printf '%s' 1.10.0 | md5sum | cut -c 1-8`
>>
> 
> I couldn't find enable-local-rebuild, do you mean enable-local rust? We are already setting that (to pick up the system rust), but it still uses the bootstrap key from src/stage0.txt. Arguably this is an upstream bug, so perhaps instead of editing debian/rules to patch src/stage0.txt, I will patch the upstream Makefiles to read the bootstrap key directly from enable-local-rust if that is set.
> 

Oh, I see, enable-local-rebuild is on upstream master but not 1.10.0. However, I think we can't use that and we need to stick to enable-local-rust. It looks like rust upstream treat "enable-local-rebuild" as being fixed to the current version, but we want to build *either* the current or previous version.

I filed a bug report adding support for this here, as I described just above:

https://github.com/rust-lang/rust/pull/34779

X

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



More information about the Pkg-rust-maintainers mailing list