[Pkg-rust-maintainers] Draft Rust packaging policy for review
Luca BRUNO
lucab at debian.org
Sun Dec 11 11:05:58 UTC 2016
On Saturday, 10 December 2016 12:06:22 UTC Josh Triplett wrote:
I think the draft is basically ready to go.
I suggest you to post this to internals.rust-lang.org and reddit /r/rust to
hopefully gather some non-debian-biased reviews and a bit more exposure.
> The only documentation I know of appears in
> https://github.com/rust-lang/cargo/pull/2857 , which doesn't seem like
> an appropriate place for the policy to link to. Anyone want to submit a
> patch to Cargo's documentation upstream incorporating a version of that?
Starting from that PR, I've found and now linked-in
http://doc.crates.io/source-replacement.html#directory-sources
> For the "can't ever work, by design" case: we still should leave the
> library package "Architecture: all", because an application crate or
> higher-level library crate might have an architecture-specific
> dependency on it and only use it on that architecture. If an
> application crate has an unconditional dependency on that
> architecture-specific library crate, then either we fix the application
> to make the dependency conditional, or the application itself only runs
> on that architecture and we should mark the *application* as
> "Architecture: thatarch".
>
> I added some text documenting how to handle that second case. The first
> case represents Debian's standard approach to porting and portability
> for all types of packages, not specific to Rust.
Yes, I was mostly thinking about this second case. I think it is ok as worded
now, should work for most cases.
> > (@lucab: other flags that need to be specified? RUSTFLAGS inheriting
> > LDFLAGS?)
>
> No, not that I can think of. Did you have anything specific in mind
> here?
>
> If we have some systematic way we want to tweak RUSTFLAGS, we'd probably do
> that via dh-cargo.
Some kind of bridging between dpkg-buildflags and RUSTFLAGS.
For example, cargo's debian/rules currently translates LDFLAGS into
"-C link-arg" via RUSTFLAGS. It is perfectly fine for dh-cargo to do this.
Ciao, Luca
--
«Доверяй, но проверяй»
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20161211/7f7aa41c/attachment.sig>
More information about the Pkg-rust-maintainers
mailing list