-
Notifications
You must be signed in to change notification settings - Fork 49
Gentoo overlay #77
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
Comments
Hi! Thanks for the work you've done! Your PR is breaking the installation: https://travis-ci.org/hakavlad/nohang/builds/632553221 Could you fix it, please? Make PR in dev branch, please. |
No worries. I have the issue fixed in my fork. KAMiKAZOW has suggested that the copyright notice be dropped, and they also note that the OpenRC addition and envsubst changes are actually mixed in. What I can do is cancel the existing 2 pull requests and replace them with a single one with the fixed systemctl/openrc check + drop licence header, and envsubst change. How does this sound? |
I would like to get 2 pull requests to test them separately.
Could you do the first pull request in |
Sure, no worries. I will update the pull requests shortly. |
Awesome. So, regarding OpenRC we could 1) check for systemctl/openrc within the (1) is potentially fragile, but should be ok. What are your thoughts? |
At least we already have some precedent:
-- https://github.com/rfjakob/earlyoom#download-and-compile In fact, I do not know which option is better and have no experience with non-systemd. But it seems that the way used in earlyoom simply works. Could you check how earlyoom can be installed in Gentoo, and does it work well with earlyoom? Maybe we can do it this way if it works well. |
Yeah it's not obvious to me which approach is best either. Anyway, so earlyoom just works, but they have a little extra complexity. Their I think the simplest possible change, with minimal duplication is best:
So from the user perspective installation is identical, with the addition of and OpenRC recipe. If someone wants to add runit/sysv or whatever, it's just another recipe. This is then less fragile and less branching than checking for From a packaging perspective, systemd distros don't change it's still make install. From my perspective, I can check if systemd or not, and just call the correct recipe. I've updated my dev branch and overlay to reflect these changes. Do you have any comments or suggestions? |
@MonkeysAreEvil Seems like Makefile is ready to update. Could you add This may be like follow:
|
Slightly off topic, but ebuild fails with this:
|
Cool cool. I have update my fork and overlay and everything appears to be working. I'll test it a bit more later and update the pull request if it's all ok. Let me know if there are any questions/comments. cheers |
@MonkeysAreEvil Makefile updated, please test again. If everything appears to be working I'll waiting for a PR that fixes readme: how to install nohang on Gentoo. |
Thanks! Actually, there is a small bug, which I have just fixed, with installing the init files. |
@MonkeysAreEvil how to enable and start the service after installing?
|
I believe that issue is fixed in my fork. If we can confirm that is correct, I can do a new pull request. |
Ok, please make a PR. And please update readme: how to install in Gentoo. |
Fix Makefile to install on openrc-based systems ec9d848 |
Ah, excellent. Sorry, life is very busy at the moment. Everything appears to be working for me. I will open a PR for the readme shortly. |
To complement my pull requests, I have updated my overlay to include sys-process/nohang. If you're happy with all this, can we get the README updated to note this?
In principle I can support both dev and stable versions, which could be preferable.
The text was updated successfully, but these errors were encountered: