Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2007 12:29:07 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        pav@FreeBSD.org
Cc:        ports@FreeBSD.org, Brooks Davis <brooks@FreeBSD.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Specs for saving old shared libs
Message-ID:  <464DFE83.5010409@FreeBSD.org>
In-Reply-To: <1179437517.8912.5.camel@ikaros.oook.cz>
References:  <20070502193159.GB42482@xor.obsecurity.org>	 <463F7236.4080108@FreeBSD.org>	<20070507184231.GA50639@xor.obsecurity.org>	 <op.try3lgvv9aq2h7@mezz.mezzweb.com>	 <20070507201448.GA52651@xor.obsecurity.org>	 <op.try4tyhd9aq2h7@mezz.mezzweb.com>	 <20070507204414.GA53358@xor.obsecurity.org>	 <20070507205850.GA34916@lor.one-eyed-alien.net>	 <20070507220659.GC78665@graf.pompo.net>	 <20070507222146.GA57768@xor.obsecurity.org> <464CB5AA.7040304@FreeBSD.org> <1179437517.8912.5.camel@ikaros.oook.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Pav Lucistnik wrote:
> Doug Barton píše v c(t 17. 05. 2007 v 13:06 -0700:
> 
>> What might 
>> be useful in this regard is if someone were to start a new thread 
>> describing exactly what the desired behavior is, and ideally to 
>> include a description of how portupgrade does it now.
> 
> Just before old package deinstall, scan the list of files installed by
> old port (pkg_info -g). Match .so.X files under PREFIX/lib and any
> ldconfig'ed paths 1*), copy them away to /usr/local/lib/compat/pkg.

That sounds pretty straightforward. My first instinct is to implement 
this by matching the output of 'ldconfig -r', does that sound like 
what you're asking for?

> After installation of new port, match .so.X files again. If same
> filenames appear, remove old copies from /usr/local/lib/compat/pkg.
 >
> Finally, ldconfig -r /usr/local/lib/compat/pkg

Ok, that makes sense too. This doesn't sound too hard to implement, so 
I'll take a look at adding this as an option soon.

Doug

-- 

     This .signature sanitized for your protection



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?464DFE83.5010409>