Downloading JDK/JRE automagically is aways a pain in the a**. Everytime that Oracle changes something on its website these scripts crash. A solution I get to my life is aways downloading JDK/JRE manually and puting in right place. As a "friendly but not so much" solution I did this in one of my recipes:
--- recipe file --- ... DL_FILE = "ejre-7u${PV_UPDATE}-fcs-b${BUILD_NUMBER}-linux-arm-vfp-hflt-client_headful-07_may_2014.tar.gz" ... do_fetch() { if ! test -f "${DL_DIR}/${DL_FILE}"; then echo "Please accept the License Agreement, download the ${DL_FILE} and put it on ${DL_DIR}" echo "The download link can be found at http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/javase-embedded-downloads-2209751.html" return 1 else return 0 fi } --- end recipe file --- If the file is not found the recipes aborts with error and user see this mesage with the link to where he should go do donwload file, and where to put it. It's not a "state-of-art" but it works and prevents-me from working arround Oracle's changes. Gentoo (at least when I used it) do just like this to install Oracle's Java. Best regards, - dhs 2015-08-05 17:02 GMT-03:00 John Davis <jfda...@anuvainnovations.com>: > I'm at a different client site now, but tomorrow I will be working on the > yocto stuff. I can send it to your tomorrow. > > FWIW, each line in that email has a line which was changed preceded by the > original line starting with a comment #. > > Even then, I found you need to manually log in to the oracle website to > manually download the jar file and place it in the download folders. > > So, the result is that the script thinks it has a link for downloading a > file, however since the file has been downloaded manually using the web > browser it skips the download and simply starts the CRC verification. Once > the script determines that the CRC matches the downloaded file it proceeds > to the next steps in the build process. > > -- > John F. Davis > cell: 919 888 8358 > > On Wed, Aug 5, 2015 at 3:47 PM, Mario Domenech Goulart > <ma...@ossystems.com.br> wrote: >> >> Hi John, >> >> On Fri, 31 Jul 2015 14:34:24 -0400 John Davis >> <jfda...@anuvainnovations.com> wrote: >> >> > fwiw, I am trying to fix it like so: >> > >> > diff --git >> > >> > a/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > >> > b/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > index bfa8011..13918d8 100644 >> > --- >> > >> > a/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > +++ >> > >> > b/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > @@ -1,9 +1,16 @@ >> > -PV_UPDATE = "60" >> > -BUILD_NUMBER = "19" >> > +#PV_UPDATE = "60" >> > +#BUILD_NUMBER = "19" >> > +PV_UPDATE = "75" >> > +BUILD_NUMBER = "13" >> > require oracle-jse-ejre.inc >> > -SRC_URI = "http://download.oracle.com/otn/java/ejre/7u${PV_UPDATE}-b$ >> > {BUILD_NUMBER}/ejre-7u${PV_UPDATE}-fcs-b$ >> > {BUILD_NUMBER}-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz" >> > +#SRC_URI = "http://download.oracle.com/otn/java/ejre/7u$ >> > {PV_UPDATE}-b${BUILD_NUMBER}/ejre-7u${PV_UPDATE}-fcs-b$ >> > {BUILD_NUMBER}-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz" >> > +SRC_URI = "http://download.oracle.com/otn/java/jdk/7u${PV_UPDATE}-b$ >> > {BUILD_NUMBER}/jdk-7u${PV_UPDATE}-linux-arm-vfp-hflt.tar.gz" >> > + >> > +#SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0" >> > +#SRC_URI[sha256sum] = >> > "ed061060011d88efe5563c2949c00993db85db17ab94f18a78713007a2b90faf" >> > + >> > +SRC_URI[md5sum] = "6958e36bdcc842121510fecf702dcf47" >> > +SRC_URI[sha256sum] = >> > "29c53bac198ca3faf5ed370025a2a5564d43e05b92d91b6b5d2a8a503de10c01" >> > -SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0" >> > davis@yoshi:~/progs/meta-oracle-java/recipes-devtools/oracle-java$ git >> > diff >> > diff --git >> > >> > a/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > >> > b/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > index bfa8011..13918d8 100644 >> > --- >> > >> > a/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > +++ >> > >> > b/recipes-devtools/oracle-java/oracle-jse-ejre-arm-vfp-hflt-client-headless.inc >> > @@ -1,9 +1,16 @@ >> > -PV_UPDATE = "60" >> > -BUILD_NUMBER = "19" >> > +#PV_UPDATE = "60" >> > +#BUILD_NUMBER = "19" >> > +PV_UPDATE = "75" >> > +BUILD_NUMBER = "13" >> > require oracle-jse-ejre.inc >> > -SRC_URI = "http://download.oracle.com/otn/java/ejre/7u${PV_UPDATE}-b$ >> > {BUILD_NUMBER}/ejre-7u${PV_UPDATE}-fcs-b$ >> > {BUILD_NUMBER}-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz" >> > +#SRC_URI = "http://download.oracle.com/otn/java/ejre/7u$ >> > {PV_UPDATE}-b${BUILD_NUMBER}/ejre-7u${PV_UPDATE}-fcs-b$ >> > {BUILD_NUMBER}-linux-arm-vfp-hflt-client_headless-07_may_2014.tar.gz" >> > +SRC_URI = "http://download.oracle.com/otn/java/jdk/7u${PV_UPDATE}-b$ >> > {BUILD_NUMBER}/jdk-7u${PV_UPDATE}-linux-arm-vfp-hflt.tar.gz" >> > + >> > +#SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0" >> > +#SRC_URI[sha256sum] = >> > "ed061060011d88efe5563c2949c00993db85db17ab94f18a78713007a2b90faf" >> > + >> > +SRC_URI[md5sum] = "6958e36bdcc842121510fecf702dcf47" >> > +SRC_URI[sha256sum] = >> > "29c53bac198ca3faf5ed370025a2a5564d43e05b92d91b6b5d2a8a503de10c01" >> > -SRC_URI[md5sum] = "b9b8f598b0a7f49e4d221f16ba25c6c0" >> > -SRC_URI[sha256sum] = >> > "ed061060011d88efe5563c2949c00993db85db17ab94f18a78713007a2b90faf" >> > diff --git a/recipes-devtools/oracle-java/oracle-jse-ejre.inc >> > b/recipes-devtools/oracle-java/oracle-jse-ejre.inc >> > index 9a1fdfe..4dc2fe9 100644 >> > --- a/recipes-devtools/oracle-java/oracle-jse-ejre.inc >> > +++ b/recipes-devtools/oracle-java/oracle-jse-ejre.inc >> > @@ -8,10 +8,16 @@ DESCRIPTION = "This is the proprietary JRE from >> > Sun/Oracle, with the Hotspot JVM >> > The JRE (Java Runtime Environment) is needed on a system to run Java\ >> > applications and applets" >> > -JDK_JRE = "ejre" >> > +#JDK_JRE = "ejre" >> > +JDK_JRE = "jdk" >> > require oracle-jse.inc >> > LIC_FILES_CHKSUM = "\ >> > - file://${WORKDIR}/${JDK_JRE}${PV}_$ >> > {PV_UPDATE}/COPYRIGHT;md5=be9fe5d47a7dcfb78f142f487afb34bb \ >> > + file://${WORKDIR}/${JDK_JRE}${PV}_$ >> > {PV_UPDATE}/COPYRIGHT;md5=0b204bd2921accd6ef4a02f9c0001823 \ >> > file://${WORKDIR}/${JDK_JRE}${PV}_$ >> > >> > {PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=f3a388961d24b8b72d412a079a878cdb >> > \ >> > " >> > + >> > +#LIC_FILES_CHKSUM = "\ >> > +# file://${WORKDIR}/${JDK_JRE}${PV}_$ >> > {PV_UPDATE}/COPYRIGHT;md5=be9fe5d47a7dcfb78f142f487afb34bb \ >> > +# file://${WORKDIR}/${JDK_JRE}${PV}_$ >> > >> > {PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=29c53bac198ca3faf5ed370025a2a5564d43e05b92d91b6b5d2a8a503de10c01 >> > \ >> > +# " >> >> Thanks for sharing your changes. Would you mind sending a proper git >> patch? I'm having a hard time applying your diff. I suppose some lines >> got broken by the e-mail editor. >> >> Best wishes. >> Mario >> -- >> http://www.ossystems.com.br > > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > -- "Do or do not. There is no try" Yoda Master -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto