[yocto] Recipe to Copy JAR files, not extract it

Laurent d'Havé ldhave at gmail.com
Thu Jun 19 06:40:59 PDT 2014


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 ...


h e l p
> Paul Eggleton <mailto:paul.eggleton at linux.intel.com>
> 18 June 2014 18:31
>
> No problem; please feel free to ask any questions you have. I never tell
> people to RTFM, although I may point to sections of the manual if they 
> exist
> to save me some typing :)
>
> Cheers,
> Paul
>
> Laurent d'Havé <mailto:ldhave at gmail.com>
> 18 June 2014 18:19
> Damn , i did RTFM, but that's not the version i was reading.
> That'll teach me !
>
>
> Thanks for quick response, really sorry , for not reading the latest 
> version of the manual.
>
>
> Take care
> Laurent
>
> Paul Eggleton <mailto:paul.eggleton at linux.intel.com>
> 18 June 2014 18:09
>
> Actually, I was mistaken - it is mentioned in the reference manual:
>
> http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-SRC_URI
>
> (FWIW, I'm happy to answer questions even if they are covered by
> the manual, this is just an aside ;)
>
> Cheers,
> Paul
>
> Laurent d'Havé <mailto:ldhave at gmail.com>
> 18 June 2014 15:32
> Hello
> In a recipe i'm writing, i need to simply copy a .jar file.
> Since it's specified in SRC_URI , bitbake extracts it, making WORKDIR 
> a complete mess, and makes it impossible to copy the .jar file to 
> destination.
>
>
> How would i go about simply copying it ? Anyway to tell bitbake NOT to 
> extract content of it ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140619/01ab496f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140619/01ab496f/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1293 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140619/01ab496f/attachment-0001.jpg>


More information about the yocto mailing list