* Error including meta-oracle-java in custom image
@ 2013-06-04 7:41 Marcelo Valle
2013-06-04 8:10 ` Gaurang Shastri
2013-06-04 8:17 ` Tomas Frydrych
0 siblings, 2 replies; 3+ messages in thread
From: Marcelo Valle @ 2013-06-04 7:41 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 2479 bytes --]
Hello,
Sorry for last message, i send it incomplete by mistake!
I'm triying to include oracle java in my custom image and i'm having some
troubles to accomplish it.
After include oracle-jse-jre-x86-64_1.7.0.bb recipe in IMAGE_INSTALL var
and build the image the following errors appears:
1.
Fetcher failure for URL: '
http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jre-7u2-linux-x64.tar.gz'.
Checksum mismatch!
If this change is expected (e.g. you have upgraded to a new version without
updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "
81ee08846975d4b8d46acf3b6eddf103"
SRC_URI[sha256sum] =
"80212f7748c2671b89b6085000717c747851db004409dce3bb97f3a2aeb91cdd"
To fix it i've update 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
So i decide to download the file directly from oracle page and copy in
build/downloads directory.
After that i have new error:
---------------------------------------------
3.
ERROR: objcopy failed with exit code 1 (cmd was 'x86_64-poky-linux-objcopy'
--add-gnu-debuglink='/home/mvalle/Yocto2/poky-dylan-9.0.0/build/tmp/work/x86_64-poky-linux/oracle-jse-jre-x86-64/1.7.0-r0/package/usr/jre1.7.0_02/lib/amd64/.debug/libjsig.so'
'/home/mvalle/Yocto2/poky-dylan-9.0.0/build/tmp/work/x86_64-poky-linux/oracle-jse-jre-x86-64/1.7.0-r0/package/usr/jre1.7.0_02/lib/amd64/libjsig.so')
ERROR: Function failed: split_and_strip_files
To fix it I include INHIBIT_PACKAGE_STRIP = "1" in
oracle-jse-jre-x86-64_1.7.0.bb file
----------------------------------------------
After that the execution "bitbake oracle-jse-jre-x86-64" -> Compile without
errors!
-----------------------------------------------
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@x86_64: no package provides
libXi.so.6()(64bit)
Am I doing the correct steps to fix the errors? Can you please give me some
help to include jre in my custom image?
Thanks a lot for your help!
Marcelo.
[-- Attachment #2: Type: text/html, Size: 3387 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error including meta-oracle-java in custom image
2013-06-04 7:41 Error including meta-oracle-java in custom image Marcelo Valle
@ 2013-06-04 8:10 ` Gaurang Shastri
2013-06-04 8:17 ` Tomas Frydrych
1 sibling, 0 replies; 3+ messages in thread
From: Gaurang Shastri @ 2013-06-04 8:10 UTC (permalink / raw)
To: Marcelo Valle; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 3138 bytes --]
Dear Marcelo Valle,
I hope you have visited this page before adding meta-oracle-java layer:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oracle-java/tree/README
The above link provides help how to add this into final image. May above
will help you.
//Gaurang Shastri
On Tue, Jun 4, 2013 at 1:11 PM, Marcelo Valle <mvalleavila@gmail.com> wrote:
> Hello,
>
> Sorry for last message, i send it incomplete by mistake!
>
> I'm triying to include oracle java in my custom image and i'm having some
> troubles to accomplish it.
>
> After include oracle-jse-jre-x86-64_1.7.0.bb recipe in IMAGE_INSTALL var
> and build the image the following errors appears:
>
> 1.
> Fetcher failure for URL: '
> http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jre-7u2-linux-x64.tar.gz'.
> Checksum mismatch!
>
> If this change is expected (e.g. you have upgraded to a new version
> without updating the checksums) then you can use these lines within the
> recipe:
> SRC_URI[md5sum] = "
> 81ee08846975d4b8d46acf3b6eddf103"
> SRC_URI[sha256sum] =
> "80212f7748c2671b89b6085000717c747851db004409dce3bb97f3a2aeb91cdd"
>
> To fix it i've update 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
>
> So i decide to download the file directly from oracle page and copy in
> build/downloads directory.
> After that i have new error:
>
> ---------------------------------------------
>
> 3.
> ERROR: objcopy failed with exit code 1 (cmd was
> 'x86_64-poky-linux-objcopy'
> --add-gnu-debuglink='/home/mvalle/Yocto2/poky-dylan-9.0.0/build/tmp/work/x86_64-poky-linux/oracle-jse-jre-x86-64/1.7.0-r0/package/usr/jre1.7.0_02/lib/amd64/.debug/libjsig.so'
> '/home/mvalle/Yocto2/poky-dylan-9.0.0/build/tmp/work/x86_64-poky-linux/oracle-jse-jre-x86-64/1.7.0-r0/package/usr/jre1.7.0_02/lib/amd64/libjsig.so')
> ERROR: Function failed: split_and_strip_files
>
> To fix it I include INHIBIT_PACKAGE_STRIP = "1" in
> oracle-jse-jre-x86-64_1.7.0.bb file
>
> ----------------------------------------------
>
> After that the execution "bitbake oracle-jse-jre-x86-64" -> Compile
> without errors!
>
> -----------------------------------------------
> 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@x86_64: no package provides
> libXi.so.6()(64bit)
>
>
> Am I doing the correct steps to fix the errors? Can you please give me
> some help to include jre in my custom image?
>
> Thanks a lot for your help!
> Marcelo.
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
[-- Attachment #2: Type: text/html, Size: 4657 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Error including meta-oracle-java in custom image
2013-06-04 7:41 Error including meta-oracle-java in custom image Marcelo Valle
2013-06-04 8:10 ` Gaurang Shastri
@ 2013-06-04 8:17 ` Tomas Frydrych
1 sibling, 0 replies; 3+ messages in thread
From: Tomas Frydrych @ 2013-06-04 8:17 UTC (permalink / raw)
To: yocto
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@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-04 8:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 7:41 Error including meta-oracle-java in custom image Marcelo Valle
2013-06-04 8:10 ` Gaurang Shastri
2013-06-04 8:17 ` Tomas Frydrych
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.