-
Notifications
You must be signed in to change notification settings - Fork 72
Added rpm build using cargo generate-rpm #403
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Fedora 40.
Before this worked, I did need to run cargo install cargo-generate-rpm
in order for the cargo generate-rpm
command to be available.
After that, running make rpm
produced an RPM file that I was able to install. After installation, I needed to manually start com.system76.PowerDaemon.service
before subcommands such as system76-power graphics
would work (before that, I got org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
).
If either of those sound like something additional needs to be added to the code/config to reduce the amount of manual steps, then further changes can be made. Otherwise, this seems to work as expected. @pop-os/engineering can decide whether this is something we want to include upstream.
I created, this, and am glad to see its getting traction! That said, I do have a couple issues running it on fedora I haven't really spent any time debugging.
com.system76.PowerDaemon.service logs
Actually, now that I take the time to look at it, it looks like something's happening with the System logs
Not at all related to packaging this as an RPM, though 😉 |
Added metadata needed to Cargo.toml, and an `rpm` target to the Makefile
@jacobgkau Actually, thanks for spurring me to investigate this! 😀 It looks like system76-power conflicts with the built-in power-profile-daemon: pop-os/pop#3234 From my logs, it looks like power-profile-daemon switching modes is what causes system76-power to stop. I added a |
Added metadata needed to Cargo.toml, and an
rpm
target to the Makefile.Caveat: I know very little about building RPMs, so I don't know if any of this is right or best-practices. However, it works on my machine™.