From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7DEF0158011 for ; Mon, 10 Jan 2022 12:54:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FD912BC00F; Mon, 10 Jan 2022 12:54:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C20EF2BC00D for ; Mon, 10 Jan 2022 12:54:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E17DE34302B for ; Mon, 10 Jan 2022 12:54:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 60E0A21D for ; Mon, 10 Jan 2022 12:54:20 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1641819213.101977fc33bee7f527b6f78d8974f2c05ef50d57.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-java/openjdk-sts-bin/, dev-java/openjdk-sts-bin/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-java/openjdk-sts-bin/Manifest dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh dev-java/openjdk-sts-bin/metadata.xml dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild X-VCS-Directories: dev-java/openjdk-sts-bin/files/ dev-java/openjdk-sts-bin/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 101977fc33bee7f527b6f78d8974f2c05ef50d57 X-VCS-Branch: dev Date: Mon, 10 Jan 2022 12:54:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 50562e64-be97-453e-9117-f825a8f8102b X-Archives-Hash: d201d8e306d2bce595178b61f949dfba commit: 101977fc33bee7f527b6f78d8974f2c05ef50d57 Author: Andrew Ammerlaan gentoo org> AuthorDate: Mon Jan 10 12:53:33 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Mon Jan 10 12:53:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=101977fc dev-java/openjdk-sts-bin: remove package Nobody is maintaing this, and we already have openjdk:17 in ::gentoo Final package using EAPI 6 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-java/openjdk-sts-bin/Manifest | 4 - .../files/openjdk-sts-bin-15.env.sh | 16 --- dev-java/openjdk-sts-bin/metadata.xml | 15 --- .../openjdk-sts-bin-15.0.2_p7.ebuild | 112 --------------------- 4 files changed, 147 deletions(-) diff --git a/dev-java/openjdk-sts-bin/Manifest b/dev-java/openjdk-sts-bin/Manifest deleted file mode 100644 index 7042a5750..000000000 --- a/dev-java/openjdk-sts-bin/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST OpenJDK15U-jdk_aarch64_linux_hotspot_15.0.2_7.tar.gz 203662871 BLAKE2B 898073b773eec5c93c02cf234d1c4cc8ca6862756cab191e7cb4455a0fef507516bc8e7f9e8a2793a15c35e5f3f38e2f5456272a827b78a94604fce67eaada25 SHA512 3a8d7d9ef106592a9374e687697d6b934d4372f821c35b4cc94e1b3ceb425094a4e289b118319f60f73d307083090de68b3a8e9a8a04fef32db03df64a9ebf70 -DIST OpenJDK15U-jdk_arm_linux_hotspot_15.0.2_7.tar.gz 189527214 BLAKE2B 83284aa6df5a99ad3c64cf7986be49458892448b190ed081136f71af64ea8bcdfb7a2ae29d8f6ba42fd55746df977f66c7315027e1010932d3473721b34258d8 SHA512 8de110a836766bb36fa3d41b95f941ca7f85d4e94f3e3a115cb2b845d6f6efa548e077bcc60d98cc4d84a56a90adf7b98f2ca6bb2ce541253138dd6dd8a7844b -DIST OpenJDK15U-jdk_ppc64le_linux_hotspot_15.0.2_7.tar.gz 188162894 BLAKE2B 7059aced12eea5783c40dd26d2ecd27d0e5999fe9761e6457a82609449b8e58920699d17525ff6d34c327162ec72d2e502ef77ab8b0b721b328fa42bc6c92154 SHA512 e39d870cd3563e3ab60cadf252e5e621be520e6eb49782b39c03ea1d4f750dfbf2857bb636ff274c52235f1c6410d4bfbe5a0aa6231348118d958e104fc6afd5 -DIST OpenJDK15U-jdk_x64_linux_hotspot_15.0.2_7.tar.gz 206039221 BLAKE2B a3ed4a2f823556a0a79668a6e68716eb0e08eb57fc0b6000e1e0c016d72f563c576b461829aa80fb5aa69b28b1a61eb8d64dd75f5082c773319d0002eba7ac04 SHA512 4b82e3199e9a6eddadb3cdf3209ca7635dd4664c423a22a404bb69ae43af09cdd2e284246f0c50093ff128ed4a8a89c24c20a0e1d47fa64e0d79b3b5f2234409 diff --git a/dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh b/dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh deleted file mode 100644 index 1def83a22..000000000 --- a/dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -VERSION="AdoptOpenJDK ${PV}" -JAVA_HOME="${EPREFIX}/opt/${P}" -JDK_HOME="${EPREFIX}/opt/${P}" -JAVAC="\${JAVA_HOME}/bin/javac" -PATH="\${JAVA_HOME}/bin" -ROOTPATH="\${JAVA_HOME}/bin" -LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/" -MANPATH="" -PROVIDES_TYPE="JDK JRE" -PROVIDES_VERSION="${SLOT}" -BOOTCLASSPATH="" -GENERATION="2" -ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" diff --git a/dev-java/openjdk-sts-bin/metadata.xml b/dev-java/openjdk-sts-bin/metadata.xml deleted file mode 100644 index efe49bae3..000000000 --- a/dev-java/openjdk-sts-bin/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - Java™ is the world's leading programming language and platform. - The code for Java is open source and available at OpenJDK™. - AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. - - - Don't install the X backend for AWT, needed by some GUIs (used to be X flag) - Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!) - Install JVM sources - - diff --git a/dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild b/dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild deleted file mode 100644 index 149271d16..000000000 --- a/dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# java-vm not yet ported to EAPI 7 -EAPI=6 - -inherit java-vm-2 toolchain-funcs - -abi_uri() { - echo "${2-$1}? ( - https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jdk_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz - )" -} - -MY_PV=${PV/_p/+} -SLOT=${MY_PV%%[.+]*} - -SRC_URI=" - $(abi_uri arm) - $(abi_uri aarch64 arm64) - $(abi_uri ppc64le ppc64) - $(abi_uri x64 amd64) -" -DESCRIPTION="Prebuilt Java JDK binaries provided by AdoptOpenJDK. Short Term Supported" -HOMEPAGE="https://adoptopenjdk.net" - -LICENSE="GPL-2-with-classpath-exception" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" - -IUSE="alsa cups gentoo-vm headless-awt source" - -RDEPEND=" - media-libs/fontconfig:1.0 - media-libs/freetype:2 - >=sys-apps/baselayout-java-0.1.0-r1 - >=sys-libs/glibc-2.29-r7:* - sys-libs/zlib - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups ) - !headless-awt? ( - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrender - x11-libs/libXtst - )" - -RESTRICT="preserve-libs splitdebug" -QA_PREBUILT="*" - -S="${WORKDIR}/jdk-${MY_PV}" - -pkg_pretend() { - if [[ "$(tc-is-softfloat)" != "no" ]]; then - die "These binaries require a hardfloat system." - fi -} - -src_install() { - local dest="/opt/${P}" - local ddest="${ED%/}/${dest#/}" - - # Not sure why they bundle this as it's commonly available and they - # only do so on x86_64. It's needed by libfontmanager.so. IcedTea - # also has an explicit dependency while Oracle seemingly dlopens it. - rm -vf lib/libfreetype.so || die - - # Oracle and IcedTea have libjsoundalsa.so depending on - # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. - if ! use alsa ; then - rm -v lib/libjsound.* || die - fi - - if use headless-awt ; then - rm -v lib/lib*{[jx]awt,splashscreen}* || die - fi - - if ! use source ; then - rm -v lib/src.zip || die - fi - - rm -v lib/security/cacerts || die - dosym ../../../../etc/ssl/certs/java/cacerts \ - "${dest}"/lib/security/cacerts - - dodir "${dest}" - cp -pPR * "${ddest}" || die - - use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh - java-vm_set-pax-markings "${ddest}" - java-vm_revdep-mask - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter -} - -pkg_postinst() { - java-vm-2_pkg_postinst - - if use gentoo-vm ; then - ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" - ewarn "recognised by the system. If ${P} is set for system scope" - ewarn "this will almost certainly break" - ewarn "many java ebuilds as they are not ready for ${P}" - ewarn "You may enable it only for desired users via eselect java-vm" - ewarn "Example| larry# eselect java-vm set openjdk-bin-${SLOT}" - else - ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" - ewarn "will not be recognised by the system. For example, simply calling" - ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" - ewarn "fully supports Java 11. This JDK must therefore be invoked using its" - ewarn "absolute location under ${EPREFIX}/opt/${P}." - fi -} From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D9DCA158087 for ; Mon, 10 Jan 2022 13:13:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C0B92BC0B1; Mon, 10 Jan 2022 13:13:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 123512BC06C for ; Mon, 10 Jan 2022 13:13:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C699E34303A for ; Mon, 10 Jan 2022 13:13:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 472342A5 for ; Mon, 10 Jan 2022 13:13:48 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1641819213.101977fc33bee7f527b6f78d8974f2c05ef50d57.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-java/openjdk-sts-bin/, dev-java/openjdk-sts-bin/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-java/openjdk-sts-bin/Manifest dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh dev-java/openjdk-sts-bin/metadata.xml dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild X-VCS-Directories: dev-java/openjdk-sts-bin/ dev-java/openjdk-sts-bin/files/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 101977fc33bee7f527b6f78d8974f2c05ef50d57 X-VCS-Branch: master Date: Mon, 10 Jan 2022 13:13:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6b36ca99-625e-4c3c-9c29-82070221532f X-Archives-Hash: ebaa996340943f012a718cf8fd377056 Message-ID: <20220110131348.P2FMxWJ10vy5udXpCSox2DB5yhEaObCzQuy3WfUj3MU@z> commit: 101977fc33bee7f527b6f78d8974f2c05ef50d57 Author: Andrew Ammerlaan gentoo org> AuthorDate: Mon Jan 10 12:53:33 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Mon Jan 10 12:53:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=101977fc dev-java/openjdk-sts-bin: remove package Nobody is maintaing this, and we already have openjdk:17 in ::gentoo Final package using EAPI 6 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan gentoo.org> dev-java/openjdk-sts-bin/Manifest | 4 - .../files/openjdk-sts-bin-15.env.sh | 16 --- dev-java/openjdk-sts-bin/metadata.xml | 15 --- .../openjdk-sts-bin-15.0.2_p7.ebuild | 112 --------------------- 4 files changed, 147 deletions(-) diff --git a/dev-java/openjdk-sts-bin/Manifest b/dev-java/openjdk-sts-bin/Manifest deleted file mode 100644 index 7042a5750..000000000 --- a/dev-java/openjdk-sts-bin/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST OpenJDK15U-jdk_aarch64_linux_hotspot_15.0.2_7.tar.gz 203662871 BLAKE2B 898073b773eec5c93c02cf234d1c4cc8ca6862756cab191e7cb4455a0fef507516bc8e7f9e8a2793a15c35e5f3f38e2f5456272a827b78a94604fce67eaada25 SHA512 3a8d7d9ef106592a9374e687697d6b934d4372f821c35b4cc94e1b3ceb425094a4e289b118319f60f73d307083090de68b3a8e9a8a04fef32db03df64a9ebf70 -DIST OpenJDK15U-jdk_arm_linux_hotspot_15.0.2_7.tar.gz 189527214 BLAKE2B 83284aa6df5a99ad3c64cf7986be49458892448b190ed081136f71af64ea8bcdfb7a2ae29d8f6ba42fd55746df977f66c7315027e1010932d3473721b34258d8 SHA512 8de110a836766bb36fa3d41b95f941ca7f85d4e94f3e3a115cb2b845d6f6efa548e077bcc60d98cc4d84a56a90adf7b98f2ca6bb2ce541253138dd6dd8a7844b -DIST OpenJDK15U-jdk_ppc64le_linux_hotspot_15.0.2_7.tar.gz 188162894 BLAKE2B 7059aced12eea5783c40dd26d2ecd27d0e5999fe9761e6457a82609449b8e58920699d17525ff6d34c327162ec72d2e502ef77ab8b0b721b328fa42bc6c92154 SHA512 e39d870cd3563e3ab60cadf252e5e621be520e6eb49782b39c03ea1d4f750dfbf2857bb636ff274c52235f1c6410d4bfbe5a0aa6231348118d958e104fc6afd5 -DIST OpenJDK15U-jdk_x64_linux_hotspot_15.0.2_7.tar.gz 206039221 BLAKE2B a3ed4a2f823556a0a79668a6e68716eb0e08eb57fc0b6000e1e0c016d72f563c576b461829aa80fb5aa69b28b1a61eb8d64dd75f5082c773319d0002eba7ac04 SHA512 4b82e3199e9a6eddadb3cdf3209ca7635dd4664c423a22a404bb69ae43af09cdd2e284246f0c50093ff128ed4a8a89c24c20a0e1d47fa64e0d79b3b5f2234409 diff --git a/dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh b/dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh deleted file mode 100644 index 1def83a22..000000000 --- a/dev-java/openjdk-sts-bin/files/openjdk-sts-bin-15.env.sh +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -VERSION="AdoptOpenJDK ${PV}" -JAVA_HOME="${EPREFIX}/opt/${P}" -JDK_HOME="${EPREFIX}/opt/${P}" -JAVAC="\${JAVA_HOME}/bin/javac" -PATH="\${JAVA_HOME}/bin" -ROOTPATH="\${JAVA_HOME}/bin" -LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/" -MANPATH="" -PROVIDES_TYPE="JDK JRE" -PROVIDES_VERSION="${SLOT}" -BOOTCLASSPATH="" -GENERATION="2" -ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" diff --git a/dev-java/openjdk-sts-bin/metadata.xml b/dev-java/openjdk-sts-bin/metadata.xml deleted file mode 100644 index efe49bae3..000000000 --- a/dev-java/openjdk-sts-bin/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - Java™ is the world's leading programming language and platform. - The code for Java is open source and available at OpenJDK™. - AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. - - - Don't install the X backend for AWT, needed by some GUIs (used to be X flag) - Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!) - Install JVM sources - - diff --git a/dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild b/dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild deleted file mode 100644 index 149271d16..000000000 --- a/dev-java/openjdk-sts-bin/openjdk-sts-bin-15.0.2_p7.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# java-vm not yet ported to EAPI 7 -EAPI=6 - -inherit java-vm-2 toolchain-funcs - -abi_uri() { - echo "${2-$1}? ( - https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jdk_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz - )" -} - -MY_PV=${PV/_p/+} -SLOT=${MY_PV%%[.+]*} - -SRC_URI=" - $(abi_uri arm) - $(abi_uri aarch64 arm64) - $(abi_uri ppc64le ppc64) - $(abi_uri x64 amd64) -" -DESCRIPTION="Prebuilt Java JDK binaries provided by AdoptOpenJDK. Short Term Supported" -HOMEPAGE="https://adoptopenjdk.net" - -LICENSE="GPL-2-with-classpath-exception" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" - -IUSE="alsa cups gentoo-vm headless-awt source" - -RDEPEND=" - media-libs/fontconfig:1.0 - media-libs/freetype:2 - >=sys-apps/baselayout-java-0.1.0-r1 - >=sys-libs/glibc-2.29-r7:* - sys-libs/zlib - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups ) - !headless-awt? ( - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrender - x11-libs/libXtst - )" - -RESTRICT="preserve-libs splitdebug" -QA_PREBUILT="*" - -S="${WORKDIR}/jdk-${MY_PV}" - -pkg_pretend() { - if [[ "$(tc-is-softfloat)" != "no" ]]; then - die "These binaries require a hardfloat system." - fi -} - -src_install() { - local dest="/opt/${P}" - local ddest="${ED%/}/${dest#/}" - - # Not sure why they bundle this as it's commonly available and they - # only do so on x86_64. It's needed by libfontmanager.so. IcedTea - # also has an explicit dependency while Oracle seemingly dlopens it. - rm -vf lib/libfreetype.so || die - - # Oracle and IcedTea have libjsoundalsa.so depending on - # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. - if ! use alsa ; then - rm -v lib/libjsound.* || die - fi - - if use headless-awt ; then - rm -v lib/lib*{[jx]awt,splashscreen}* || die - fi - - if ! use source ; then - rm -v lib/src.zip || die - fi - - rm -v lib/security/cacerts || die - dosym ../../../../etc/ssl/certs/java/cacerts \ - "${dest}"/lib/security/cacerts - - dodir "${dest}" - cp -pPR * "${ddest}" || die - - use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh - java-vm_set-pax-markings "${ddest}" - java-vm_revdep-mask - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter -} - -pkg_postinst() { - java-vm-2_pkg_postinst - - if use gentoo-vm ; then - ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" - ewarn "recognised by the system. If ${P} is set for system scope" - ewarn "this will almost certainly break" - ewarn "many java ebuilds as they are not ready for ${P}" - ewarn "You may enable it only for desired users via eselect java-vm" - ewarn "Example| larry# eselect java-vm set openjdk-bin-${SLOT}" - else - ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" - ewarn "will not be recognised by the system. For example, simply calling" - ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" - ewarn "fully supports Java 11. This JDK must therefore be invoked using its" - ewarn "absolute location under ${EPREFIX}/opt/${P}." - fi -}