Add a custom fetch method
cover Add a custom fetch method
At present,to use meta-oracle-java layer, we need to manually download the Oracle Java Binaries and place it in download location. Provide a custom fetch method to avoid that manual step.
Maxin B. John (5):
README: Update Notes
oracle-jse-jdk-i586: add custom fetch method
oracle-jse-jdk-x86-64: add custom fetch method
oracle-jse-jre-i586: add custom fetch method
oracle-jse-jre-x86-64: add custom fetch method
README | 16 ++++++++-------- .../oracle-java/oracle-jse-jdk-i586_1.7.0.bb | 9 ++++++++- .../oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb | 9 ++++++++- .../oracle-java/oracle-jse-jre-i586_1.7.0.bb | 10 +++++++++- .../oracle-java/oracle-jse-jre-x86-64_1.7.0.bb | 10 +++++++++- 5 files changed, 42 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/5 README: Update Notes
1. Remove notes related to manual downloading of Oracle Java binaries
2. Add notes about the temporary fix for installing JRE packages
--- README | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
README +8 -8
@@ -19,14 +19,14 @@ LICENSE_FLAGS_WHITELIST += "oracle_java" Notes ===== -The download URLs mentioned in the SRCURI of the oracle-java recipes -may show fetch issues with the built in bitbake wget fetcher. This is caused -by the pre-requirement of clicking the "accept license" button on the oracle -download webpage. So if you see fetch issues for the oracle java recipes, -then you can overcome the issue by opening the SRCURI links manually in a web -browser, downloading the tarballs, and storing in the bitbake download -location. And the bitbake download location is specified by DL_DIR variable -in build configuration file (conf/local.conf) +There are some known install problems for JRE packages due to dependencies +reported by RPM package manager. Switching to DEB or IPK packaging temporarily +fixes this. +ie: +PACKAGE_CLASSES = "package_deb" +or +PACKAGE_CLASSES = "package_ipk" +in your 'local.conf' file Where to Send Patches =====================
Signature · 1 line
1.9.1
PATCH 2/5 oracle-jse-jdk-i586: add custom fetch method
In reply to Maxin B. JohnProvide a custom fetch method to avoid manual downloading of binaries.
--- recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb +8 -1
@@ -1,4 +1,3 @@ -PR = "r0" PV_UPDATE = "25" require oracle-jse-jdk.inc
@@ -7,3 +6,11 @@ SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-i SRC_URI[md5sum] = "23176d0ebf9dedd21e3150b4bb0ee776" SRC_URI[sha256sum] = "dd89b20afa939992bb7fdc44837fa64f0a98d7ee1e5706fe8a2d9e2247ba6de7" + +RDEPENDS_${PN} = "libxml2 libx11 glib-2.0 alsa-lib libxext libxtst libxrender" + +do_fetch () { + wget --header=Cookie:oraclelicense=a ${SRC_URI} -O ${DL_DIR}/jdk-7u25-linux-i586.tar.gz +} + +COMPATIBLE_HOST = '(i.86.*)-(linux)'
Signature · 1 line
1.9.1
PATCH 3/5 oracle-jse-jdk-x86-64: add custom fetch method
In reply to Maxin B. JohnProvide a custom fetch method to avoid manual downloading of binaries.
--- recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb +8 -1
@@ -1,4 +1,3 @@ -PR = "r0" PV_UPDATE = "25" require oracle-jse-jdk.inc
@@ -7,3 +6,11 @@ SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x SRC_URI[md5sum] = "83ba05e260813f7a9140b76e3d37ea33" SRC_URI[sha256sum] = "f80dff0e19ca8d038cf7fe3aaa89538496b80950f4d10ff5f457988ae159b2a6" + +RDEPENDS_${PN} = "libxml2 libx11 glib-2.0 alsa-lib libxext libxtst libxrender" + +do_fetch () { + wget --header=Cookie:oraclelicense=a ${SRC_URI} -O ${DL_DIR}/jdk-7u25-linux-x64.tar.gz +} + +COMPATIBLE_HOST = '(x86_64.*)-(linux)'
Signature · 1 line
1.9.1
PATCH 4/5 oracle-jse-jre-i586: add custom fetch method
In reply to Maxin B. JohnProvide a custom fetch method to avoid manual downloading of binaries.
--- recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb +9 -1
@@ -1,4 +1,3 @@ -PR = "r0" PV_UPDATE = "25" require oracle-jse-jre.inc
@@ -7,3 +6,12 @@ SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-i SRC_URI[md5sum] = "0e9ccefe49e937e592dbb605f2e8e7d8" SRC_URI[sha256sum] = "4016965536d8607743267812ab04e6d428036dda432893748c1df6cb77b09628" + +RDEPENDS_${PN} = "libxml2 libx11 glib-2.0 alsa-lib libxext libxtst libxrender \ + fontconfig libxxf86vm" + +do_fetch () { + wget --header=Cookie:oraclelicense=a ${SRC_URI} -O ${DL_DIR}/jre-7u25-linux-i586.tar.gz +} + +COMPATIBLE_HOST = '(i.86.*)-(linux)'
Signature · 1 line
1.9.1
Re: [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: add custom fetch method
Quoted 17 lines · Maxin B. John
Provide a custom fetch method to avoid manual downloading of binaries.
Signed-off-by Maxin B. John <[email protected]>--- recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb +0
-1@@ -1,4 +1,3 @@ -PR = "r0" PV_UPDATE = "25" require oracle-jse-jre.inc
recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-i · line 15
Quoted 10 lines
recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb +7
-0@@ -7,3 +6,12 @@ SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-i SRC_URI[md5sum] = "0e9ccefe49e937e592dbb605f2e8e7d8" SRC_URI[sha256sum] = "4016965536d8607743267812ab04e6d428036dda432893748c1df6cb77b09628" + +RDEPENDS_${PN} = "libxml2 libx11 glib-2.0 alsa-lib libxext libxtst libxrender \ + fontconfig libxxf86vm" + +do_fetch () { + wget --header=Cookie:oraclelicense=a ${SRC_URI} -O ${DL_DIR}/jre-7u25-linux-i586.tar.gz +}
could we just override FETCHCMD_wget for this recipe ?
Quoted 10 lines
recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb +2
-1+ +COMPATIBLE_HOST = '(i.86.*)-(linux)' --1.9.1
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: add custom fetch method
Hi Khem,
Quoted 2 lines · Khem Raj
Quoted 1 line · Maxin B. John
Provide a custom fetch method to avoid manual downloading of binaries.
<snip>
Quoted 2 lines
could we just override
FETCHCMD_wgetfor this recipe ?
Thanks for the help!FETCHCMD_wget_append = " --header=Cookie:oraclelicense=a " seems to work fine. I will update and send a v2.
Best Regards,
Maxin
PATCH 5/5 oracle-jse-jre-x86-64: add custom fetch method
In reply to Maxin B. JohnProvide a custom fetch method to avoid manual downloading of binaries.
--- recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb +9 -1
@@ -1,4 +1,3 @@ -PR = "r0" PV_UPDATE = "25" require oracle-jse-jre.inc
@@ -7,3 +6,12 @@ SRC_URI = "http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jre-7u25-linux-x SRC_URI[md5sum] = "743ee0ebf73ce428c912866d84e374e0" SRC_URI[sha256sum] = "3c4496316fb413d5ab0590e9971676a521b9a600b3ceaac311f04c18c98a98c0" + +RDEPENDS_${PN} = "libxml2 libx11 glib-2.0 alsa-lib libxext libxtst libxrender \ + fontconfig libxxf86vm" + +do_fetch () { + wget --header=Cookie:oraclelicense=a ${SRC_URI} -O ${DL_DIR}/jre-7u25-linux-x64.tar.gz +} + +COMPATIBLE_HOST = '(x86_64.*)-(linux)'
Signature · 1 line
1.9.1