From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NxIlZ-0008H4-8c for garchives@archives.gentoo.org; Thu, 01 Apr 2010 11:40:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8244FE0AC0; Thu, 1 Apr 2010 11:40:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DD625E0907 for ; Thu, 1 Apr 2010 11:40:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6F9F31B402B for ; Thu, 1 Apr 2010 11:40:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.147 X-Spam-Level: X-Spam-Status: No, score=-2.147 required=5.5 tests=[AWL=0.452, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZGaFlMXSJUS3 for ; Thu, 1 Apr 2010 11:40:30 +0000 (UTC) Received: from mail-pz0-f175.google.com (mail-pz0-f175.google.com [209.85.222.175]) by smtp.gentoo.org (Postfix) with ESMTP id E15DF1B4065 for ; Thu, 1 Apr 2010 11:40:29 +0000 (UTC) Received: by pzk5 with SMTP id 5so425348pzk.0 for ; Thu, 01 Apr 2010 04:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=k9bsw54LK9tizWhtG6t+hY1dml02lsjDeOVmYDeykg4=; b=pUWAp9W9G3QO2/Ad6OwzaYvfNQNyTc6KWS6iNixep84aMu6WYUy1DMHeHbR67iyfOS 1DChMXeGAVrSCyzMEhyyX0CbpkAQOKB5jZ8bjVxF42aOor2V06IFUI8XbA48o4ZR/wJk 9cMK4P6cKVq5MsgxGpU0TAJ5aj0PhcyuYrRds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=uUyIN6xJFOqJnQpQociAShZcb40isk78sbjy2ZeDuPE9KZgBmwax0mVS1I/z8Q+MXZ FIQEYN+8/tdrbJNEpOMT6M8aYmov976+NEqBCnB6ldJ6Su7ZzKpkdyAIuANjW0z8GTaN RbTfE3p9NJbDft8ro9u3OfJZj5hoI37UYwwXk= Received: by 10.115.38.31 with SMTP id q31mr1038549waj.113.1270122029556; Thu, 01 Apr 2010 04:40:29 -0700 (PDT) Received: from smtp.gmail.com (c-67-171-128-62.hsd1.wa.comcast.net [67.171.128.62]) by mx.google.com with ESMTPS id 20sm6801087pzk.3.2010.04.01.04.40.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Apr 2010 04:40:28 -0700 (PDT) Received: by smtp.gmail.com (sSMTP sendmail emulation); Thu, 01 Apr 2010 04:38:36 -0700 Date: Thu, 1 Apr 2010 04:38:36 -0700 From: Brian Harring To: ciaran.mccreesh@googlemail.com Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] pkg_pretend USE validation and VALID_USE alternative Message-ID: <20100401113836.GN11663@hrair> References: <20100331194626.GG11663@hrair> <20100331205628.368fb02c@snowmobile> <20100401073109.GI11663@hrair> <20100401084102.2560f3a3@snowmobile> <20100401075608.GJ11663@hrair> <1270116620.17214.1.camel@gdartigu.lan.rep.sj> <20100401101825.GK11663@hrair> <1270118530.17214.4.camel@gdartigu.lan.rep.sj> <20100401105954.GL11663@hrair> <20100401122342.3c59a865@snowcone> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jnYfR+Q8IWTs8BNa" Content-Disposition: inline In-Reply-To: <20100401122342.3c59a865@snowcone> User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: 95ae187d-8b10-4a12-af89-2e555d46669a X-Archives-Hash: 16061e3b669f2fe938240eaed7309dc2 --jnYfR+Q8IWTs8BNa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 01, 2010 at 12:23:42PM +0100, Ciaran McCreesh wrote: > On Thu, 1 Apr 2010 03:59:54 -0700 > Brian Harring wrote: > > On Thu, Apr 01, 2010 at 12:42:10PM +0200, Gilles Dartiguelongue wrote: > > > > Basically, you want the PM to lie to the ebuild in some fashion. = =20 > > > > Since pkg_pretend is free form, it's effectively impossible to > > > > cover the scenarios it could check on- consider checking the > > > > kernel config/version, or checking the active jvm/python version. > > >=20 > > > except the kernel will not change during the upgrade, > >=20 > > Pardon, I wasn't clear- I was referring to kernel sources, not=20 > > the running kernel. >=20 > But if the kernel sources symlink is changed by installing new kernel > sources, there won't be a valid .config in the new directory anyway. Oddly enough, I actually have an ebuild that directly contradicts=20 that- used for managing my sources w/in kvms. > Thus, pkg_pretend doesn't introduce any new breakage. Regardless of my own usage, ironically you just inadvertantly pointed=20 out a whole class of false negatives pkg_pretend has. Specifically,=20 1) starting w/ a configured kernel at /usr/src/linux 2) merging a version of aufs2 requiring new kernel sources 3) emerge runs pkg_pretend. aufs2 does it's checks w/in pkg_pretend,=20 sees the old configured kernel and thinks things are fine 4) new kernel sources get merged. /usr/src/linux is no lnger a=20 configured kernel. 5) aufs2 blows up during its build due to an unconfigured=20 kernel. Since I'm in the mood for a Scooby Doo quote, "wraut-wroh". ~harring --jnYfR+Q8IWTs8BNa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAku0hbwACgkQsiLx3HvNzgdhogCgyNyHcCbrjuIfOWAqaNmOu0OT pYwAoKUgB4r8wdUA3fLNJYtb5Dz4KWQQ =uo6X -----END PGP SIGNATURE----- --jnYfR+Q8IWTs8BNa--