Date: Mon, 28 Jun 2010 13:18:25 -0700 (PDT) From: Doug Barton <dougb@FreeBSD.org> To: Garrett Cooper <yanefbsd@gmail.com> Cc: freebsd-current@freebsd.org, Hans Petter Selasky <hselasky@c2i.net> Subject: Re: Patch for rc.d/devd on FreeBSD 9-current Message-ID: <alpine.BSF.2.00.1006281314030.1598@qbhto.arg> In-Reply-To: <AANLkTileMqv0RqF-RYSZu0fueu9q0NcNtZlYj6x-QFPf@mail.gmail.com> References: <201006262229.09747.hselasky@c2i.net> <4C26E6A5.4010803@FreeBSD.org> <AANLkTileMqv0RqF-RYSZu0fueu9q0NcNtZlYj6x-QFPf@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dougb@freebsd.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1006281314030.1598>