mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Updating java runtime environment
@ 2014-09-11  7:10 Martin Hejnfelt
  0 siblings, 0 replies; only message in thread
From: Martin Hejnfelt @ 2014-09-11  7:10 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1049 bytes --]

Hi guys,

I noticed the java runtime environment included in ptxdist is quite old
(6u2), so I took the liberty of creating a new ruleset to update to 7u67
(should be easy to change to other versions), and supports x64 binary
download too. In order to download the file it makes a little cookie cheat,
and I don't know if that somehow should be added through the menuconfig in
order to "properly acknowledge the license" or whatever...

Note however that the current x86 glibc (2.18) included in ptxdist has a
flaw that causes segfault in the java executable. This is apparently a
known error and can be fixed by applying this patch to the glibc in the
toolchain:

https://github.com/funtoo/funtoo-overlay/blob/master/sys-libs/glibc/files/2.18/glibc-2.18-strstr-hackfix.patch

The patch was created by Arch Linux maintainers. I have not tried updating
to 2.19 to see if that changes anything.

I don't know if this list is the right place to send this stuff, if so feel
free to shout at me.

Give it a look :)
-- 
Mvh. / Kind regards
Martin Hejnfelt

[-- Attachment #1.2: Type: text/html, Size: 1393 bytes --]

[-- Attachment #2: oracle-java7-jre.in --]
[-- Type: application/octet-stream, Size: 546 bytes --]

## SECTION=bytecode_engines

menuconfig ORACLE_JAVA7_JRE
	tristate
	
	prompt "oracle java7 jre              "
	help
	 Oracle[tm] Java Runtime Environment 7
	 This downloads the binary distribution
	 and extracts into the target prefix.

config ORACLE_JAVA7_JRE_TARGET_PREFIX
	string
	depends on ORACLE_JAVA7_JRE
	default "/usr/lib/jvm"
	prompt "PREFIX for JRE 7"
	help
	  Where should the JRE be installed.

config ORACLE_JAVA7_JRE_ARCHX64
	boolean
	depends on ORACLE_JAVA7_JRE
	prompt "JRE7 x64 binary"
	help
	  Downloads the x64 binary instead

[-- Attachment #3: oracle-java7-jre.make --]
[-- Type: application/octet-stream, Size: 3073 bytes --]

# -*-makefile-*-
#
# Copyright (C) 2014 by Oracle
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_ORACLE_JAVA7_JRE) += oracle-java7-jre

#
# Paths and names
#
ifdef PTXCONF_ORACLE_JAVA7_JRE_ARCHX64
ORACLE_JAVA7_JRE_ARCH		:= x64
else
ORACLE_JAVA7_JRE_ARCH		:= i586
endif

ORACLE_JAVA7_JRE_VERSION	:= 7u67
ORACLE_JAVA7_JRE_MD5		:=
ORACLE_JAVA7_JRE		:= jre-$(ORACLE_JAVA7_JRE_VERSION)-linux-$(ORACLE_JAVA7_JRE_ARCH)
ORACLE_JAVA7_JRE_SUFFIX		:= tar.gz
ORACLE_JAVA7_JRE_URL		:= http://download.oracle.com/otn-pub/java/jdk/$(ORACLE_JAVA7_JRE_VERSION)-b01/$(ORACLE_JAVA7_JRE).$(ORACLE_JAVA7_JRE_SUFFIX)
ORACLE_JAVA7_JRE_SOURCE		:= $(SRCDIR)/$(ORACLE_JAVA7_JRE).$(ORACLE_JAVA7_JRE_SUFFIX)
ORACLE_JAVA7_JRE_DIR		:= $(BUILDDIR)/$(ORACLE_JAVA7_JRE)
ORACLE_JAVA7_JRE_LICENSE	:= unknown

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(ORACLE_JAVA7_JRE_SOURCE):
	@$(call targetinfo)
	wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" $(ORACLE_JAVA7_JRE_URL) -P $(SRCDIR)/
	@$(call touch)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

$(STATEDIR)/oracle-java7-jre.prepare:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/oracle-java7-jre.compile:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/oracle-java7-jre.install:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/oracle-java7-jre.targetinstall:
	@$(call targetinfo)

	@$(call install_init, oracle-java7-jre)
	@$(call install_fixup, oracle-java7-jre,PRIORITY,optional)
	@$(call install_fixup, oracle-java7-jre,SECTION,base)
	@$(call install_fixup, oracle-java7-jre,AUTHOR,"Oracle")
	@$(call install_fixup, oracle-java7-jre,DESCRIPTION,"Oracle Java Runtime Envinronment")

	@$(call install_tree, oracle-java7-jre, -, -, $(ORACLE_JAVA7_JRE_DIR), $(PTXCONF_ORACLE_JAVA7_JRE_TARGET_PREFIX)/jre-$(ORACLE_JAVA7_JRE_VERSION))

	@$(call install_finish, oracle-java7-jre)

	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/oracle-java7-jre.clean:
#	@$(call targetinfo)
#	@$(call clean_pkg, ORACLE_JAVA7_JRE)

# vim: syntax=make

[-- Attachment #4: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-11  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-11  7:10 [ptxdist] Updating java runtime environment Martin Hejnfelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox