1 |
That's indeed the main problem with XML. If you want to see the practicality |
2 |
of this, take a look at Ant (http://ant.apache.org/). Ant is a Java based |
3 |
build system, kinda like Makefiles but WAY more powerful. It's slowly |
4 |
becoming the defacto standard for building Java projects, and especially for |
5 |
large Java projects it's invaluable. |
6 |
|
7 |
It defines a project in XML, and comes with a lot of modules (comparable to |
8 |
eclasses and the default ebuild commands) which can be used inside that XML. |
9 |
|
10 |
Implementing an ebuild in Ant would be very simple, and probably with one or |
11 |
two additional modules one could implement all of portage in ant. Doing the |
12 |
latter would be way slower than portage is today though, and doing the first |
13 |
requires adding Java... not very useful right now either. |
14 |
|
15 |
Looking at the cheer size of Ant -- all the stuff they had to put in before it |
16 |
became a really useful system, I'd vote against trying to do this for portage. |
17 |
Having an XML definition for each package, yes... replacing the actual build |
18 |
code by XML - no. |
19 |
|
20 |
My $0.02... |
21 |
|
22 |
Alain |
23 |
|
24 |
|
25 |
On Thu, Feb 06, 2003 at 03:41:29AM -0600, Jared H. Hudson wrote: |
26 |
> I like XML as much as the next guy, but one thing you should remember is |
27 |
> that ebuilds are not some arbitrary pkg format -- they're bash scripts. |
28 |
> They may not look it, since they don't have #!/bin/bash at the top, but |
29 |
> they are bash scripts that are sourced with other bash scripts. So, for |
30 |
> example, most ebuilds have bash functins like src_unpack, src_install, |
31 |
> ect, but others have their own functions that are defined and called by |
32 |
> these src_* functions. Converting this to XML would mean that portage |
33 |
> would have to convert everything to bash, plus there'd have to be enough |
34 |
> flexibility in the XML stylesheet we'd to include the possibility of |
35 |
> unknown-ebuild-specific global variables, functions, ect. |
36 |
> |
37 |
> Just food for thought. |
38 |
> |
39 |
> -Jared H. |
40 |
|
41 |
-- |
42 |
gentoo-dev@g.o mailing list |