All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Java handling in OpenEmbedded
Date: Mon, 07 Dec 2009 21:20:41 +0100	[thread overview]
Message-ID: <hfjo2p$i1b$1@ger.gmane.org> (raw)
In-Reply-To: <200912071959.19252.marcin@juszkiewicz.com.pl>

On 07-12-09 19:59, Marcin Juszkiewicz wrote:
>
> Hi
>
> For most of time I do builds of BugLabs software for just one device: BUG
> which uses i.mx31 cpu (armv6). As I need to test it also on BeagleBoard I got
> hit by one problem when it comes to building Java software...
>
> As Java is target independent we package it as "all". But the problem is when
> build want to get JAR files built from other recipes (think dependencies). By
> default all those jars are staged into target staging (armv6-angstrom-linux-
> gnueabi in this case). It works fine as long as you do not want to build for
> other architecture in same tmpdir.
>
> After MACHINE change OE thinks (correctly) that it does not need to build Java
> things again (as it was PACKAGE_ARCH="all") and tries to use it from staging.
> But staging/usr/share/java/ dir is empty...
>
> OK, someone can say "but what is a deal? it got built before so you can just
> install packages - they are 'all' anyway". Sure, but some of our Java recipes
> are bind to BUG kernel services so can not be built for other devices and we
> do not want to be forced to keep MACHINE values in specific order to 'maybe
> this will work' way of building.
>
> What is a solution? I had few ideas during weekend and tested two of them.
>
> 1. Drop PACKAGE_ARCH="all" for ALL Java recipes. It works but adds extra
>     building time.
>
> 2. Change staging of JAR files. This worked fine for my build. Patch to
>     stable/2009 branch attached.

Your proposal sounds good to me. I'm willing to sacrifice some buildtime 
and storage om my buildhosts to retain my sanity when building java stuff :)

regards,

Koen




  reply	other threads:[~2009-12-07 20:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-07 18:59 Java handling in OpenEmbedded Marcin Juszkiewicz
2009-12-07 20:20 ` Koen Kooi [this message]
2009-12-24 10:31 ` Robert Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hfjo2p$i1b$1@ger.gmane.org' \
    --to=k.kooi@student.utwente.nl \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.