diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-23 10:22:15 +0100 |
commit | 8b4ace9c50842c5b83401ea7b179dcab940387e1 (patch) | |
tree | 230f3135ceaace633cf93e9838b185c4a6664c2e /dev-java/openjdk/openjdk-8.265_p01.ebuild | |
parent | 9ee6d97c2883d42f204a533a8bc1f4562df778fb (diff) |
gentoo resync : 23.09.2020
Diffstat (limited to 'dev-java/openjdk/openjdk-8.265_p01.ebuild')
-rw-r--r-- | dev-java/openjdk/openjdk-8.265_p01.ebuild | 57 |
1 files changed, 42 insertions, 15 deletions
diff --git a/dev-java/openjdk/openjdk-8.265_p01.ebuild b/dev-java/openjdk/openjdk-8.265_p01.ebuild index df934d0962ae..038f2db6b3c0 100644 --- a/dev-java/openjdk/openjdk-8.265_p01.ebuild +++ b/dev-java/openjdk/openjdk-8.265_p01.ebuild @@ -9,26 +9,42 @@ inherit check-reqs eapi7-ver flag-o-matic java-pkg-2 java-vm-2 multiprocessing p # as _p component of the gentoo version string. MY_PV=$(ver_rs 1 'u' 2 '-' ${PV%_p*}-ga) +MY_PN_AARCH64="${PN}-aarch64-shenandoah" +MY_PV_AARCH64="$(ver_rs 1 'u' 2 '-' ${PV/_p/-b})" +MY_P_AARCH64="${MY_PN_AARCH64/#${PN}-}-jdk${MY_PV_AARCH64}" BASE_URI="https://hg.${PN}.java.net/jdk8u/jdk8u" +AARCH64_URI="https://hg.${PN}.java.net/aarch64-port/jdk8u-shenandoah" DESCRIPTION="Open source implementation of the Java programming language" HOMEPAGE="https://openjdk.java.net" SRC_URI=" - ${BASE_URI}/archive/jdk${MY_PV}.tar.bz2 -> ${P}.tar.bz2 - ${BASE_URI}/corba/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-corba-${PV}.tar.bz2 - ${BASE_URI}/hotspot/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-hotspot-${PV}.tar.bz2 - ${BASE_URI}/jaxp/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jaxp-${PV}.tar.bz2 - ${BASE_URI}/jaxws/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jaxws-${PV}.tar.bz2 - ${BASE_URI}/jdk/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jdk-${PV}.tar.bz2 - ${BASE_URI}/langtools/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-langtools-${PV}.tar.bz2 - ${BASE_URI}/nashorn/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-nashorn-${PV}.tar.bz2 + !arm64? ( + ${BASE_URI}/archive/jdk${MY_PV}.tar.bz2 -> ${P}.tar.bz2 + ${BASE_URI}/corba/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-corba-${PV}.tar.bz2 + ${BASE_URI}/hotspot/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-hotspot-${PV}.tar.bz2 + ${BASE_URI}/jaxp/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jaxp-${PV}.tar.bz2 + ${BASE_URI}/jaxws/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jaxws-${PV}.tar.bz2 + ${BASE_URI}/jdk/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jdk-${PV}.tar.bz2 + ${BASE_URI}/langtools/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-langtools-${PV}.tar.bz2 + ${BASE_URI}/nashorn/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-nashorn-${PV}.tar.bz2 + ) + arm64? ( + ${AARCH64_URI}/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-${PV}.tar.bz2 + ${AARCH64_URI}/corba/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-corba-${PV}.tar.bz2 + ${AARCH64_URI}/hotspot/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-hotspot-${PV}.tar.bz2 + ${AARCH64_URI}/jaxp/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-jaxp-${PV}.tar.bz2 + ${AARCH64_URI}/jaxws/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-jaxws-${PV}.tar.bz2 + ${AARCH64_URI}/jdk/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-jdk-${PV}.tar.bz2 + ${AARCH64_URI}/langtools/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-langtools-${PV}.tar.bz2 + ${AARCH64_URI}/nashorn/archive/${MY_P_AARCH64}.tar.bz2 -> ${MY_PN_AARCH64}-nashorn-jdk${PV}.tar.bz2 + ) " LICENSE="GPL-2" SLOT="$(ver_cut 1)" -KEYWORDS="amd64 ppc64 x86" -IUSE="alsa debug cups doc examples headless-awt +jbootstrap +pch selinux source" +KEYWORDS="amd64 ~arm64 ppc64 x86" +IUSE="alsa debug cups doc examples headless-awt javafx +jbootstrap +pch selinux source" COMMON_DEPEND=" media-libs/freetype:2= @@ -73,7 +89,7 @@ DEPEND=" ) " -S="${WORKDIR}/jdk${SLOT}u-jdk${MY_PV}" +PDEPEND="javafx? ( dev-java/openjfx:${SLOT} )" # The space required to build varies wildly depending on USE flags, # ranging from 2GB to 16GB. This function is certainly not exact but @@ -106,16 +122,24 @@ pkg_setup() { java-pkg-2_pkg_setup } -src_prepare() { +src_unpack() { default - chmod +x configure || die + mv -v "jdk${SLOT}u"* "${P}" || die + local repo for repo in corba hotspot jdk jaxp jaxws langtools nashorn; do - ln -s ../"${repo}-jdk${MY_PV}" "${repo}" || die + mv -v "${repo}-"* "${P}/${repo}" || die done +} + +src_prepare() { + default + # new warnings in new gcc https://bugs.gentoo.org/685426 sed -i '/^WARNINGS_ARE_ERRORS/ s/-Werror/-Wno-error/' \ hotspot/make/linux/makefiles/gcc.make || die + + chmod +x configure || die } src_configure() { @@ -128,6 +152,8 @@ src_configure() { # Work around -fno-common ( GCC10 default ), bug #706638 append-flags -fcommon + tc-export_build_env CC CXX PKG_CONFIG STRIP + local myconf=( --disable-ccache --enable-unlimited-crypto @@ -162,6 +188,7 @@ src_configure() { unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS CFLAGS= CXXFLAGS= LDFLAGS= \ CONFIG_SITE=/dev/null \ + CONFIG_SHELL="${EPREFIX}/bin/bash" econf "${myconf[@]}" ) } @@ -186,7 +213,7 @@ src_install() { rm -v jre/lib/$(get_system_arch)/libjsoundalsa.* || die fi - # stupid build system does not remove that + # build system does not remove that if use headless-awt ; then rm -fvr jre/lib/$(get_system_arch)/lib*{[jx]awt,splashscreen}* \ {,jre/}bin/policytool bin/appletviewer || die |