All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oracle-java][PATCH 0/5] Add a custom fetch method
@ 2014-08-08 16:39 Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 1/5] README: Update Notes Maxin B. John
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Maxin B. John @ 2014-08-08 16:39 UTC (permalink / raw)
  To: yocto

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(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [meta-oracle-java][PATCH 1/5] README: Update Notes
  2014-08-08 16:39 [meta-oracle-java][PATCH 0/5] Add a custom fetch method Maxin B. John
@ 2014-08-08 16:39 ` Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 2/5] oracle-jse-jdk-i586: add custom fetch method Maxin B. John
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Maxin B. John @ 2014-08-08 16:39 UTC (permalink / raw)
  To: yocto

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

Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
 README | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/README b/README
index 7dea1ea..3f4e177 100644
--- a/README
+++ b/README
@@ -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
 =====================
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oracle-java][PATCH 2/5] oracle-jse-jdk-i586: add custom fetch method
  2014-08-08 16:39 [meta-oracle-java][PATCH 0/5] Add a custom fetch method Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 1/5] README: Update Notes Maxin B. John
@ 2014-08-08 16:39 ` Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 3/5] oracle-jse-jdk-x86-64: " Maxin B. John
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Maxin B. John @ 2014-08-08 16:39 UTC (permalink / raw)
  To: yocto

Provide a custom fetch method to avoid manual downloading of binaries.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
 recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb b/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
index 978fbd5..282aa43 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk-i586_1.7.0.bb
@@ -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)'
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oracle-java][PATCH 3/5] oracle-jse-jdk-x86-64: add custom fetch method
  2014-08-08 16:39 [meta-oracle-java][PATCH 0/5] Add a custom fetch method Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 1/5] README: Update Notes Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 2/5] oracle-jse-jdk-i586: add custom fetch method Maxin B. John
@ 2014-08-08 16:39 ` Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: " Maxin B. John
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 5/5] oracle-jse-jre-x86-64: " Maxin B. John
  4 siblings, 0 replies; 8+ messages in thread
From: Maxin B. John @ 2014-08-08 16:39 UTC (permalink / raw)
  To: yocto

Provide a custom fetch method to avoid manual downloading of binaries.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
 recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb b/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
index 7979401..6ee2002 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk-x86-64_1.7.0.bb
@@ -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)'
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: add custom fetch method
  2014-08-08 16:39 [meta-oracle-java][PATCH 0/5] Add a custom fetch method Maxin B. John
                   ` (2 preceding siblings ...)
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 3/5] oracle-jse-jdk-x86-64: " Maxin B. John
@ 2014-08-08 16:39 ` Maxin B. John
  2014-08-08 23:03   ` Khem Raj
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 5/5] oracle-jse-jre-x86-64: " Maxin B. John
  4 siblings, 1 reply; 8+ messages in thread
From: Maxin B. John @ 2014-08-08 16:39 UTC (permalink / raw)
  To: yocto

Provide a custom fetch method to avoid manual downloading of binaries.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
 recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb b/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb
index 6125025..1fca3a8 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb
@@ -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)'
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [meta-oracle-java][PATCH 5/5] oracle-jse-jre-x86-64: add custom fetch method
  2014-08-08 16:39 [meta-oracle-java][PATCH 0/5] Add a custom fetch method Maxin B. John
                   ` (3 preceding siblings ...)
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: " Maxin B. John
@ 2014-08-08 16:39 ` Maxin B. John
  4 siblings, 0 replies; 8+ messages in thread
From: Maxin B. John @ 2014-08-08 16:39 UTC (permalink / raw)
  To: yocto

Provide a custom fetch method to avoid manual downloading of binaries.

Signed-off-by: Maxin B. John <maxin.john@enea.com>
---
 recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb b/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb
index 4058d23..cdedaf1 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb
+++ b/recipes-devtools/oracle-java/oracle-jse-jre-x86-64_1.7.0.bb
@@ -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)'
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: add custom fetch method
  2014-08-08 16:39 ` [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: " Maxin B. John
@ 2014-08-08 23:03   ` Khem Raj
  2014-08-09  4:57     ` Maxin B. John
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2014-08-08 23:03 UTC (permalink / raw)
  To: Maxin B. John; +Cc: yocto

On Fri, Aug 8, 2014 at 9:39 AM, Maxin B. John <maxin.john@enea.com> wrote:
> Provide a custom fetch method to avoid manual downloading of binaries.
>
> Signed-off-by: Maxin B. John <maxin.john@enea.com>
> ---
>  recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb b/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb
> index 6125025..1fca3a8 100644
> --- a/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb
> +++ b/recipes-devtools/oracle-java/oracle-jse-jre-i586_1.7.0.bb
> @@ -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
> +}


could we just override FETCHCMD_wget for this recipe ?

> +
> +COMPATIBLE_HOST = '(i.86.*)-(linux)'
> --
> 1.9.1
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: add custom fetch method
  2014-08-08 23:03   ` Khem Raj
@ 2014-08-09  4:57     ` Maxin B. John
  0 siblings, 0 replies; 8+ messages in thread
From: Maxin B. John @ 2014-08-09  4:57 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

Hi Khem,

On Fri, Aug 08, 2014 at 04:03:03PM -0700, Khem Raj wrote:
> On Fri, Aug 8, 2014 at 9:39 AM, Maxin B. John <maxin.john@enea.com> wrote:
> > Provide a custom fetch method to avoid manual downloading of binaries.
<snip> 
> 
> could we just override FETCHCMD_wget for 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-09  4:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 16:39 [meta-oracle-java][PATCH 0/5] Add a custom fetch method Maxin B. John
2014-08-08 16:39 ` [meta-oracle-java][PATCH 1/5] README: Update Notes Maxin B. John
2014-08-08 16:39 ` [meta-oracle-java][PATCH 2/5] oracle-jse-jdk-i586: add custom fetch method Maxin B. John
2014-08-08 16:39 ` [meta-oracle-java][PATCH 3/5] oracle-jse-jdk-x86-64: " Maxin B. John
2014-08-08 16:39 ` [meta-oracle-java][PATCH 4/5] oracle-jse-jre-i586: " Maxin B. John
2014-08-08 23:03   ` Khem Raj
2014-08-09  4:57     ` Maxin B. John
2014-08-08 16:39 ` [meta-oracle-java][PATCH 5/5] oracle-jse-jre-x86-64: " Maxin B. John

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.