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: Mon, 28 Jan 2019 19:51:49
Message-Id: 1548645788.bdfe3f11817e070cbf1928dd1db8cf119f57080b.gyakovlev@gentoo
1 commit: bdfe3f11817e070cbf1928dd1db8cf119f57080b
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 28 01:37:43 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 28 03:23:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdfe3f11
7
8 dev-java/openjdk-bin: bump to 11.0.2+7
9
10 Package-Manager: Portage-2.3.58, Repoman-2.3.12
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 dev-java/openjdk-bin/Manifest | 3 +
14 dev-java/openjdk-bin/openjdk-bin-11.0.2_p7.ebuild | 103 ++++++++++++++++++++++
15 2 files changed, 106 insertions(+)
16
17 diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest
18 index bf94ddca929..8e4b58d42c3 100644
19 --- a/dev-java/openjdk-bin/Manifest
20 +++ b/dev-java/openjdk-bin/Manifest
21 @@ -2,5 +2,8 @@ DIST OpenJDK11-jdk_aarch64_linux_hotspot_11_28.tar.gz 193328951 BLAKE2B f7586ed6
22 DIST OpenJDK11-jdk_ppc64le_linux_hotspot_11_28.tar.gz 176285783 BLAKE2B a64f86a4f69302efe0eb2645d39c44ce89bcf58c765c12c109735fb2ede5959b0659d4b9f85cf8e79102fc6f00443b99a78fc5745086b1b5e16bd41958db1ed7 SHA512 84eb35634a985647d4fc90c6c4a1855c1c059e5fde8cf3ef7665fa754a7549cb3905a1c35710c6c936426efd6e0bc1ac773fbef11550dbadbff622fd2c201d74
23 DIST OpenJDK11-jdk_x64_linux_hotspot_11_28.tar.gz 195689094 BLAKE2B 4d65b7993fddd113964103a1066faa6e7e83ab7807f6403c1f5bc5a72ca82dc51287d4911e264ba5754b7c1184aa1f1d1c94d19ae242ab02bf238f6c359c0de3 SHA512 f7a427bc33b2e8a2f68c7955b23d14f2eacf7b526f2990b29e55bdb1ae96d3e14f3d7c169c76ba4b18fd8195cef81d7199a37a81ce73d6b21a72f07388e70793
24 DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.1_13.tar.gz 193388219 BLAKE2B 21ff9bcd5288a17ff7f660fb9b1bbb6c38589fea72850729227a985dce1966c6d0b0d6c64ad6885c17612d215e58a50cec5f70205877bb26c70924b15f92886b SHA512 200ebd5882e2ebd315a2d0fdd800d70b52d468022ae565756ccd56e1fdd2464b459753cfad6c5f46a61cdda8a003cdfe031c2a6a12e047bbe7ee2133dd048546
25 +DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.2_7.tar.gz 194181157 BLAKE2B 7883e6846670c87f4ed8338804671bff19ba2910e1e96eacd9729f2ba64e9c6b460d300080e3cd3a4f94722ff9942832681bf23f64e9401e07d824028614874f SHA512 d982d4ba8c1b99b8685b36b9c0b6bb6ff8f8ec04de74945876915e01827fb389ad72d868c387f0ef4d5dd1a21cb09170b0d14ca33a2c2ec0c1f95c09fc1a475a
26 DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.1_13.tar.gz 179520284 BLAKE2B 32acf913aa1b176ca98af0c6111e7f14bba22b84547e24dac279205bb0c81fc3845239e9e34c897c18452ebbb4c71b8185fc4d7d3a2856f3cc767ed4c268d61c SHA512 3bf9fa8eb4cdad03dbbb648b6ab1d8ed5ed34584abe2bec254626952aeba2fc5d492075ba0308ab8e28824959df5f11bb46ec1638c2588b352dd58a5097c030a
27 +DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.2_7.tar.gz 180394013 BLAKE2B b5b82b6cd4121e2fbf66c948435bc84d549a11a793310bf0624898562005d5fc01a2f2de84a18517a75ccb2ed7d9f5173dc0a087500eb897e8d7461838991af1 SHA512 5f1a54e7d2456b42e23488b3699b09d82c57f3cb7056684a15f5aa19b992f4b1638acac716d6ed15c0a409ff1953022892ea55f7ed0542d210f5fd43f33fd8e0
28 DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz 195710782 BLAKE2B a374afea8de4333488294dcb200e235f7cc42309a56e693a9b5434dc74d0189b57c26adc93ef22454a4ed05f44b90afa8fdfc016feb022c1eaeb706044581f24 SHA512 b5e55cd32daa3b30fb84b8f4fed0ef70e4f8e3e153974c0c9fa0fcdf22cade99613da93f2289798b625adde24d9a1c4c4808a139e9f2feb2543b05f273f3bdd8
29 +DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_7.tar.gz 195593592 BLAKE2B 038c88dd4475842ffd27afc9249925baea0230cd993a963e13c2e090a0f6332fbeaebefae5b5e98026a12a7d94696633507a9d08af469b0227372088b5cd4869 SHA512 f9f4d168105e499b0da4923c6fe18c31ea6f6a24a48fc9d47b643460316d75de273f8f6dcbd43c9df6efcfb77127182dab8125c55f63200c5ff53cc9eb0ddcdc
30
31 diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.2_p7.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.2_p7.ebuild
32 new file mode 100644
33 index 00000000000..ad6e3e5d68c
34 --- /dev/null
35 +++ b/dev-java/openjdk-bin/openjdk-bin-11.0.2_p7.ebuild
36 @@ -0,0 +1,103 @@
37 +# Copyright 1999-2019 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +inherit java-vm-2
43 +
44 +abi_uri() {
45 + echo "${2-$1}? (
46 + https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jdk_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz
47 + )"
48 +}
49 +
50 +MY_PV=${PV/_p/+}
51 +SLOT=${MY_PV%%[.+]*}
52 +
53 +SRC_URI="
54 + $(abi_uri x64 amd64)
55 + $(abi_uri aarch64 arm64)
56 + $(abi_uri ppc64le ppc64)
57 +"
58 +
59 +DESCRIPTION="Prebuilt Java JDK binaries provided by AdoptOpenJDK"
60 +HOMEPAGE="https://adoptopenjdk.net"
61 +LICENSE="GPL-2-with-classpath-exception"
62 +KEYWORDS="~amd64 ~arm64 ~ppc64"
63 +IUSE="alsa cups doc examples +gentoo-vm headless-awt nsplugin selinux source +webstart"
64 +
65 +RDEPEND="
66 + media-libs/fontconfig:1.0
67 + media-libs/freetype:2
68 + >=sys-libs/glibc-2.2.5:*
69 + sys-libs/zlib
70 + alsa? ( media-libs/alsa-lib )
71 + cups? ( net-print/cups )
72 + doc? ( dev-java/java-sdk-docs:${SLOT} )
73 + selinux? ( sec-policy/selinux-java )
74 + !headless-awt? (
75 + x11-libs/libX11
76 + x11-libs/libXext
77 + x11-libs/libXi
78 + x11-libs/libXrender
79 + x11-libs/libXtst
80 + )"
81 +
82 +PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
83 + nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )"
84 +
85 +RESTRICT="preserve-libs splitdebug"
86 +QA_PREBUILT="*"
87 +
88 +S="${WORKDIR}/jdk-${MY_PV}"
89 +
90 +src_install() {
91 + local dest="/opt/${P}"
92 + local ddest="${ED}${dest#/}"
93 +
94 + # Not sure why they bundle this as it's commonly available and they
95 + # only do so on x86_64. It's needed by libfontmanager.so. IcedTea
96 + # also has an explicit dependency while Oracle seemingly dlopens it.
97 + rm -vf lib/libfreetype.so || die
98 +
99 + # Oracle and IcedTea have libjsoundalsa.so depending on
100 + # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
101 + if ! use alsa ; then
102 + rm -v lib/libjsound.* || die
103 + fi
104 +
105 + if ! use examples ; then
106 + rm -vr demo/ || die
107 + fi
108 +
109 + if use headless-awt ; then
110 + rm -v lib/lib*{[jx]awt,splashscreen}* || die
111 + fi
112 +
113 + if ! use source ; then
114 + rm -v lib/src.zip || die
115 + fi
116 +
117 + dodir "${dest}"
118 + cp -pPR * "${ddest}" || die
119 +
120 + use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
121 + java-vm_set-pax-markings "${ddest}"
122 + java-vm_revdep-mask
123 + java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
124 +}
125 +
126 +pkg_postinst() {
127 + java-vm-2_pkg_postinst
128 +
129 + if use gentoo-vm ; then
130 + ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
131 + ewarn "recognised by the system. This will almost certainly break things."
132 + else
133 + ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK"
134 + ewarn "will not be recognised by the system. For example, simply calling"
135 + ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
136 + ewarn "fully supports Java 11. This JDK must therefore be invoked using its"
137 + ewarn "absolute location under ${EPREFIX}/opt/${P}."
138 + fi
139 +}