From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IfCMd-0007N0-EO for garchives@archives.gentoo.org; Tue, 09 Oct 2007 10:30:59 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l99AKWei025803; Tue, 9 Oct 2007 10:20:32 GMT Received: from castor.sshunet.nl (castor.sshunet.nl [145.97.192.41]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l99AIcCe023368 for ; Tue, 9 Oct 2007 10:18:38 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by castor.sshunet.nl (Postfix) with ESMTP id 985E457C030 for ; Tue, 9 Oct 2007 12:18:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at castor.sshunet.nl Received: from castor.sshunet.nl ([127.0.0.1]) by localhost (castor.sshunet.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qjBxWb2Ju-8B for ; Tue, 9 Oct 2007 12:18:38 +0200 (CEST) Received: from [145.97.222.239] (239pc222.sshunet.nl [145.97.222.239]) by castor.sshunet.nl (Postfix) with ESMTP for ; Tue, 9 Oct 2007 12:18:38 +0200 (CEST) Message-ID: <470B55EE.1000909@gentoo.org> Date: Tue, 09 Oct 2007 12:20:30 +0200 From: "Marijn Schouten (hkBst)" User-Agent: Thunderbird 2.0.0.6 (X11/20070802) 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: use flags -> use options References: <47090820.7060506@gentoo.org> <20071007200938.7e1cebb3@gentoo.org> <20071007191225.GB10856@eric.schwarzvogel.de> <20071008044348.a5fc3297.genone@gentoo.org> <470A1840.10505@gentoo.org> <20071008214058.3d647e4e.genone@gentoo.org> In-Reply-To: <20071008214058.3d647e4e.genone@gentoo.org> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 5d02085e-a6f0-4cb2-846f-3cdcafd381a4 X-Archives-Hash: 665707f127140cef12b1c3e82f1e1d92 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marius Mauch wrote: > So what you want is a USE_EXPAND version that only allows one value > per variable. That wouldn't be terribly difficult to do. I extremely dislike that characterization. What I want is use flags with more than two possible values. I see no reason to warp that to fit USE_EXPAND. There may even be uses where this could be used in combination with USE_EXPAND. > As for your idea (ignoring implementation issues), I'd expect that > sooner or later people will request multivalue functionality as well, > so we'd have the same situation there. Right, current use flags are "2 options, pick 1", I am requesting "n options, pick 1" and you're saying "n options, pick m, (m Also in the given example, how > would the user/package manager actually know what values were > valid/available for "impl"? That is a good question. If all possible options need to be specified a syntax should be developed for that. How about: IUSE="+default_on_flag normalflag multiwayflag={option1,option2,+default_option} -default_off_flag", or IUSE="+default_on_flag normalflag multiwayflag={option1 option2 +default_option} -default_off_flag", or IUSE="+default_on_flag normalflag multiwayflag=(option1 option2 +default_option) -default_off_flag". In use.[local.]desc the multiwayflag description should explain what each alternative means. Marijn - -- Marijn Schouten (hkBst), Gentoo Lisp project , #gentoo-lisp on FreeNode -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHC1Xup/VmCx0OL2wRAnrfAJkBLMTuzlpu6g4uhZW6429hJ3gsUgCgr8h7 2cX5/qHGbj4Y3GgDCw/uSrk= =pVPW -----END PGP SIGNATURE----- -- gentoo-dev@gentoo.org mailing list