From owner-freebsd-current@FreeBSD.ORG Mon Jun 28 20:18:28 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 261C51065670 for ; Mon, 28 Jun 2010 20:18:28 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id C01E08FC1C for ; Mon, 28 Jun 2010 20:18:27 +0000 (UTC) Received: (qmail 27658 invoked by uid 399); 28 Jun 2010 20:18:26 -0000 Received: from localhost (HELO ?192.168.0.145?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 28 Jun 2010 20:18:26 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Date: Mon, 28 Jun 2010 13:18:25 -0700 (PDT) From: Doug Barton To: Garrett Cooper In-Reply-To: Message-ID: References: <201006262229.09747.hselasky@c2i.net> <4C26E6A5.4010803@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-message-flag: Outlook -- Not just for spreading viruses anymore! OpenPGP: id=1A1ABC84 Organization: http://SupersetSolutions.com/ MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1316551625-1277756306=:1598" Cc: freebsd-current@freebsd.org, Hans Petter Selasky Subject: Re: Patch for rc.d/devd on FreeBSD 9-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 20:18:28 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1316551625-1277756306=:1598 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 28 Jun 2010, Garrett Cooper wrote: > On Sat, Jun 26, 2010 at 10:50 PM, Doug Barton wrote: >> On 06/26/10 13:29, Hans Petter Selasky wrote: >>> Hi, >>> >>> Sometimes utilities that are started by devd require libraries outside >>> /usr/lib. One example is the webcamd utility which is started by devd upon USB >>> device insertion. What do you think about the following patch: >>> >>> --- devd        (revision 209463) >>> +++ devd        (local) >>> @@ -4,7 +4,7 @@ >>>  # >>> >>>  # PROVIDE: devd >>> -# REQUIRE: netif >>> +# REQUIRE: netif ldconfig >>>  # BEFORE: NETWORKING mountcritremote >>>  # KEYWORD: nojail shutdown >> >> ldconfig requires mountcritremote, so this patch would introduce a >> circular dependency. > > Should ldconfig require mountcritlocal instead? The operating theory is that we want to provide robust support for /usr/local not mounted locally. (And yes, I get the irony there.) :) What could be done is a 2-pass ldconfig, as is done for some other services. However if I understood the OP's problem correctly, that may not help here because devd is trying to start something that is in /usr/local. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso --0-1316551625-1277756306=:1598--