From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8724 invoked from network); 28 Nov 2004 17:19:55 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 28 Nov 2004 17:19:55 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CYSiI-0002zI-UR for arch-gentoo-portage-dev@lists.gentoo.org; Sun, 28 Nov 2004 17:19:54 +0000 Received: (qmail 32725 invoked by uid 89); 28 Nov 2004 17:19:53 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 11363 invoked from network); 28 Nov 2004 17:19:53 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=E/7DLYzhoGrdAlIVPEGQbQylIgCvYEmLwbwPBDODaemC77ihoasTGcVBo5jE0mb+35sv2C3bVNCDBFKej1wBwALKDOE+3/L5CYn/gXWy6sT8E2PwiMMETfDmO9fBuwFXCAcqFxdOKyFfBDuBiFtEwGPia16uoZ0DQfqFCBnX4Mw= Message-ID: <9ef20ef3041128091960b07a2d@mail.gmail.com> Date: Sun, 28 Nov 2004 15:19:52 -0200 From: Gustavo Barbieri Reply-To: Gustavo Barbieri To: gentoo-portage-dev@lists.gentoo.org In-Reply-To: <200411280341.54536.luke-jr@utopios.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <9ef20ef3041127151046107fb5@mail.gmail.com> <200411280341.54536.luke-jr@utopios.org> Subject: Re: [gentoo-portage-dev] Current portage well designed, but badly used X-Archives-Salt: 43115ead-d405-459d-b4cd-935fd45344ba X-Archives-Hash: 75e69e5086b6f89fce49c467f500d386 On Sun, 28 Nov 2004 03:41:53 +0000, Luke-Jr wrote: > On Saturday 27 November 2004 11:10 pm, Gustavo Barbieri wrote: > > Categories are mixed: there is a net-www/apache and net-www/mod_* > > (apache modules), but there is a more convenient category www-apache/ > > for them. This is one example, there are more mistakes. There is any > > plan to fix them in next portage releases? > > IIRC, net-www is an old category that should be www-* sometime in the future. > I believe this change was in a notice on the main site a while ago. Sorry, I didn't follow gentoo news very much, I'll start to. > > Some packages use numbering version padded with zero, that's good to > > list with shell functions, but it's bad because you can't change them > > to numbers and them back to string. For example: > > mail-mta/nullmailer-1.00_rc7-r4. If you Convert it to integers, it > > becomes 1.0 and you can't map back to the ebuild. > > Versions are *not* decimal numbers, but a set of three integers. Version 1.15 > is a higher version than 1.2. It might be seen as nitpicking, but "integers" > generally always refers to a whole number (1 or 2, not 1.3 or 2.4) Yes, I know that. In my fast portage module I convert version to a PackageVersion class, that split the version according to naming policy, then I build a list of version numbers as integers and the last element is a string, "" if no letter modifier or the letter itself if there is one, like openssl. Then i have one suffix, converted to a tuple of 2 integers, the first is the position of the "alpha|pre|rc|..." order and the second is the modifier number. Then I have the release version. My problem was that if I convert: app-misc/gcal/gcal-3.01.ebuild, then I have: (3,1) as version, back to string as "3.1" instead of "3.1". To overcome this I keep the original version string and use the numbers just to compare versions. > > Portage provides metadata.xml, cool. But it's hardly used :( > > metadata.xml seems to provide tags for maintainers, changelogs and > > long description, many (most?) packages don't use them. > > They should. It's a semi-gradual process. I did a lot of ebuilds but never realised of them! http://www.gentoo.org/doc/en/ebuild-submit.xml doesn't mention that, however http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml does. Maybe people doen't care about it because it's not that evident or required to accept the ebuild. -- Gustavo Sverzut Barbieri --------------------------------------- Computer Engineer 2001 - UNICAMP GPSL - Grupo Pro Software Livre Cell..: +55 (19) 9165 8010 Jabber: gsbarbieri@jabber.org ICQ#: 17249123 GPG: 0xB640E1A2 @ wwwkeys.pgp.net -- gentoo-portage-dev@gentoo.org mailing list