On Thu, Feb 12, 2009 at 4:41 AM, Jonas Karlsson <cj.karls...@gmail.com> wrote:
> 2009/2/11 Giambattista Bloisi <gia...@infinito.it>:
>> - Eclipse-ECJ and Apache-Ant are shipped along with a few executables that
>> require java to be run. I realize that a recipe without dependencies is not
>> acceptable, but since we are going to have three possible java to use (gcj,
>> sun_jdk, icedtea6) how could we express this on those recipes ? It would be
>> very useful to me to have some examples.
>
> If I remember correctly you can use pipe (|) to declare alternative
> recipes. I haven't tested but something like the following should
> work:
>
> GCJ [gcj] | Sun-JDK [sun_jdk] | IcedTea6 [icedtea6]
But, again, as far as I can tell this doesn't actually work. The code
for it is there, but it appears to throw away all entries but the last
(last_rule is initialised to None, and the only time it's set after
that is inside "if last_rule:"). I'm not sure exactly how it's meant
to run, so I haven't been sure how to fix it, but that can't be right.

It's been on my to-do list to ask André what's going on there for a
while. I'm not sure if it's intentionally disabled owing to
incompleteness, or a typo, or how add_compatible_dependencies actually
uses rule['option']. (CC to -devel and destch to follow that up while
I remember).
-Michael
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to