Date: Sun, 08 Jan 2006 02:47:34 -0800 From: Doug Barton <dougb@FreeBSD.org> To: Florent Thoumie <flz@xbsd.org> Cc: freebsd-rc@freebsd.org Subject: Re: rc.d/ldconfig change Message-ID: <43C0EDC6.4020308@FreeBSD.org> In-Reply-To: <200512300032.43923.flz@xbsd.org> References: <1134927080.744.14.camel@cream.xbsd.org> <43B38626.3050106@FreeBSD.org> <200512291331.00183.flz@xbsd.org> <200512300032.43923.flz@xbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C0EDC6.4020308>