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/
Date: Wed, 01 Dec 2021 11:46:44
Message-Id: 1638359057.27a27dd3cf312d7bd0c8367c14331f801207f699.gyakovlev@gentoo
1 commit: 27a27dd3cf312d7bd0c8367c14331f801207f699
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 1 11:44:17 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 1 11:44:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27a27dd3
7
8 dev-java/openjdk: drop 11.0.12_p7
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 dev-java/openjdk/Manifest | 1 -
13 dev-java/openjdk/openjdk-11.0.12_p7.ebuild | 278 -----------------------------
14 2 files changed, 279 deletions(-)
15
16 diff --git a/dev-java/openjdk/Manifest b/dev-java/openjdk/Manifest
17 index 7bc1fdeebb98..c6f552673813 100644
18 --- a/dev-java/openjdk/Manifest
19 +++ b/dev-java/openjdk/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST openjdk-11.0.12_p7.tar.bz2 95201432 BLAKE2B 6a031fec8e49025dd07d970bc12ef4da23c0e6be8a7b6f6609154bbe607de386669e58c529a935504a4a115269cf3e5a142ced50be5b21961b21d6ba53c6ecc2 SHA512 ca2af877839ee91b989981112be0af446d835ddf9eb68fc4976c2f97b21a4b0c9ec67625c202084e92834dd1a75f97a8aeff77a45570a79dc870cf6bd9d5d97f
22 DIST openjdk-11.0.13_p8.tar.gz 122738754 BLAKE2B 5a60bf4245bc1e3591f4ebdf83a441f95a97a50a72a774612e99792789cd81a9317471cdadf4541efbe9b1549c2738a3cd30d134d3ded8de6d58f8a67b2aebe6 SHA512 38bd1be54533e9eebe407e771b1ece86ead755d1f3f0199e425aa4ad3e8fe511b0024986b7ffc59c571faa3dad510956e98ab1a48cb184c9cf5353bb7512cb06
23 DIST openjdk-17.0.1_p12.tar.gz 104597561 BLAKE2B 9bae16c0c0b973017258076bf8597101538e7ef29cb16357b17b112ae1aa058b17d26f22057cf3d6638104dbd83f5c19b6bcd124f589fc100eae83f78dc1c269 SHA512 220d87a29e1a25b670d721c27069b601a48c833069cb252f81ee6de2ff65fef23fd76e689fc755940f7e457b2419ef93a15cbeca64db2a8798028729df876d25
24 DIST openjdk-8.312_p07.tar.bz2 460874 BLAKE2B 2230d45b74044c894d1c1d25e7354ab9cf3d4df82ef1f149c31e2a755220775f59c76178847f61b99fc0859522fef4106c696e807c70602f9138c5110bcd3ed2 SHA512 483503cf4a54b736a9cb17179246d0fc602450e15d7815d3897d2c5a056483187b96f09280f6bb0522044150eb6733777bbb3a9130e8e34b6f6c865cb306e5a8
25
26 diff --git a/dev-java/openjdk/openjdk-11.0.12_p7.ebuild b/dev-java/openjdk/openjdk-11.0.12_p7.ebuild
27 deleted file mode 100644
28 index ddc5a76f8fcb..000000000000
29 --- a/dev-java/openjdk/openjdk-11.0.12_p7.ebuild
30 +++ /dev/null
31 @@ -1,278 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils toolchain-funcs
38 -
39 -# we need -ga tag to fetch tarball and unpack it, but exact number everywhere else to
40 -# set build version properly
41 -MY_PV="${PV%_p*}-ga"
42 -SLOT="${MY_PV%%[.+]*}"
43 -
44 -DESCRIPTION="Open source implementation of the Java programming language"
45 -HOMEPAGE="https://openjdk.java.net"
46 -SRC_URI="https://hg.${PN}.java.net/jdk-updates/jdk${SLOT}u/archive/jdk-${MY_PV}.tar.bz2 -> ${P}.tar.bz2"
47 -
48 -LICENSE="GPL-2"
49 -KEYWORDS="amd64 ~arm arm64 ppc64"
50 -
51 -IUSE="alsa cups debug doc examples gentoo-vm headless-awt javafx +jbootstrap +pch selinux source systemtap"
52 -
53 -COMMON_DEPEND="
54 - media-libs/freetype:2=
55 - media-libs/giflib:0/7
56 - media-libs/harfbuzz:=
57 - media-libs/libpng:0=
58 - media-libs/lcms:2=
59 - sys-libs/zlib
60 - virtual/jpeg:0=
61 - systemtap? ( dev-util/systemtap )
62 -"
63 -
64 -# Many libs are required to build, but not to run, make is possible to remove
65 -# by listing conditionally in RDEPEND unconditionally in DEPEND
66 -RDEPEND="
67 - ${COMMON_DEPEND}
68 - >=sys-apps/baselayout-java-0.1.0-r1
69 - !headless-awt? (
70 - x11-libs/libX11
71 - x11-libs/libXext
72 - x11-libs/libXi
73 - x11-libs/libXrandr
74 - x11-libs/libXrender
75 - x11-libs/libXt
76 - x11-libs/libXtst
77 - )
78 - alsa? ( media-libs/alsa-lib )
79 - cups? ( net-print/cups )
80 - selinux? ( sec-policy/selinux-java )
81 -"
82 -
83 -DEPEND="
84 - ${COMMON_DEPEND}
85 - app-arch/zip
86 - media-libs/alsa-lib
87 - net-print/cups
88 - x11-base/xorg-proto
89 - x11-libs/libX11
90 - x11-libs/libXext
91 - x11-libs/libXi
92 - x11-libs/libXrandr
93 - x11-libs/libXrender
94 - x11-libs/libXt
95 - x11-libs/libXtst
96 - javafx? ( dev-java/openjfx:${SLOT}= )
97 - || (
98 - dev-java/openjdk-bin:${SLOT}
99 - dev-java/openjdk:${SLOT}
100 - )
101 -"
102 -
103 -REQUIRED_USE="javafx? ( alsa !headless-awt )"
104 -
105 -S="${WORKDIR}/jdk${SLOT}u-jdk-${MY_PV}"
106 -
107 -# The space required to build varies wildly depending on USE flags,
108 -# ranging from 2GB to 16GB. This function is certainly not exact but
109 -# should be close enough to be useful.
110 -openjdk_check_requirements() {
111 - local M
112 - M=2048
113 - M=$(( $(usex jbootstrap 2 1) * $M ))
114 - M=$(( $(usex debug 3 1) * $M ))
115 - M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M ))
116 -
117 - CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE}
118 -}
119 -
120 -pkg_pretend() {
121 - openjdk_check_requirements
122 - if [[ ${MERGE_TYPE} != binary ]]; then
123 - has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}, bug #677876"
124 - fi
125 -}
126 -
127 -pkg_setup() {
128 - openjdk_check_requirements
129 - java-vm-2_pkg_setup
130 -
131 - JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}"
132 - JAVA_PKG_WANT_SOURCE="${SLOT}"
133 - JAVA_PKG_WANT_TARGET="${SLOT}"
134 -
135 - # The nastiness below is necessary while the gentoo-vm USE flag is
136 - # masked. First we call java-pkg-2_pkg_setup if it looks like the
137 - # flag was unmasked against one of the possible build VMs. If not,
138 - # we try finding one of them in their expected locations. This would
139 - # have been slightly less messy if openjdk-bin had been installed to
140 - # /opt/${PN}-${SLOT} or if there was a mechanism to install a VM env
141 - # file but disable it so that it would not normally be selectable.
142 -
143 - local vm
144 - for vm in ${JAVA_PKG_WANT_BUILD_VM}; do
145 - if [[ -d ${EPREFIX}/usr/lib/jvm/${vm} ]]; then
146 - java-pkg-2_pkg_setup
147 - return
148 - fi
149 - done
150 -
151 - if has_version --host-root dev-java/openjdk:${SLOT}; then
152 - export JDK_HOME=${EPREFIX}/usr/$(get_libdir)/openjdk-${SLOT}
153 - else
154 - if [[ ${MERGE_TYPE} != "binary" ]]; then
155 - JDK_HOME=$(best_version --host-root dev-java/openjdk-bin:${SLOT})
156 - [[ -n ${JDK_HOME} ]] || die "Build VM not found!"
157 - JDK_HOME=${JDK_HOME#*/}
158 - JDK_HOME=${EPREFIX}/opt/${JDK_HOME%-r*}
159 - export JDK_HOME
160 - fi
161 - fi
162 -}
163 -
164 -src_prepare() {
165 - default
166 - chmod +x configure || die
167 -}
168 -
169 -src_configure() {
170 - # Work around stack alignment issue, bug #647954. in case we ever have x86
171 - use x86 && append-flags -mincoming-stack-boundary=2
172 -
173 - # Work around -fno-common ( GCC10 default ), bug #713180
174 - append-flags -fcommon
175 -
176 - # Strip some flags users may set, but should not. #818502
177 - filter-flags -fexceptions
178 -
179 - # Enabling full docs appears to break doc building. If not
180 - # explicitly disabled, the flag will get auto-enabled if pandoc and
181 - # graphviz are detected. pandoc has loads of dependencies anyway.
182 -
183 - local myconf=(
184 - --disable-ccache
185 - --enable-full-docs=no
186 - --with-boot-jdk="${JDK_HOME}"
187 - --with-extra-cflags="${CFLAGS}"
188 - --with-extra-cxxflags="${CXXFLAGS}"
189 - --with-extra-ldflags="${LDFLAGS}"
190 - --with-freetype=system
191 - --with-giflib=system
192 - --with-harfbuzz=system
193 - --with-lcms=system
194 - --with-libjpeg=system
195 - --with-libpng=system
196 - --with-native-debug-symbols=$(usex debug internal none)
197 - --with-vendor-name="Gentoo"
198 - --with-vendor-url="https://gentoo.org"
199 - --with-vendor-bug-url="https://bugs.gentoo.org"
200 - --with-vendor-vm-bug-url="https://bugs.openjdk.java.net"
201 - --with-vendor-version-string="${PVR}"
202 - --with-version-pre=""
203 - --with-version-string="${PV%_p*}"
204 - --with-version-build="${PV#*_p}"
205 - --with-zlib=system
206 - --enable-dtrace=$(usex systemtap yes no)
207 - --enable-headless-only=$(usex headless-awt yes no)
208 - $(tc-is-clang && echo "--with-toolchain-type=clang")
209 - )
210 -
211 - if use javafx; then
212 - local zip="${EPREFIX%/}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip"
213 - if [[ -r ${zip} ]]; then
214 - myconf+=( --with-import-modules="${zip}" )
215 - else
216 - die "${zip} not found or not readable"
217 - fi
218 - fi
219 -
220 - # PaX breaks pch, bug #601016
221 - if use pch && ! host-is-pax; then
222 - myconf+=( --enable-precompiled-headers )
223 - else
224 - myconf+=( --disable-precompiled-headers )
225 - fi
226 -
227 - (
228 - unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS
229 - CFLAGS= CXXFLAGS= LDFLAGS= \
230 - CONFIG_SITE=/dev/null \
231 - econf "${myconf[@]}"
232 - )
233 -}
234 -
235 -src_compile() {
236 - local myemakeargs=(
237 - JOBS=$(makeopts_jobs)
238 - LOG=debug
239 - CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror
240 - $(usex doc docs '')
241 - $(usex jbootstrap bootcycle-images product-images)
242 - )
243 - emake "${myemakeargs[@]}" -j1 #nowarn
244 -}
245 -
246 -src_install() {
247 - local dest="/usr/$(get_libdir)/${PN}-${SLOT}"
248 - local ddest="${ED}${dest#/}"
249 -
250 - cd "${S}"/build/*-release/images/jdk || die
251 -
252 - # Create files used as storage for system preferences.
253 - mkdir .systemPrefs || die
254 - touch .systemPrefs/.system.lock || die
255 - touch .systemPrefs/.systemRootModFile || die
256 -
257 - # Oracle and IcedTea have libjsoundalsa.so depending on
258 - # libasound.so.2 but OpenJDK only has libjsound.so. Weird.
259 - if ! use alsa ; then
260 - rm -v lib/libjsound.* || die
261 - fi
262 -
263 - if ! use examples ; then
264 - rm -vr demo/ || die
265 - fi
266 -
267 - if ! use source ; then
268 - rm -v lib/src.zip || die
269 - fi
270 -
271 - rm -v lib/security/cacerts || die
272 -
273 - dodir "${dest}"
274 - cp -pPR * "${ddest}" || die
275 -
276 - dosym ../../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
277 -
278 - # must be done before running itself
279 - java-vm_set-pax-markings "${ddest}"
280 -
281 - einfo "Creating the Class Data Sharing archives and disabling usage tracking"
282 - "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die
283 -
284 - use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
285 - java-vm_revdep-mask
286 - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
287 -
288 - if use doc ; then
289 - docinto html
290 - dodoc -r "${S}"/build/*-release/images/docs/*
291 - dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}"
292 - fi
293 -}
294 -
295 -pkg_postinst() {
296 - java-vm-2_pkg_postinst
297 -
298 - if use gentoo-vm ; then
299 - ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
300 - ewarn "recognised by the system. This will almost certainly break"
301 - ewarn "many java ebuilds as they are not ready for openjdk-11"
302 - else
303 - ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK"
304 - ewarn "will not be recognised by the system. For example, simply calling"
305 - ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
306 - ewarn "fully supports Java ${SLOT}. This JDK must therefore be invoked using its"
307 - ewarn "absolute location under ${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}."
308 - fi
309 -}