Skip to contentSkip to conversation

oracle-java: update fetch method

PATCH In review Maxin B. John 2 participants 4 messages Aug 14, 2014 – Aug 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 oracle-java: update fetch method

Use custom FETCHCMD_wget to avoid manual downloading of Oracle Java packages.

---
 recipes-devtools/oracle-java/oracle-jse.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-devtools/oracle-java/oracle-jse.inc +2 -0
index 98069f4..3a4e20d 100644
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "\
 	file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=c339b34e3da6673d2c5950d0f8808f8c \
 	"
 
+FETCHCMD_wget_append = " --header=Cookie:oraclelicense=a "
+
 # get the java update version in the resulting package
 PR =. "u${PV_UPDATE}"
 S = "${WORKDIR}"
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 README: Update Notes

1. Remove notes related to manual downloading of Oracle Java binaries.
2. Add notes about the temporary fix for installing Java packages.

---
 README | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
README +8 -8
index 7dea1ea..3f4e177 100644
@@ -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
#2 lore raw
In reply to Maxin B. John

Hi,

Gentle ping ..
Could anyone review these, please ?

Quoted 22 lines · Maxin B. John

Use custom FETCHCMD_wget to avoid manual downloading of Oracle Java packages.

---
 recipes-devtools/oracle-java/oracle-jse.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-devtools/oracle-java/oracle-jse.inc +2 -0
index 98069f4..3a4e20d 100644
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "\
 	file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=c339b34e3da6673d2c5950d0f8808f8c \
 	"
 
+FETCHCMD_wget_append = " --header=Cookie:oraclelicense=a "
+
 # get the java update version in the resulting package
 PR =. "u${PV_UPDATE}"
 S = "${WORKDIR}"
Signature · 1 line
1.9.1
#3 lore raw

Hi Maxin,

Looks good.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maxin B. John
Sent: Tuesday, August 19, 2014 6:30 PM
To: [email protected]
Subject: Re: [yocto] [meta-oracle-java][PATCH 1/2] oracle-java: update fetch method

Hi,

Gentle ping ..
Could anyone review these, please ?

Quoted 22 lines · Maxin B. John

Use custom FETCHCMD_wget to avoid manual downloading of Oracle Java packages.

---
 recipes-devtools/oracle-java/oracle-jse.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-devtools/oracle-java/oracle-jse.inc +2 -0
index 98069f4..3a4e20d 100644
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "\
 	file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=c339b34e3da6673d2c5950d0f8808f8c \
 	"
 
+FETCHCMD_wget_append = " --header=Cookie:oraclelicense=a "
+
 # get the java update version in the resulting package
 PR =. "u${PV_UPDATE}"
 S = "${WORKDIR}"
Signature · 1 line
1.9.1
Signature · 4 lines
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto