All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: "Laurent d'Havé" <ldhave@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: Recipe to Copy JAR files, not extract it
Date: Thu, 19 Jun 2014 14:47:29 +0100	[thread overview]
Message-ID: <77958816.ia3M1Is9NF@peggleto-mobl5.ger.corp.intel.com> (raw)
In-Reply-To: <53A2E86B.6090301@gmail.com>

On Thursday 19 June 2014 15:40:59 Laurent d'Havé wrote:
> That worked great.
> 
> Except i'm now having a strange issue, been pulling hair's out for a
> couple of hours ...
> 
> WARNING: QA Issue: taxi: Files/directories were installed but not shipped
>    /usr/share
>    /usr/share/java
>    /usr/share/java/headless.jar
> 
> 
> And indeed, my jar file will not be bundled in the rootfs !!
> 
> Some copy-paste from my recipe :
> 
> SRC_URI = " \
> file://headless .jar;unpack=0 \
> "
> do_install() {
> install -m 0755 -d ${D}/usr/share/java
>   install -m 0755 ${WORKDIR}/headless .jar ${D}/usr/share/java
>   }
> 
> 
> Any clues ? If i change the path  /usr/bin  it works.
> Is it because i'm putting it in /usr/share/java ?
> But that's where all the other JAR's go ...

The key is "installed but not shipped" - you've installed the files, but they 
aren't being shipped in any package. The files in each package are specified 
using FILES, and /usr/share is ${datadir}, so I'd suggest something like the 
following:

FILES_${PN} += "${datadir}/java"

(Moving the files to /usr/bin works because that is already in the default 
value of FILES_${PN}, whereas /usr/share/java isn't).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2014-06-19 13:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 13:32 Recipe to Copy JAR files, not extract it Laurent d'Havé
2014-06-18 16:06 ` Paul Eggleton
2014-06-18 16:09   ` Paul Eggleton
2014-06-18 16:19     ` Laurent d'Havé
2014-06-18 16:31       ` Paul Eggleton
2014-06-19 13:40         ` Laurent d'Havé
2014-06-19 13:47           ` Paul Eggleton [this message]
2014-06-18 16:10   ` Robert P. J. Day

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=77958816.ia3M1Is9NF@peggleto-mobl5.ger.corp.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=ldhave@gmail.com \
    --cc=yocto@yoctoproject.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.