From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-dev+bounces-34699-garchives=archives.gentoo.org@lists.gentoo.org>) id 1LeQ88-0000eP-5o for garchives@archives.gentoo.org; Tue, 03 Mar 2009 08:37:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01D28E0383; Tue, 3 Mar 2009 08:37:35 +0000 (UTC) Received: from mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.180]) by pigeon.gentoo.org (Postfix) with ESMTP id B3E0EE0383 for <gentoo-dev@lists.gentoo.org>; Tue, 3 Mar 2009 08:37:34 +0000 (UTC) X-RZG-AUTH: :K2kKYU+nW/MMMlTokcN5Yot1/Bj/FTl+WviP6RIJci0HRMpbh/x+X6ShOQvVOjw+sRFSckIHJ9Zn X-RZG-CLASS-ID: mo05 Received: from terra.solaris (p57A4FFCF.dip.t-dialin.net [87.164.255.207]) by post.strato.de (mrclete mo58) (RZmta 18.23) with ESMTP id p02979l238b84w ; Tue, 3 Mar 2009 09:37:24 +0100 (MET) Date: Tue, 3 Mar 2009 09:37:41 +0100 From: Christian Faulhammer <fauli@gentoo.org> To: gentoo-dev@lists.gentoo.org Cc: kumba@gentoo.org Subject: [gentoo-dev] Re: EAPI stored in metadata.xml (was: Collecting opinions about GLEP 55 and alternatives) Message-ID: <20090303093741.4bb87517@terra.solaris> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.12.11; i686-pc-linux-gnu) Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/l2nJ421WdTn.AhsB0tNFUBa"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: 28d41467-cff8-4188-8b23-5b2225423b15 X-Archives-Hash: f26b89881ffe162d5873a5b0728e5661 --Sig_/l2nJ421WdTn.AhsB0tNFUBa Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, sorry, if this post doubles some other posts already done by others...I wrote it during a journey and haven't catched yet with the discussion. Kumba <kumba@gentoo.org>: > Kumba wrote: > >=20 > > I was talking to Alec last night in -dev (yes, I'm still alive), > > and I tossed out the idea of using metadata.xml instead of mangling > > the ebuild filename or even sticking it as the first line in the > > ebuild (as a hashbang or something gentoo-specific, for example). >=20 > Fleshing out more (And to solicit more thought on this idea -- > insane?). Thanks for backing your initial thoughs with some more substance, although I see some fundamental problems. > Would, to specify them as EAPI=3D2 in metadata.xml, be encoded as (just > an example -- suggest other formats): In my eyes metadata.xml should contain only non-essential informational data. The description of a local USE flag in metadata.xml is ok, as that text is not really essential for ebuild operation. I remember before EAPI 1 that having a default USE flag was some obscure operation in package.use.default. A user/developer could be completely clueless about that feature and annoyed because some USE flag is pulled in he did not want. Having all sourcing/install/processing information near or inside the ebuild makes it easier (I know we still have use.mask and the like). Now your proposal moves essential (to the package manager, where USE flag descriptions are not) metadata out of the ebuild. What if a submitted ebuild to Bugzilla or by mail comes in? Without any special surrounding information ("Hey this ebuild is EAPI 5") you would have to look up in the PMS which EAPI is appropriate or wonder about repoman's warnings when trying to commit (and I know people who use --force quite often). So apart from having the EAPI information in the ebuild name or inside it there are no feasible options to store it. Though I must confess that a user submitted ebuild could strip parts of the name in his submission thus destroying that EAPI information, too. V-Li --=20 Christian Faulhammer, Gentoo Lisp project <URL:http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode <URL:http://www.faulhammer.org/> --Sig_/l2nJ421WdTn.AhsB0tNFUBa Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkms7FsACgkQNQqtfCuFneMvvACfRs0ZgRZ2rwTxQgKPrr/fsc6X 8ZwAnReuv+RKnP7sPctweMXydtkery3L =vc+y -----END PGP SIGNATURE----- --Sig_/l2nJ421WdTn.AhsB0tNFUBa--