From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EpsQD-0000p8-2o for garchives@archives.gentoo.org; Fri, 23 Dec 2005 19:17:45 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBNJFNJt009781; Fri, 23 Dec 2005 19:15:23 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBNJBuCr017289 for ; Fri, 23 Dec 2005 19:11:57 GMT Received: from zb101200.ppp.dion.ne.jp ([219.125.101.200] helo=opteron246.suzuki-stubbs.home) by smtp.gentoo.org with esmtpa (Exim 4.54) id 1EpsKa-0000eb-Bu for gentoo-dev@lists.gentoo.org; Fri, 23 Dec 2005 19:11:56 +0000 Received: by opteron246.suzuki-stubbs.home (Postfix, from userid 1000) id 3D92F201AA6; Sat, 24 Dec 2005 04:12:52 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] pkg_{pre,post}inst misusage Date: Sat, 24 Dec 2005 04:12:52 +0900 User-Agent: KMail/1.9 References: <200512231910.56795.jstubbs@gentoo.org> <200512240222.06574.jstubbs@gentoo.org> <20051223194238.3cbd8e64@eusebe> In-Reply-To: <20051223194238.3cbd8e64@eusebe> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512240412.52131.jstubbs@gentoo.org> X-Archives-Salt: 09c69365-fa6f-4d0f-9747-10235410a020 X-Archives-Hash: 805775140a576ec34e78e5a1131fb42b On Saturday 24 December 2005 03:42, Thomas de Grenier de Latour wrote: > On Sat, 24 Dec 2005 02:22:06 +0900 > > Jason Stubbs wrote: > > PackageA is installed, PackageB is installed, PackageB is > > uninstalled -> PackageA is broken. Does this case exist? > > Found two on my system: > > * "/usr/lib/X11/app-defaults -> /etc/X11/app-defaults" is > installed by several X11 apps (media-gfx/xfig, x11-misc/seyon, > x11-misc/xvkbd, and i would not be surprised there are others) This looks like something that a lower level X ebuild should be installing. The problem here is that there's also a bit of funny business going on when portage encounters a merge of some filetype being blocked by a different filetype. In the above case, if some X11 package installs the /usr/lib/X11/app-defaults symlink and all other apps install to /etc/X11/app-defaults then everything should be fine. > * "/usr/share/cups/model/foomatic-ppds -> /usr/share/ppd" is > installed by both net-print/foomatic-db and net-print/hplip. Again, given the name of the symlink, net-print/hplip should probably be installing directly to /usr/share/ppd. > Maybe this particular packages could be hacked to avoid need for > the symlinks (or the symlinks should be installed only by some > lower level, depended-on, packages?), but anyway it would be hard > to do a strict sanity check of the whole tree. And letting that to > "collision-protect" feature doesn't sound really like a short term > solution neither. So, basically, i don't see how you could safely > change this portage behavior atm (although i agree it would be a > good thing once done). Yep, it seems that changing the behaviour will lead to some breakage. However repoman is definately not capable of handling this sort of stuff. Also, none of the breakage (that you've revealed here at least) is that bad. Putting the relevant collision-protect changes into ~arch and following up with the actual unmerge changes should lead to minimal disruption on the user's side. -- Jason Stubbs -- gentoo-dev@gentoo.org mailing list