[yocto] Error including meta-oracle-java in custom image

Tomas Frydrych tf+lists.yocto at r-finger.com
Tue Jun 4 01:17:52 PDT 2013


Hi,

On 04/06/13 08:41, Marcelo Valle wrote:
> 1.
> Fetcher failure for URL:
> 'http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jre-7u2-linux-x64.tar.gz'.
> Checksum mismatch!
> 
> ...
>
> To fix it i've update oracle-jse-jre-x86-64_1.7.0.bb
> <http://oracle-jse-jre-x86-64_1.7.0.bb> with these checksum.
> I build the image again and new error appears
> 
> --------------------------------------------
> 
> 2.
> Function failed: Unpack failure for URL:
> 'http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jre-7u2-linux-x64.tar.gz'
> 
> Unpacking
> /home/mvalle/Yocto2/poky-dylan-9.0.0/build/downloads/jre-7u2-linux-x64.tar.gz
> gzip: stdin: not in gzip format

This suggests that the original check sum failure is down to your
original download being corrupted. You should not modify the chechsums,
but rather run 'bitbake -c cleanall oracle-jse-jre-x86-64', and then
rerun the build to fetch the tarball again. Or, since you already have
the tarball, you can change the checksums back, run 'bitbake -c
cleansstate oracle-jse-jre-x86-64', then rerun the build.

(Your set up works because you manually replaced the tarball after the
sums have been verified, but if someone else tries to build your
modified recipe, it will fail on the checksums.).

> -----------------------------------------------
> But if I try to build my custom image and the build fails with these error:
> 
> Function failed: do_rootfs
> 
> | Computing transaction...error: Can't install
> oracle-jse-jre-x86-64-1.7.0-r0 at x86_64: no package provides
> libXi.so.6()(64bit)


libXi is provided by the libxi package, this should be added to the
RDEPENDS for the jre package to get it pulled into the image (looking at
the recipe there are probably other RDEPENDS missing there as well).

Tomas


-- 
http://sleepfive.com



More information about the yocto mailing list