Having "REQUIRE dbus BEFORE devd" in the rc.d/webcamd script creates a circular dependency which breaks my system boot.
I have removed the "BEFORE devd" from my system to restore boot, but I'm not sure what the consequences of this are. If webcamd needs to inform devd of something should it not be possible to defer whatever devd may do until webcamd has started and then signal devd to do the work webcamd requires once webcamd has started?
Auto-assigned to maintainer hselasky@FreeBSD.org
I'll look into this issue again in the coming week.
Is this still relevant?
There were some off-list discussions about this.
If you look at hal_init() in the webcamd sources, you see webcamd is waiting for hald.
I think the right solution is to drop the dbus dependency. It should be fine regardless.
Summed up: No need for REQUIRE dbus in the webcamd rc.d .
(In reply to Hans Petter Selasky from comment #4)
Well, the rc script still requires dbus. What should be done to close this PR?
Since last time, HALD, support has been completely removed from webcamd, and webcamd no longer interacts with HALD nor DBUS.
Can you update the patch, so we can move on?
diff --git a/multimedia/webcamd/Makefile b/multimedia/webcamd/Makefile
index e544f92a83d1..bd91ec70c2ec 100644
@@ -3,6 +3,7 @@
diff --git a/multimedia/webcamd/files/webcamd.in b/multimedia/webcamd/files/webcamd.in
index fbc124fe86d8..b9e6b66b5f4b 100644
@@ -1,7 +1,7 @@
# PROVIDE: webcamd
-# REQUIRE: FILESYSTEMS netif dbus kld
+# REQUIRE: FILESYSTEMS netif kld
# KEYWORD: shutdown
OK to push?
You have my blessing!
A commit in branch main references this bug:
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2021-09-17 15:51:53 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2021-09-17 15:53:03 +0000
multimedia/webcamd: Do not require dbus in the rc script.
Approved by: hselasky (maintainer)
multimedia/webcamd/Makefile | 1 +
multimedia/webcamd/files/webcamd.in | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)