[Pkg-rust-maintainers] Bug#796256: Bug#796256: Please consider packaging a Rust version that allows #![feature(...)]

Ximin Luo infinity0 at debian.org
Wed Sep 2 14:53:27 UTC 2015

On 31/08/15 00:22, Ximin Luo wrote:
> On 30/08/15 21:42, Ximin Luo wrote:
>> On 21/08/15 10:33, Josh Triplett wrote:
>>>> Personally, I'm reluctant to break the release-channels experiment so close
>>>> to the 1.0 release.  We may well declare it failed and do something
>>>> different in future, but right now I think Debian has an important role to
>>>> play in demonstrating what the "stable" Rust world looks like and providing
>>>> pressure for upstreams to avoid unstable features.
>>> I don't think this would be breaking release-channels.  Rather, this
>>> would be demonstrating the value of that model.  Debian unstable, and
>>> thus testing and eventually stable, would get stable Rust releases.
>>> Debian experimental would get Rust builds with experimental features
>>> turned on.  Software uploaded to Debian unstable, for instance, would
>>> still have to build with stable Rust.
>> I'm trying this now, going to upload to mentors.debian.net if I succeed. Wish me luck!
> I built these source packages using the attached script:
> Version
> Version
> https://mentors.debian.net/package/rustc
> I haven't yet built binary packages out of them, though - the tests keep failing. Next, I will play around with giving DEB_BUILD_OPTIONS=nocheck to cowbuilder.

1.4.0~~nightly.20150901+dfsg1-1 built for amd64, all tests passing, uploaded here in experimental:


Note that it contains an incomplete debian/changelog which I can't be bothered fixing right now. I built it by running 

$ DEBDIR=./rust/debian CHANNEL=nightly ./upgrade-rust.sh 

using the attached script, against the current rust.git debian packaging repo, then fixing debian/copyright to remove obsolete references to valgrind, then:

$ sudo cowbuilder --build rustc_1.4.0~~nightly.20150901+dfsg1-1.dsc

If people like it, I can upload a version to Debian experimental tomorrow.

> Some notes:
> - we could probably come up with a better system for the version strings
> - for the nightly, I dropped debian/patches/fix-test-llvm-3.6.diff which seems to have been applied upstream
> - for some reason we bundle a src/etc/snapshot.pyc in the .debian.tar.gz and force it to be ignored with debian/source/include-binaries, wtf?
> - both beta and nightly have upgraded to jquery 2.1.4 but my upgrade script doesn't account for this
> - pretty sure we can symlink jquery.js in debian/rust-doc.links instead of having debian/rules explicitly do it
> - not sure what to do with the libstd-rust-xxxx stuff. I couldn't find the id anywhere in the upstream source, even in the current debian sid version. Also, will we continue to keep adding the old package versions to Replaces/Breaks? This seems unsustainable.

All these points have been fixed in the above package, as well as in git. I've kept the hash-based library name for now.

I also made a beta version here, but haven't yet had time to build it:


"It should work", though. Enjoy!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: upgrade-rust.sh
Type: application/x-shellscript
Size: 2673 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150902/41a5223e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150902/41a5223e/attachment.sig>

More information about the Pkg-rust-maintainers mailing list