<div dir="ltr">Ah, I was indeed looking at upstream git, and incorrectly assumed these were the same changes that went into 1.10.0.  Sorry for the confusion.<div>Fwiw, the code involved looks tiny if we wanted to backport that approach to 1.10.0<br><div><br></div><div> - Gus</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 12 Jul 2016 at 20:41 Ximin Luo <<a href="mailto:infinity0@debian.org">infinity0@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ximin Luo:<br>
>> Re bootstrap key: yes, that's the one.  Chasing through where<br>
>> CFG_BOOTSTRAP_KEY is used in the makefiles, I *think* we can avoid<br>
>> modifying stage0.txt by using ./configure --enable-local-rebuild if<br>
>> rebuilding with the same version.  If that doesn't work, we may be able to<br>
>> just pass CFG_BOOTSTRAP_KEY=e8edd0fd env var to makefiles directly, or<br>
>> patch the makefiles until one of those works ;)    That key is the same<br>
>> CFG_FILENAME_EXTRA used on libraries, fwiw.  If we want to calculate it<br>
>> ourselves, it's: `printf '%s' 1.10.0 | md5sum | cut -c 1-8`<br>
>><br>
><br>
> 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.<br>
><br>
<br>
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.<br>
<br>
I filed a bug report adding support for this here, as I described just above:<br>
<br>
<a href="https://github.com/rust-lang/rust/pull/34779" rel="noreferrer" target="_blank">https://github.com/rust-lang/rust/pull/34779</a><br>
<br>
X<br>
<br>
--<br>
GPG: ed25519/56034877E1F87C35<br>
GPG: rsa4096/1318EFAC5FBBDBCE<br>
<a href="https://github.com/infinity0/pubkeys.git" rel="noreferrer" target="_blank">https://github.com/infinity0/pubkeys.git</a><br>
<br>
_______________________________________________<br>
Pkg-rust-maintainers mailing list<br>
<a href="mailto:Pkg-rust-maintainers@lists.alioth.debian.org" target="_blank">Pkg-rust-maintainers@lists.alioth.debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-rust-maintainers" rel="noreferrer" target="_blank">https://lists.alioth.debian.org/mailman/listinfo/pkg-rust-maintainers</a><br>
</blockquote></div>