Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/openjdk-bin/
Date: Thu, 18 Apr 2019 19:02:53
Message-Id: 1555613677.f443ace2db4efc0619bc5d951a15a6c8b858a23d.gyakovlev@gentoo
1 commit: f443ace2db4efc0619bc5d951a15a6c8b858a23d
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 18 18:24:47 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 18 18:54:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f443ace2
7
8 dev-java/openjdk-bin: bump to 11.0.3_p7
9
10 amd64 for now, upstream hasn't published all tarballs yet
11
12 Package-Manager: Portage-2.3.63, Repoman-2.3.12
13 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
14
15 dev-java/openjdk-bin/Manifest | 1 +
16 dev-java/openjdk-bin/openjdk-bin-11.0.3_p7.ebuild | 101 ++++++++++++++++++++++
17 2 files changed, 102 insertions(+)
18
19 diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest
20 index 0bef8aecfd4..6db9d67d1c2 100644
21 --- a/dev-java/openjdk-bin/Manifest
22 +++ b/dev-java/openjdk-bin/Manifest
23 @@ -4,6 +4,7 @@ DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.2_7.tar.gz 180394013 BLAKE2B b5b8
24 DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.2_9.tar.gz 180384673 BLAKE2B 51cc7f53c371dc140f9cd17c3523251929e384ca73eb34c283b969be1b5c91b1ec15bf72fe08c80b141a96aa0de5dcb0c9631e2f776e123ad5a4059174dfbc1a SHA512 00ecb0fe1e5b4f682841eeda41525dc5a9205e55ec8ccb332aa1dc724499d2df927870c8b70da950384b50a8014bbd70d0025a5ce0ccb90bfc4df028e64613cb
25 DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_7.tar.gz 195593592 BLAKE2B 038c88dd4475842ffd27afc9249925baea0230cd993a963e13c2e090a0f6332fbeaebefae5b5e98026a12a7d94696633507a9d08af469b0227372088b5cd4869 SHA512 f9f4d168105e499b0da4923c6fe18c31ea6f6a24a48fc9d47b643460316d75de273f8f6dcbd43c9df6efcfb77127182dab8125c55f63200c5ff53cc9eb0ddcdc
26 DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_9.tar.gz 195592867 BLAKE2B 91593fc849e558abf965ecfeadefbeab464e1c4562ec57d0bb6dcb9c17525a7cf37593d8fa2146d4545122a634d22c46764af32a124a0e17621da8b643c2770d SHA512 976874e04df71f747a5a7a78081b5989adfcf783b5642d3a0ca2ab2a98547fbe9495dce57b8eda69240f1850bead7bdd6cd59bf9f53ba70400e0806e0950866d
27 +DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.3_7.tar.gz 195982221 BLAKE2B 61ccbceb07bcb72a5f9d797997b4a250c2d171d7c7930877db0865d95b1faeb83e160eab59c484d2fce06a7116f06eb8a57eb5295a254fba7315ccb2e88b6db9 SHA512 2c590492ab9bddef68afcfbb54117688e1b24b41dc871bc4ba869319c16587ebfc061ce72712f209403e76d589f01d57cd85384653b1ecf767ee8e4018e1607a
28 DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u191b12.tar.gz 75382012 BLAKE2B 9521bb3d0dc08d5069108bb56594d401cbadf7a290652a39c7379e6ded530044e85f1ffae1cd3eb7e881d7c283c06463e6f8b76602d03a7bf5b188b1004f5daf SHA512 156f7a57f095095b72edb4bfc766d575795e496b006fb994566b0207d346e89863cf377ce97290bf1b47923c5d6aee5558eaa7a54f394f95a270b1cfec4308e2
29 DIST OpenJDK8U-jdk_ppc64le_linux_hotspot_8u202b08.tar.gz 101497437 BLAKE2B 4fdc659f9cc50fd968cd339cf24780cd0097286fe3004669972b925fa5c8bbd0e6024587f761ef05ec170c4caa6a915f9f748badd021fae6eb669aa613e1c90d SHA512 42991d2203d51492090e92ee4c7600e7b0ab613550d925f52dd7c7c3b796f9bd36e7284d55540b661a5175064d714267cddd786d81aeda358feda3927e3676e3
30 DIST OpenJDK8U-jdk_ppc64le_linux_hotspot_8u212b03.tar.gz 101610850 BLAKE2B 3a782f21855b1633255b2691e4adb516b12b84e37d81cdfda2b7b251cf78602a3b4c4120fbaec01d177fe7187b581f5dde392c7f841a39d269b548f1ada18be2 SHA512 25d53c8ca9bc4e1fd0ae1fca349d1e605e0dfb8a4aa386408875d5c23ef8b3ecc42ed297bc125f2ab74e9726e10374ec12d6c39736a53a94d3150001756e0027
31
32 diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.3_p7.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.3_p7.ebuild
33 new file mode 100644
34 index 00000000000..8cc6752e5ae
35 --- /dev/null
36 +++ b/dev-java/openjdk-bin/openjdk-bin-11.0.3_p7.ebuild
37 @@ -0,0 +1,101 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=6
42 +
43 +inherit java-vm-2
44 +
45 +abi_uri() {
46 + echo "${2-$1}? (
47 + https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jdk_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz
48 + )"
49 +}
50 +
51 +MY_PV=${PV/_p/+}
52 +SLOT=${MY_PV%%[.+]*}
53 +
54 +SRC_URI="
55 + $(abi_uri x64 amd64)
56 +"
57 +
58 +DESCRIPTION="Prebuilt Java JDK binaries provided by AdoptOpenJDK"
59 +HOMEPAGE="https://adoptopenjdk.net"
60 +LICENSE="GPL-2-with-classpath-exception"
61 +KEYWORDS="~amd64"
62 +IUSE="alsa cups doc examples +gentoo-vm headless-awt nsplugin selinux source +webstart"
63 +
64 +RDEPEND="
65 + media-libs/fontconfig:1.0
66 + media-libs/freetype:2
67 + >=sys-libs/glibc-2.2.5:*
68 + sys-libs/zlib
69 + alsa? ( media-libs/alsa-lib )
70 + cups? ( net-print/cups )
71 + doc? ( dev-java/java-sdk-docs:${SLOT} )
72 + selinux? ( sec-policy/selinux-java )
73 + !headless-awt? (
74 + x11-libs/libX11
75 + x11-libs/libXext
76 + x11-libs/libXi
77 + x11-libs/libXrender
78 + x11-libs/libXtst
79 + )"
80 +
81 +PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
82 + nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )"
83 +
84 +RESTRICT="preserve-libs splitdebug"
85 +QA_PREBUILT="*"
86 +
87 +S="${WORKDIR}/jdk-${MY_PV}"
88 +
89 +src_install() {
90 + local dest="/opt/${P}"
91 + local ddest="${ED}${dest#/}"
92 +
93 + # Not sure why they bundle this as it's commonly available and they
94 + # only do so on x86_64. It's needed by libfontmanager.so. IcedTea
95 + # also has an explicit dependency while Oracle seemingly dlopens it.
96 + rm -vf lib/libfreetype.so || die
97 +
98 + # Oracle and IcedTea have libjsoundalsa.so depending on
99 + # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
100 + if ! use alsa ; then
101 + rm -v lib/libjsound.* || die
102 + fi
103 +
104 + if ! use examples ; then
105 + rm -vr demo/ || die
106 + fi
107 +
108 + if use headless-awt ; then
109 + rm -v lib/lib*{[jx]awt,splashscreen}* || die
110 + fi
111 +
112 + if ! use source ; then
113 + rm -v lib/src.zip || die
114 + fi
115 +
116 + dodir "${dest}"
117 + cp -pPR * "${ddest}" || die
118 +
119 + use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
120 + java-vm_set-pax-markings "${ddest}"
121 + java-vm_revdep-mask
122 + java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
123 +}
124 +
125 +pkg_postinst() {
126 + java-vm-2_pkg_postinst
127 +
128 + if use gentoo-vm ; then
129 + ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
130 + ewarn "recognised by the system. This will almost certainly break things."
131 + else
132 + ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK"
133 + ewarn "will not be recognised by the system. For example, simply calling"
134 + ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
135 + ewarn "fully supports Java 11. This JDK must therefore be invoked using its"
136 + ewarn "absolute location under ${EPREFIX}/opt/${P}."
137 + fi
138 +}