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 1Dx1YS-0005nx-G4 for garchives@archives.gentoo.org; Mon, 25 Jul 2005 11:55:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6PBrux3012105; Mon, 25 Jul 2005 11:53:56 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 j6PBqKrt032711 for ; Mon, 25 Jul 2005 11:52:21 GMT Received: from p061198140039.ppp.prin.ne.jp ([61.198.140.39] helo=opteron246.suzuki-stubbs.home) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1Dx1WH-0006RY-8d for gentoo-dev@lists.gentoo.org; Mon, 25 Jul 2005 11:53:19 +0000 Received: by opteron246.suzuki-stubbs.home (Postfix, from userid 1000) id D9D351032EF; Mon, 25 Jul 2005 20:53:43 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: Proposal: pre-emerge advisories Date: Mon, 25 Jul 2005 20:53:41 +0900 User-Agent: KMail/1.8.1 References: <1121318643.3180.6.camel@localhost.localdomain> <20050723151817.GA5395@kroah.com> <1122277877.4621.51.camel@lycan.lan> In-Reply-To: <1122277877.4621.51.camel@lycan.lan> 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="nextPart2655144.cKTKWGDWuT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200507252053.43553.jstubbs@gentoo.org> X-Archives-Salt: 29219b0d-a35d-4ba8-9808-8032174719b5 X-Archives-Hash: a1c8f35f3968217bec18cb4b29bc5dff --nextPart2655144.cKTKWGDWuT Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 25 July 2005 16:51, Martin Schlemmer wrote: > On Sat, 2005-07-23 at 11:18 -0400, Greg KH wrote: > > On Sat, Jul 23, 2005 at 10:53:15AM -0400, Alec Warner wrote: > > > Georgi Georgiev wrote: > > > > Just to make sure I am not missing something. > > > >=20 > > > > Does this cover the > > > >=20 > > > > - If you are upgrading from a version of udev prior to 046 ... > > > > - If you are upgrading from a version of udev prior to 050 ... > > > > - If you are upgrading from a version of udev prior to 057 ... > > > > - If you are upgrading from a version of udev prior to 059 ... > > > >=20 > > > > cases automatically? I.e. *not* showing irrelevant warnings on every > > > > upgrade/rebuild. > > > >=20 > > >=20 > > > The writer of pkg_warn() could do this, it's still in the ebuild and > > > could use the normal ebuild functions to determine what the user is > > > running ( has_version() and whatnot ) and then run a case statement o= n that. > >=20 > > Great, anyone care to send me a patch for the udev ebuild to do this so > > not everyone sees this message? It will only get longer over time... > >=20 >=20 > Something like this maybe? (Yes, I know using $T will be frowned upon, > but not much else you can do. Also, might use has_version(), but that > is more difficult to parse, and I figured you normally only want those > for system udev ...) Combining the pkg_preinst and pkg_postinst parts (and removing the usage of $T ;), that pretty much shows exactly what the proposed pkg_warn would look like. Only difference being that it would be executed before emerging starts. =2D-=20 Jason Stubbs --nextPart2655144.cKTKWGDWuT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC5NLHxvWNPsk/ZP4RAjMzAJ4qKrEshvWOHeVQZNjZvXMXjj8MMQCfdh2C h9XmShhuGXgFbTkhN1JY8Ww= =Bbxr -----END PGP SIGNATURE----- --nextPart2655144.cKTKWGDWuT-- -- gentoo-dev@gentoo.org mailing list