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 1S7QIS-0003uK-Oa for garchives@archives.gentoo.org; Tue, 13 Mar 2012 11:53:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AAB5E09D9; Tue, 13 Mar 2012 11:53:34 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 1E878E099D for ; Tue, 13 Mar 2012 11:52:57 +0000 (UTC) Received: by bkwj4 with SMTP id j4so358481bkw.40 for ; Tue, 13 Mar 2012 04:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ftvOaPFkJmuvL81axJ/uI8O6aQYZ8SYyrmw2X/Dinms=; b=KNsR9/Mmgbq4Y7T0jidi+xmHPHWmwt3GLSwI5n/W2ctvIuZfke2Bk1D9RrXuCKlJmt W1DQz+4DdHYxlKnwXevcY3nmbRn1zmCFOzv1IkzKMpLBWXogtB5Oen96/2X23G6i/ywx yubyvvltjKgxyLhfU3D+xqbuPNf0fUBNfk2TWKWGCqtae+w8Qx4YAdPVSxiTut9qz0V+ ImFhtS6tV45GQXx6dF0BpPMl4M73kGGPD2NuFupYEhh4dh/BiMUqK+VeCsqrwy16a2AM 3YcrHZyGPlMX6HhW3rNLcRy+wzTIGisd+eF1cuCVQSreOTAeoAxjtpXZ4cmppKotWIxh CqQA== 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.204.152.27 with SMTP id e27mr6031386bkw.55.1331639577205; Tue, 13 Mar 2012 04:52:57 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.205.32.194 with HTTP; Tue, 13 Mar 2012 04:52:57 -0700 (PDT) In-Reply-To: <4F5EE933.7030103@cs.stonybrook.edu> References: <4F5EE933.7030103@cs.stonybrook.edu> Date: Tue, 13 Mar 2012 07:52:57 -0400 X-Google-Sender-Auth: d_4E31770kboNKiCGsT80MM2BWM Message-ID: Subject: Re: [gentoo-dev] RFD : .ebuild is only bash From: Rich Freeman To: gentoo-dev@lists.gentoo.org Cc: Kent Fredric Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9349abc8-25fb-4303-a8b5-7665e8bf4c36 X-Archives-Hash: eca5dc31a6e8f0de983fce24c1547ba1 On Tue, Mar 13, 2012 at 2:29 AM, Richard Yao wrote= : > To make XML a viable substitute for bash, you will need to implement a > turing complete language in XML, which should probably preclude its use > in ebuilds. You would =A0likely have better luck with a functional > programming language, although you are more than welcome to demonstrate > otherwise. Well, a trivial solution to that is to embed bash code (or some other language) into the content of the xml file. As I and others posted earlier the advantage is that it makes all the key/value stuff easier to manage than doing it in bash, but it makes editing the scripting content harder and requires pre-processing before being fed into an interpreter. If you look at metadata.xml you could argue that we're already using xml-based ebuilds to an extent, but we split the metadata across two different files in different formats and call them different things. In any case, my point in bringing up xml was that the whole point of GLEP 55 was to future-proof the interpretation of ebuild files, and xml is just one example of what the future could conceivably look like. Rich