Rust packaging licensing problem
Idea proposal 💡
Checks
NOTE: The below check boxes must be checked before the accompanying idea will be considered.
-
I have checked that the idea is not directly tied to a specific project For example: "Show label icons in the package overview web page" must be a feature request in the ArchWeb repository -
I have carefully checked this idea is not already covered by any open or closed ideas. -
I understand that I hold no copyright claims and that this idea can be adapted and used by Arch Linux in any arbitrary shape or form.
Summary
Fix the Rust packaging licensing problem
Motivation
Just a little idea to kick-start some discussion on the whole Rust licensing situation. Refer recent a-d-p mailing list post.
To be honest, haven't really looked into the Rust ecosystem much, but the whole "link all crates statically into the end result and distribute it" thing is really quite stomach churning. Yeah I get it.. no stable Rust ABI.. blah blah whatever
Anyway, while preparing an update to https://aur.archlinux.org/packages/libblkio, it got me thinking about how other distros handle this kind of thing which led to here and here for example.
Specification
Maybe we could achieve something similar by employing cargo-license? i.e. adding it as a makedep then calling cargo-license inside prepare() or build() and check the output for dealing with manually by the PM? Just for the hell of it, I have whacked this into the aforementioned AUR pkg as a quick demo. Something like this should ultimately be handled by namcap.. and of course it would be better if the functionality was built into cargo itself.
Anyway, I'm sure folks are already considering options.. so just wanted to throw this into the mix.