From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 49AB61384B4 for ; Wed, 2 Dec 2015 12:04:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73D4421C063; Wed, 2 Dec 2015 12:04:24 +0000 (UTC) Received: from a1www.kph.uni-mainz.de (a1www.kph.uni-mainz.de [134.93.134.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D42B21C00A for ; Wed, 2 Dec 2015 12:04:22 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.9/8.14.7) with ESMTP id tB2C4KVt008993 for ; Wed, 2 Dec 2015 13:04:20 +0100 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.8/8.14.2) with ESMTP id tB2C4JhB010133; Wed, 2 Dec 2015 13:04:20 +0100 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.8/8.14.8/Submit) id tB2C4JFS010129; Wed, 2 Dec 2015 13:04:19 +0100 Message-ID: <22110.56899.534907.395201@a1i15.kph.uni-mainz.de> Date: Wed, 2 Dec 2015 13:04:19 +0100 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFD: Replacement for versionator.eclass in PMS (for EAPI 7?) In-Reply-To: <20151202120332.25387828@gentoo.org> References: <22106.6463.805834.391338@a1i15.kph.uni-mainz.de> <20151202120332.25387828@gentoo.org> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller 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; boundary="pgp+signed+Vi3wZhlmC7V8e9t"; micalg=pgp-sha256; protocol="application/pgp-signature" X-Archives-Salt: a7df61e7-9cde-4709-8f4a-a0e84699895d X-Archives-Hash: 6b1c4cf390a97ddece783465f8455594 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --pgp+signed+Vi3wZhlmC7V8e9t Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>>>> On Wed, 2 Dec 2015, Alexis Ballier wrote: > What's the point, need or advantage in moving this to all-ebuild-scope? > Usually eclass refactor/api cleanup are done in a -r{n+1} while > deprecating -rn. This would have the advantage that you can quickly > post a complete implementation and get wider reviews. A proof-of-concept implementation for the two version manipulation functions is here: https://482170.bugs.gentoo.org/attachment.cgi?id=418072 Add some comments and you'll have a working eclass. :) Some details are still to be discussed, e.g. what should be the behaviour if the version string starts or ends with a separator? Also version_test is missing, but the idea there was to avoid redundancy and use the implementation that already exists in the package manager (which does version comparison all the time). This is one of the reasons for moving it to the package manager. Ulrich --pgp+signed+Vi3wZhlmC7V8e9t Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCAAGBQJWXt4/AAoJEMMJBoUcYcJzUYoH/0/41NGwaOaPPT2u9zH03O4l Y0R5LgNE/EW0eeQpNyETOrHeoX4heUtejQvpDyWzzRdJaDZdhqWHOxMggra6SReN fQcwsISE39F1xluLe5xR4XleHidX9pM7qGn1IgqKJYAWxUTct+zE8YSxkis+TUjZ P0zBmcXq0xCVAIq4Kee0pFzCDWK32hitDCPNZ1sqZy56XnIulRmHXOAUiX4qRflz /h8tSW6a6zkzby6ZQp8Y+WQ9BjxjScv2BzxW4KlDFyERzzITfpilTSOcmrAeX8tx QeYFg5wW3wZdI/PyMtwSiWb12DUVis0Hw2SVMdB95g00QitoGj10msCNlJkjvlU= =9mIu -----END PGP SIGNATURE----- --pgp+signed+Vi3wZhlmC7V8e9t--