From owner-freebsd-rc@FreeBSD.ORG Sun Jan 8 10:47:37 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 463F016A41F for ; Sun, 8 Jan 2006 10:47:37 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id C4EA243D46 for ; Sun, 8 Jan 2006 10:47:36 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 50152 invoked by uid 399); 8 Jan 2006 10:47:35 -0000 Received: from localhost (HELO ?192.168.1.100?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 8 Jan 2006 10:47:35 -0000 Message-ID: <43C0EDC6.4020308@FreeBSD.org> Date: Sun, 08 Jan 2006 02:47:34 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051226) MIME-Version: 1.0 To: Florent Thoumie References: <1134927080.744.14.camel@cream.xbsd.org> <43B38626.3050106@FreeBSD.org> <200512291331.00183.flz@xbsd.org> <200512300032.43923.flz@xbsd.org> In-Reply-To: <200512300032.43923.flz@xbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2006 10:47:37 -0000 Florent Thoumie wrote: > On Thursday 29 December 2005 13:30, Florent Thoumie wrote: >> On Thursday 29 December 2005 07:45, Doug Barton wrote: >>> Florent Thoumie wrote: >>>> Hum, I'm actually using paths stored in files located in ld.so.conf.d/ >>>> directories. >>>> >>>> For example, you could have : >>>> >>>> # cat /usr/local/libdata/ld.so.conf.d/compat4x >>>> /usr/local/lib/compat >>> Ok, I think I'll understand this better when I see a complete example >>> implementation. Sorry for being so dense. :) >> No problem, here is the new patch. I'm working on the ports part right >> now. >> >> You'll notice that I've turned my `ls ${i}` into `find ${i} -type f` which >> does the right thing. Also, I've had a look at the scripts your >> compatiblity ports are installing and since there's a special handling on >> amd64, I've added some lines to rc.d/ldconfig. I haven't found a way to do >> what I wanted without duplicating ldconfig_local_dirs and ld.so.conf.d >> directories. Maybe you'll be more creative than I am. > > I think I forgot the most important thing, attaching the patch. You attached the patch, but the list stripped it. I just committed your code with 3 minor modifications. 1. I added the ldconfig directories to BSD.x11.dist as well as BSD.local.dist. 2. I had to change the ldconfig32_local_dirs variable name. The rc.d system requires all variables for a given name to be name_foo. 3. s/32-bits/32-bit/. I also just committed an update to misc/compat[45]x to use this new mechanism. I know that you have plans for developing this in bsd.port.mk, but as we discussed I think it's useful to start exercising this mechanism, and it works great. :) Thanks again for coming up with this very creative solution. Doug -- This .signature sanitized for your protection