Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661324 - =sys-apps/fwupd-1.1.0 on OpenRC: The name org.freedesktop.fwupd was not provided by any .service files
Summary: =sys-apps/fwupd-1.1.0 on OpenRC: The name org.freedesktop.fwupd was not provi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-16 15:10 UTC by Till Schäfer
Modified: 2018-07-18 09:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fwupd openrc init script (fwupd,291 bytes, text/plain)
2018-07-16 15:59 UTC, Till Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2018-07-16 15:10:00 UTC
When using fwupd-1.1.0 with the openrc init system I get the error "The name org.freedesktop.fwupd was not provided by any .service files" for many operations (e.g., update, get-devices). 

It seems to me that the daemon is no longer started automatically. When I start /usr/libexec/fwupd/fwupd manually, the issue is gone. On my systemd system, a fwupd service is installed and running.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-16 15:19:24 UTC
Wanna write up an openrc init script for this package?
Comment 2 Till Schäfer 2018-07-16 15:59:24 UTC
Created attachment 539726 [details]
fwupd openrc init script

here it is
Comment 3 Till Schäfer 2018-07-16 16:04:42 UTC
maybe one should mention in the packages postinstall message, that the service needs to be started manually now.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-07-16 16:16:00 UTC
Thank you very much!

Out of curiosity... why the "before xdm" in depend section?
Comment 5 Till Schäfer 2018-07-16 16:43:23 UTC
I have seen in the systemd service file, that the service should start before gdm. I tried to stay as close the the upstream systemd service as possible, as there might be a dependency on fwupd daemon to be runnning from some gnome userlevel tools. Thus, I tried to now break thinks I do not know about.
Comment 6 Till Schäfer 2018-07-16 16:46:16 UTC
upstream git history does also not give any insight: https://github.com/hughsie/fwupd/blame/master/data/fwupd.service.in
Comment 7 Larry the Git Cow gentoo-dev 2018-07-18 09:50:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c032389f603015319009857be202c0a9254147e

commit 9c032389f603015319009857be202c0a9254147e
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-07-18 09:47:07 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-07-18 09:50:25 +0000

    sys-apps/fwupd: Revbump to add openrc init script
    
    which was kindly contributed by
    Till Schäfer <till2.schaefer@uni-dortmund.de>
    
    Closes: https://bugs.gentoo.org/661324
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 sys-apps/fwupd/files/fwupd                               | 13 +++++++++++++
 .../fwupd/{fwupd-1.1.0.ebuild => fwupd-1.1.0-r1.ebuild}  | 16 ++++++++++++++++
 2 files changed, 29 insertions(+)