rc.d/ldconfig change

Doug Barton dougb at FreeBSD.org
Sun Jan 8 02:47:37 PST 2006


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



More information about the freebsd-rc mailing list