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 1QauIc-0002P3-5j for garchives@archives.gentoo.org; Sun, 26 Jun 2011 18:43:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0481A1C172; Sun, 26 Jun 2011 18:43:04 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 2B3B81C0FD for ; Sun, 26 Jun 2011 18:42:39 +0000 (UTC) Received: by vws13 with SMTP id 13so3652439vws.40 for ; Sun, 26 Jun 2011 11:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=c78i2NVB7226fTmGKU/jhkTh6VHtyZFZV9PA0zLG8jU=; b=f9jQloX7uJeZbPIAU6qWNaBUH3NxbTH9HmG5bJu+rp1GRyBj0XA+a9Dm2RenSiqgE0 4N17kHuBHktQQheYpSgEeMyLjE+T4L0eSgeQPMx/PXdS7r5XGLFggL6BwpFahjn1hBBn /Vzzax5QNtCiEVil9ujjJqikI7jbFppakeXdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=WL6rgCH4DtmIAvriqE395OPIbMvV/H7CXeJbz0IocW3nF93MfQWeRRu8ma1BDOXt9g 7xtqs72QiiKWM5d7AUyesN+k3VtT2ulbucBUqG/sQmdsMC0VBzBVlghK0KON3T2IcRFp Py+7vFGvZ163wJQTH0GbdvzpVPZviHFKXMMxQ= 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 Received: by 10.220.43.146 with SMTP id w18mr1871975vce.268.1309113759242; Sun, 26 Jun 2011 11:42:39 -0700 (PDT) Received: by 10.220.163.200 with HTTP; Sun, 26 Jun 2011 11:42:39 -0700 (PDT) In-Reply-To: <201106261712.27665.reavertm@gmail.com> References: <20110626080257.12d523ef@googlemail.com> <201106261712.27665.reavertm@gmail.com> Date: Mon, 27 Jun 2011 06:42:39 +1200 Message-ID: Subject: Re: [gentoo-dev] Are tags just sets? From: Kent Fredric To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 1a0578ffd946538c56725b0cd9adae14 On 27 June 2011 03:12, Maciej Mrozowski wrote: > > I see major disadvantage with this approach. It's painful to maintain. > Imagine hundreds of different tags, with each package having at least two > tags. You certainly don't expect anyone to be able to maintain that. > Also those files cannot be generated since there needs to be some origina= l > source of tags information to generate such 'sets' from. This problem is in my mind somewhat twofold. There are 2 ways to approach applying a tag. 1. Opening each package and setting its tags ( package -> tags ) 2. Opening a "tag" file and setting its packages ( tag -> package ) And both approaches are very handy. 1. Is useful because it makes it easy to apply a singular tag surgically. 2. Is useful because it makes it easy to apply one tag to a raft of package= s. However, if one wishes to implement something that works without touching anything remotely part of portage itself, and one wants a fast and easy proof of concept , number 2 is the preferable approach. ( Because you can make a basic example set of tags easily simply with a bit of "find > file" for each tag you wish to create ) Ultimately I think we'll see both forms emerging, long term we'll probably edit metadata.xml, and the data will be aggregated to form a singular fast-to-read tag index for each tag. But we can develop the other half of the system, the "Work with an existing tag index of sorts" /now/ and get a working proof of concept without needing to derail ourselves bikeshedding how the portage side of things will work. ( And I think we can expect to see tools emerge for maintaining package tags, whether it be surgically or low-orbit-ion-cannon grade precision ) --=20 Kent perl -e=C2=A0 "print substr( \"edrgmaM=C2=A0 SPA NOcomil.ic\\@tfrken\", \$_= * 3, 3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" http://kent-fredric.fox.geek.nz