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.43) id 1ECF90-0004eJ-6R for garchives@archives.gentoo.org; Mon, 05 Sep 2005 11:28:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j85BOLxN022215; Mon, 5 Sep 2005 11:24:21 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j85BLLTl020288 for ; Mon, 5 Sep 2005 11:21:21 GMT Received: from zh034160.ppp.dion.ne.jp ([222.3.34.160] helo=opteron246.suzuki-stubbs.home) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1ECF5Q-0001l3-JX for gentoo-dev@lists.gentoo.org; Mon, 05 Sep 2005 11:24:29 +0000 Received: by opteron246.suzuki-stubbs.home (Postfix, from userid 1000) id 0B932102DC1; Mon, 5 Sep 2005 20:25:28 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] 2005.1 profile gives devfs as virtual Date: Mon, 5 Sep 2005 20:25:25 +0900 User-Agent: KMail/1.8.90 References: <20050904141154.GA7622@sympatico.ca> <200509041924.52828.mike@gaima.co.uk> <200509051939.44309.jstubbs@gentoo.org> In-Reply-To: <200509051939.44309.jstubbs@gentoo.org> 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: multipart/signed; boundary="nextPart22524812.7SaCvatQ5f"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509052025.27868.jstubbs@gentoo.org> X-Archives-Salt: 57bf65d6-e327-4daa-a2a8-5e01109b6ea8 X-Archives-Hash: befd0246358b593cb89aa78d40320bcb --nextPart22524812.7SaCvatQ5f Content-Type: multipart/mixed; boundary="Boundary-01=_msCHDU2XkPjRXG3" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_msCHDU2XkPjRXG3 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 05 September 2005 19:39, Jason Stubbs wrote: > On Monday 05 September 2005 03:24, Mike Williams wrote: > > On Sunday 04 September 2005 15:11, Philip Webb wrote: > > > Having gone over to Udev, I went to unmerge Devfs & got a big red > > > warning. It appears that the 2005.1 profile gives Devfs as a virtual: > > > is this an oversight or is there a reason behind it ? > > > I would have assumed that Udev would now be the required device > > > manager. > > > > You installed using an earlier profile, obviously, when devfs was the > > default for virtual/dev-manager (otherwise you wouldn't have it > > installed). Because the profile depends on a virtual any attempt to > > remove a package providing that virtual will throw up the warning. > > Exactly the same symptom you're seeing with editors on -user. > > Yeah, you're right. virtual/editor is a terrible case. :/ > > Okay, it's possible that unmerging slotted packages of the one key may > break your system. How's about not warning if there's more than one > installed cat/pkg (rather than cat/pkg-ver) satisfying the profile atom > that is being triggered? This patch follows that rule. Specifically, only one provider yields a=20 warning (even with >1 slotted installation of said package) and multiple=20 providers doesn't. Care to give it a go? =2D-=20 Jason Stubbs --Boundary-01=_msCHDU2XkPjRXG3 Content-Type: text/x-diff; charset="utf-8"; name="syspkgs-multiple-providers-fix.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="syspkgs-multiple-providers-fix.patch" =2D-- emerge.orig 2005-09-05 20:23:26.655817448 +0900 +++ emerge 2005-09-05 20:21:58.586206064 +0900 @@ -2044,8 +2044,14 @@ for x in realsyslist: mycp =3D portage.dep_getkey(x) if mycp in portage.settings.virtuals: =2D syslist.extend(portage.settings.virtuals[mycp]) =2D syslist.append(mycp) + providers =3D [] + for provider in portage.settings.virtuals[mycp]: + if portage.db[portage.root]["vartree"].dbapi.match(provider): + providers.append(provider) + if len(providers) =3D=3D 1: + syslist.extend(providers) + else: + syslist.append(mycp) =20 global myopts mysettings =3D portage.config(clone=3Dportage.settings) --Boundary-01=_msCHDU2XkPjRXG3-- --nextPart22524812.7SaCvatQ5f Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDHCsnxvWNPsk/ZP4RAqmXAJ9JEgnH57bZZeij7VHpx9Iw4+pEZACeN8VB kyD+NbPjJTLzV8u4PMF5WHM= =zwzL -----END PGP SIGNATURE----- --nextPart22524812.7SaCvatQ5f-- -- gentoo-dev@gentoo.org mailing list