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, 11 May 2022 20:41:26
Message-Id: 1652300053.b89c86f9c8c033d6acf10de5d6ec24d9f523158d.gyakovlev@gentoo
1 commit: b89c86f9c8c033d6acf10de5d6ec24d9f523158d
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 11 19:19:18 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 20:14:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b89c86f9
7
8 dev-java/openjdk: drop 11.0.13_p8
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.13_p8.ebuild | 272 -----------------------------
14 2 files changed, 273 deletions(-)
15
16 diff --git a/dev-java/openjdk/Manifest b/dev-java/openjdk/Manifest
17 index 6e54aea7625d..6cd38fba39a7 100644
18 --- a/dev-java/openjdk/Manifest
19 +++ b/dev-java/openjdk/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST openjdk-11.0.13_p8.tar.gz 122738754 BLAKE2B 5a60bf4245bc1e3591f4ebdf83a441f95a97a50a72a774612e99792789cd81a9317471cdadf4541efbe9b1549c2738a3cd30d134d3ded8de6d58f8a67b2aebe6 SHA512 38bd1be54533e9eebe407e771b1ece86ead755d1f3f0199e425aa4ad3e8fe511b0024986b7ffc59c571faa3dad510956e98ab1a48cb184c9cf5353bb7512cb06
22 DIST openjdk-11.0.14-riscv.patch.xz 279088 BLAKE2B f67cf5707246b22285de8217b68fb806e3c18b7289cb81428c0fe83c5a4dcd60233be10aaca0853ffb00ac24fa60cae1b1d60ed300ad6bff8b07e881bddf8650 SHA512 32bac5f0c0f5df883de344718586bf798db6c8a5738058ea5d4902f5a0a3fc841c1893dec3379a74b9468c1c37af5c31a3e296476549972d3f1305401354060d
23 DIST openjdk-11.0.14_p9.tar.gz 122803178 BLAKE2B 521d7829b34fa4f9a143c51d61c339c8c7455f12c4f04eda4fdd687dafa842f2a1b1adfe2e897fecdfa4e1c3ee484ec0e3aaf38ab9246f20cd24e7185db6ba25 SHA512 3285d13ba0fbbfd4f1a676b0f099b0742527ff556edfc3387913b59b64126bdfecd2697d7ac83634ed7160adf46edca3b5b2c33d94e9dca068752da5b9d70837
24 DIST openjdk-17.0.1_p12.tar.gz 104597561 BLAKE2B 9bae16c0c0b973017258076bf8597101538e7ef29cb16357b17b112ae1aa058b17d26f22057cf3d6638104dbd83f5c19b6bcd124f589fc100eae83f78dc1c269 SHA512 220d87a29e1a25b670d721c27069b601a48c833069cb252f81ee6de2ff65fef23fd76e689fc755940f7e457b2419ef93a15cbeca64db2a8798028729df876d25
25
26 diff --git a/dev-java/openjdk/openjdk-11.0.13_p8.ebuild b/dev-java/openjdk/openjdk-11.0.13_p8.ebuild
27 deleted file mode 100644
28 index e7bcf7abf3cf..000000000000
29 --- a/dev-java/openjdk/openjdk-11.0.13_p8.ebuild
30 +++ /dev/null
31 @@ -1,272 +0,0 @@
32 -# Copyright 1999-2022 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://github.com/${PN}/jdk${SLOT}u-dev/archive/refs/tags/jdk-${MY_PV}.tar.gz -> ${P}.tar.gz"
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-dev-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 - # this is not useful for users, just for upstream developers
213 - # build system compares mesa version in md file
214 - # https://bugs.gentoo.org/822612
215 - export LEGAL_EXCLUDES=mesa3d.md
216 -
217 - local zip="${EPREFIX%/}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip"
218 - if [[ -r ${zip} ]]; then
219 - myconf+=( --with-import-modules="${zip}" )
220 - else
221 - die "${zip} not found or not readable"
222 - fi
223 - fi
224 -
225 - # PaX breaks pch, bug #601016
226 - if use pch && ! host-is-pax; then
227 - myconf+=( --enable-precompiled-headers )
228 - else
229 - myconf+=( --disable-precompiled-headers )
230 - fi
231 -
232 - (
233 - unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS
234 - CFLAGS= CXXFLAGS= LDFLAGS= \
235 - CONFIG_SITE=/dev/null \
236 - econf "${myconf[@]}"
237 - )
238 -}
239 -
240 -src_compile() {
241 - local myemakeargs=(
242 - JOBS=$(makeopts_jobs)
243 - LOG=debug
244 - CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror
245 - NICE= # Use PORTAGE_NICENESS, don't adjust further down
246 - $(usex doc docs '')
247 - $(usex jbootstrap bootcycle-images product-images)
248 - )
249 - emake "${myemakeargs[@]}" -j1 #nowarn
250 -}
251 -
252 -src_install() {
253 - local dest="/usr/$(get_libdir)/${PN}-${SLOT}"
254 - local ddest="${ED}${dest#/}"
255 -
256 - cd "${S}"/build/*-release/images/jdk || die
257 -
258 - # Create files used as storage for system preferences.
259 - mkdir .systemPrefs || die
260 - touch .systemPrefs/.system.lock || die
261 - touch .systemPrefs/.systemRootModFile || die
262 -
263 - # Oracle and IcedTea have libjsoundalsa.so depending on
264 - # libasound.so.2 but OpenJDK only has libjsound.so. Weird.
265 - if ! use alsa ; then
266 - rm -v lib/libjsound.* || die
267 - fi
268 -
269 - if ! use examples ; then
270 - rm -vr demo/ || die
271 - fi
272 -
273 - if ! use source ; then
274 - rm -v lib/src.zip || die
275 - fi
276 -
277 - rm -v lib/security/cacerts || die
278 -
279 - dodir "${dest}"
280 - cp -pPR * "${ddest}" || die
281 -
282 - dosym ../../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
283 -
284 - # must be done before running itself
285 - java-vm_set-pax-markings "${ddest}"
286 -
287 - einfo "Creating the Class Data Sharing archives and disabling usage tracking"
288 - "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die
289 -
290 - use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
291 - java-vm_revdep-mask
292 - java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
293 -
294 - if use doc ; then
295 - docinto html
296 - dodoc -r "${S}"/build/*-release/images/docs/*
297 - dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}"
298 - fi
299 -}
300 -
301 -pkg_postinst() {
302 - java-vm-2_pkg_postinst
303 -}