From owner-freebsd-multimedia@freebsd.org Mon Apr 13 11:12:21 2020 Return-Path: Delivered-To: freebsd-multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6DAEE2BAE22 for ; Mon, 13 Apr 2020 11:12:21 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4915Yc6BM4z4SYM for ; Mon, 13 Apr 2020 11:12:20 +0000 (UTC) (envelope-from fbl@aoek.com) Received: by mailman.nyi.freebsd.org (Postfix) id D46052BAE21; Mon, 13 Apr 2020 11:12:20 +0000 (UTC) Delivered-To: multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D428E2BAE20 for ; Mon, 13 Apr 2020 11:12:20 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (mail.yourbox.net [IPv6:2001:41d0:1:767d::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.yourbox.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4915Yb4lH1z4SYG for ; Mon, 13 Apr 2020 11:12:19 +0000 (UTC) (envelope-from fbl@aoek.com) Received: from mail.yourbox.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail.yourbox.net (8.15.2/8.15.2) with ESMTP id 03DBCAfL061424 for ; Mon, 13 Apr 2020 13:12:10 +0200 (CEST) (envelope-from fbl@aoek.com) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 13 Apr 2020 13:12:05 +0200 From: =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= To: multimedia@freebsd.org Subject: rcorder circular dependency in webcamd Message-ID: X-Sender: fbl@aoek.com User-Agent: Roundcube Webmail/1.2.0 X-Rspamd-Queue-Id: 4915Yb4lH1z4SYG X-Spamd-Bar: / X-Spamd-Result: default: False [-0.96 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.45)[-0.452,0]; R_DKIM_ALLOW(-0.20)[aoek.com:s=mailbox]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.90)[-0.899,0]; IP_SCORE(1.39)[ipnet: 2001:41d0::/32(4.92), asn: 16276(2.03), country: FR(0.00)]; DKIM_TRACE(0.00)[aoek.com:+]; DMARC_POLICY_ALLOW(-0.50)[aoek.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2020 11:12:21 -0000 Hi, webcamd daemon script generates a circular dependency in rcorder. The problem arises with the "BEFORE: devd" clause (which is not honored anyways). To dig it down: - webcamd requires explicitly netif and implicitly ldconfig (via dbus -> ldconfig) - devd itself requires netif and ldconfig explicitly, hence the cycle. In practice rc runs the scripts in this order: ldconfig ... netif devd ... webcamd So the "BEFORE" statement is, as a matter of facts, ignored. Can this be removed? I think it does, just asking here if anyone can shred some light. Thank you. Regards, -- José Pérez