-
Notifications
You must be signed in to change notification settings - Fork 229
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
Package for Debian/Ubuntu #62
Comments
The best route is probably to request and then work on a package for Debian, that is, a package that will eventually be part of Debian (and, as a result, Ubuntu and other Debian compatible or based distros). You can start by:
An alternative would be for someone to setup and maintain a Ubuntu PPA for liquidctl. |
@jonasmalacofilho is there a dependency list for liquidctl? It will be super helpful for checking if given python package/library is already packaged for given distribution or should we package it as well. |
The Python dependencies are specified in setup.py
but Linux packages may also need This is a common Python packaging problem when
Anyway, this is all standard Python packaging stuff, so if this extra dependency is needed on Debian should™ be documented somewhere. Alternatively you could check if The runtime dependencies are libusb and HIDAPI, though whether or not these need to be explicitly required can vary:
|
Update for Debian testing/Bullseye:
Even though the Debian Python packaging docs don't mention it, |
For Ubuntu 19.10:
Hidapi is the correct package see Homepage entry. EDIT: for debian try: https://packages.debian.org/bullseye/python3-hid and look at source package .dsc file it seems to be a correct version too. |
You're right, it's the correct one. I just wish the packages had more consistent names... For example:
|
I've got to the point where .deb builds on Ubuntu eoan. Same metadata should be good for any recent Ubuntu and Debian versions. git clone -b add-debian-packaging git@github.com:keton/liquidctl.git
cd liquidctl
# install build dependencies
sudo apt install $(dpkg-checkbuilddeps 2>&1 | grep error | cut -d':' -f 4 )
# do build
dpkg-buildpackage -g --no-sign
#install resulting package
sudo apt install ../python3-liquidctl_1.3.0-1_all.deb now I've also set up test PPA here: https://launchpad.net/~keton22-gmail/+archive/ubuntu/liquidctl-test-ppa
Now I need to figure out how to setup similar repo for Debian. |
That's great, thanks! Can you use
You also probably need to include a man page; you find it in Thanks again! |
Oh, and I think you might need to split the package into two:
I didn't see this requirement in the Debian docs, but take a look at flake8. I also know that Fedora has this requirement (it's a common approach). |
I just released 1.3.0; note that |
I'm available/ready to assist you. But besides the few changes above that I know (or at least think) are necessary, I'm not sure what else has to be done. This is why I think it's time to open the RFP (and the ITP), and get some proper feedback. I haven't taken charge on either because I'm not a Debian user on the desktop.¹ I would either ask them to create a package I wouldn't use, or endlessly bother them with stupid questions because I'm not familiar with the distro. ¹ I've been running Arch on the desktop for several years. I run Ubuntu on servers and on containers, but mostly either using official packages or stuff we build/deploy with external tools. |
Great, thanks! |
Hi @David-Frick, did you make any progress? |
Hi!
Yeah, I have to admit I still have a few questions myself about how Debian's WNNP bugs work.
Actually, I think that new packages have to go to unstable anyway, at least until the next Debian stable release. But I could be totally wrong about this. It's just that I'm no used to seeing recent software packages on Debian stable. |
@David-Frick I still can't seem to find the ITP. Did you get the email? |
Also, feel free to C/C when necessary. |
You might have more luck with debian unstable (and more up-to-date software), assuming you're running new-ish hardware.
I would assume so, though some care might be necessary when testing or debugging, since they might be running different versions of dependencies and have slightly different default configurations. |
Thanks for the update... I'll also see who I know that's already involved in Debian and can help. I'm glad that you managed to fix your issues with sid. |
No news on my end. @Frick-David, filling the ITP requires you to send an email right? Maybe it has to be plain-text only? |
Thanks! |
I'm not sure, but I'll take a look. Thanks. |
That would be great! |
I cleaned up my comments for a potential future user who has more success to see the base issue and not my clutter. To summarize all my comments, to submit an intent to package, simply using the reportbug program and follow through with the prompts and options. The documentation for that is found here: https://www.debian.org/devel/wnpp/ The process is as follows: Overall, it is pretty straightforward and should not take longer than 10, 15 minutes, if that. After that a Debian team member (fingers crossed) should contact you about maintaining the package. It seems like a good topic to learn as it involves building the package, and keeping it up to date with the git repo for Debian Users. If you are looking to learn how Linux, Debian, and I would assume Systemd works, this is a great opportunity to learn some cool, neat stuff. You can even help out with other projects that you really like and want to help others with (Yay! Very nice!) @jonasmalacofilho might I suggest deleting comments to get this more to the top for other people to see. |
Hi, @Frick-David Sorry for not replying to you sooner. I was going to try Instead of deleting previous comments, I'll just link to that last one from the top post. |
No problem, just letting you know! Really hope this happens as this is a great repo! I will be chipping away at the GUI this weekend!
Best of luck!
|
I would like to have liquidctl 1.5 in Debian 11 (Bullseye) and Ubuntu 21.04. The schedule is a bit tight though, since both will start their feature freezes in early February. So we should probably get 1.4.2 packaged before that, only requiring a quick update after 1.5. @MarshallAsch, do you by any chance have any experience with this? |
Unfortunately I do not, I have never created a distro package before. |
RFP converted into an ITP (someone is working on it). In fact, it should soon be in Debian:
|
Update for ubuntu ? |
Ubuntu automatically takes packages from Debian unstable prior to the Debian Import Freeze date. For Ubuntu 21.04 Hirsute hippo, that date is 25 February. So as long as That said, you could try reaching out to some of Ubuntu's devs to see if there's another (more direct) way to get liquidctl into Ubuntu. And you could also contact the developers working on the Debian package and see if you can help in some way. I'm also available to assist (you and any Debian or Ubuntu developers). |
Help get liquidctl in Debian, Ubuntu and distros derived from them.
I need some volunteers...
The text was updated successfully, but these errors were encountered: