-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make and Distribute Debian Package #36
Comments
First it would be nice to make a git tag. Here are resources on packaging rust programs for debian: https://wiki.debian.org/Teams/RustPackaging/Policy One need to also package dependencies if there are not already in unstable repository. Once program gets to debian, it should be automatically synced to ubuntu and available in next release. |
Yep, I think having a stable version would be required first (so getting #16 implemented), but I just wanted to get the ball rolling as I figured this would be a fairly long and involved process. Our Rust dependencies aren't huge, but enough that there might be some work there (or we could vendor them since they're really small and single-use.) I'll reach out to the Rust team soon. |
There's not much spare capacity in the team atm to package other programs but you're welcome to do your own package, clone https://salsa.debian.org/rust-team/debcargo-conf/ and follow the instructions in the README. It's much simpler than other Debian packages, we've automated away most of the process you'll read from the usual Debian Maintainers' Guide. |
This is the current state of master (cargo-debstatus output):
In other words, you would need to help port subprocess to winapi 0.3 (this makes kernel32-sys obsolete) and bump their crossbeam dependency. You also need to update your isatty dependency. |
That's actually a lot better than I was anticipating! Nice! Thanks for doing that! Do you want to send a PR with those updated deps? |
@Miserlou I usually don't do this to avoid an expectation that the debian rust team is taking care of things like this, but I filed #37 since it's a simple change. I haven't looked into subprocess yet, you can't fix this from inside loop but you would need to get the subprocess crate to fix this and release an update. |
Cool, I've submitted an upstream PR. However, this is only for |
Okay, |
@Miserlou there are some instructions over here how you would setup a packaging environment: https://salsa.debian.org/rust-team/debcargo-conf. The instructions might appear slightly scary, but are actually really nice to work with and you can basically follow them top to bottom. You probably want to join oftc/#debian-rust in case you run into any issues. You would run The debian-rust team is really small so we're trying to get more people involved and usually follow the "if you want something in debian, package it yourself" rule. :) That's how I joined the team as well (still working on my dependencies though). |
Cool, thank you! Next session I'll give that a shot and try to tackle #16,
probably tomorrow.
…On Sat, Sep 22, 2018 at 11:42 AM, kpcyrd ***@***.***> wrote:
@Miserlou <https://github.com/Miserlou> there are some instructions over
here how you would setup a packaging environment:
https://salsa.debian.org/rust-team/debcargo-conf. The instructions might
appear slightly scary, but are actually really nice to work with and you
can basically follow them top to bottom. You probably want to join
oftc/#debian-rust in case you run into any issues.
You would run ./new-package.sh subprocess, fix the todos in the
src/subprocess/debian that is created afterwards and run ./release.sh
subprocess. After that, cd build; ./build.sh subprocess. That's going to
build the package and run a lintian test. If that works (ignore warnings
for now), push the repo somewhere we can pull from.
The debian-rust team is really small so we're trying to get more people
involved and usually follow the "if you want something in debian, package
it yourself" rule. :) That's how I joined the team as well (still working
on my dependencies though).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAIi0y16vnbG_lxWf5l0UCZUCE16UoKhks5udlqDgaJpZM4Wwz4T>
.
|
This unfortunately is not possible due to rust-lang/cargo#5896, Cargo requires the presence of winapi even on non-windows platforms. However it might work to write a trivial Debian-specific patch to have subprocess instead declare a depends on winapi 0.3 rather than 0.2. This would break if you actually try it, but we never do on that in Debian. Note that |
Hey everyone. I do plan to package this, however the dependencies are out of date. I am sadly new to rust and can't deal with things this complicated, but the main issue I see is with humantime in the code with parse_duration. Anyways, the new dependency versions should be: I have packaging ready, but debcargo/dependency chains wont work until these are fixed. |
I want
loop
to be in Debian and Ubuntu! Let's make that happen!Required first:
--
#16The text was updated successfully, but these errors were encountered: