1 |
commit: 37efe866648df9f250d5a783aa2617ec271d4a59 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 10 07:52:29 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 10 07:52:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37efe866 |
7 |
|
8 |
dev-java/openjdk: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-java/openjdk/Manifest | 9 -- |
14 |
dev-java/openjdk/openjdk-11.0.6.ebuild | 271 --------------------------------- |
15 |
dev-java/openjdk/openjdk-8.242.ebuild | 218 -------------------------- |
16 |
3 files changed, 498 deletions(-) |
17 |
|
18 |
diff --git a/dev-java/openjdk/Manifest b/dev-java/openjdk/Manifest |
19 |
index eb7d4c53c25..0062a4f8d08 100644 |
20 |
--- a/dev-java/openjdk/Manifest |
21 |
+++ b/dev-java/openjdk/Manifest |
22 |
@@ -1,18 +1,9 @@ |
23 |
-DIST openjdk-11.0.6.tar.bz2 90755968 BLAKE2B 5bf23cc107ffae4cfc82be4f9b4b17de57575ee13e8fd461027e319a441c89c65fc852affb89f98a54307fa865ed5cdfb216809c6196866b31dfaa7011ad3d57 SHA512 d2296556c947c46883c16df3c1b7d809e6987dd6fd1a2667333e1245049560f3da744f6a51609a918cd9c509316b01160de2c080d5b9d3ed1af0b312dcbc575e |
24 |
DIST openjdk-11.0.7_p10.tar.bz2 91317054 BLAKE2B 113f6d0b1ea97aa6c3a619a3f4183b72f5e0448422d17b6ffc4d778ce50eee68e4495d610845d1f3aace2e5660703dad96583203c6d12b5528e0f33f78df7cec SHA512 c6776bd05e2cbb42134ccf5cd522e4b73d1662e3cf136a8718c5d302b9c44e76b74a554b81aa14c5deda20bee76abc80a144f5c2e1941b70c9503579c325aa12 |
25 |
-DIST openjdk-8.242.tar.bz2 452896 BLAKE2B 73176533ad62942f9a9547378aa5547a5f064076d24be527d0fb8b13c30a48680957bca731ee54771cae66e78f8800995426431ec266f0c61330a573efaacc23 SHA512 2a98dcead63b8e5dc6db841416b16c12a84f557c8efa6272bc4dc125333de1e20ab83050d1ee441a77f78b47b2c52dbc7d29810ce562218129eff29a5c79daca |
26 |
DIST openjdk-8.252_p09.tar.bz2 454656 BLAKE2B 7132af72a09da9ded1759ccf92da6237a24e3fd15209b8d5aecb7011b890cd3484b4724f6b6a144e4bc5cb41931076985f75a9089c178938be62ac1a1d2a7f07 SHA512 0f03f1549dea1577cb01895d4e34721d16443977c5e7b3f0744af9cf2c0b09e60cb6d91b35a5e474c593d518d5610fb4c14fc4b9a907a7e13bb2351cea51bd06 |
27 |
-DIST openjdk-corba-8.242.tar.bz2 1033721 BLAKE2B 5e0cee4d5b8faa0e940ed096f807ef231ce7c10b180ac89d5faf9ae276bab1044ca1ae6e826490e9d66f17ebd55026c17e7675a62dd4bf633cecfa3390944f97 SHA512 cf2cefcb590b7a1c637b709ce9f59c56a5354f90a3095726c3168962f4808ccb27a82909234343f510ad90dda56b83c934fa9ccb788ddf0f66e60c65b06d8e84 |
28 |
DIST openjdk-corba-8.252_p09.tar.bz2 1034367 BLAKE2B d281a0b2e092c637adae4a206ac4b3f7beeb65f0fce5862f996ac71a814c5c3ee3261dd1145660cb50fde0398e42ca1e8c86d6aad07e43b44aa1f903c204b21c SHA512 08f348849eeadefee3dce9658b519091a14b9f972a1ee1dc51c37a3cd766e5265faed1931b967410ebff2132dd18cedf8840277d804b402ee43a862e37575ab1 |
29 |
-DIST openjdk-hotspot-8.242.tar.bz2 7953409 BLAKE2B 84ddc5bc00bca06c821219189ef19cd88cf0c5e9e43301b0fc654e1a31c68af0d7cab32d5ffedeb10b5593c3e8a846fc308076ffdc3292e0622a504650dfad56 SHA512 c67c7dd81e37b7e5ed43b0a720240ae55ebf7c31e58ebc1fc20cebb1bbecc91cda575a508ebe907d6ad21bad149596bcd913a24108c50fe2c26767910b5fe570 |
30 |
DIST openjdk-hotspot-8.252_p09.tar.bz2 7954548 BLAKE2B a791d3c3385be3c8543bea1fc8d5bee9b3de873122ec850c3ad0082430083ec9dff2aa7c0cae33e628047a18a76fca8146b68aa52f32845cf7a61a45fdc8d9eb SHA512 53079cc255f75f246a67937bdf2b7715882f9baf8bcbc46ab2963c259359b1008642aeeae7ba7705c39f7a04e69ba286421a83b90294e81071f8e630db48ba7c |
31 |
-DIST openjdk-jaxp-8.242.tar.bz2 2735931 BLAKE2B b8106b903000ef0b920b3a1228eda06bfaeb073138a2d0a5193f8258f285d0f7044b93d2ef3c7e9c28bb9a39c964475f8dfcbe012d49d4c2b7a1a7c5d6fb4906 SHA512 2c2148aba457c7fe6f2cdba444ef730d7d6bb91604327bf6c465f549acb768a711e4482d79db1848f9495c84ac650f42c48989bee47537c1be065e3204115896 |
32 |
DIST openjdk-jaxp-8.252_p09.tar.bz2 2736174 BLAKE2B c198f144be7d0e7439e2184768db8649973f9e6869e67d3a950abd4872584160f4aaec1f4bec727f0d38830d34a4be7bd2f3e897b8ca10c758212262fa1672c3 SHA512 8027676e2928087a7d396c4f1edd3366336aaf8e3f201e2006cb7ddf91e518c9258d7ab6cc1c4fcc27e3e87bcecd96c55b2550d49f28b98beabf7553ea54ba3f |
33 |
-DIST openjdk-jaxws-8.242.tar.bz2 2541712 BLAKE2B 020f47e5e9f9fed3d3dd506703ccc58bf04f696a093013e3e9eecf6e8a842ffe51d24188d204c9a84bc32157094e8ed2701beab8bfa2e6cad100ee093fa15107 SHA512 b0cce73a84887d35906a73006f36ef0913bcaf1fc27dc58e8873c95ee3b125b5bd977c23619f0a4f2489493776d4818d380ad1f126c62f325e2b155f6fc10dbf |
34 |
DIST openjdk-jaxws-8.252_p09.tar.bz2 2542417 BLAKE2B cf898e0c56269ea1f468c6b9e6cfbdf552caea562f833ade234d207f05be6f39f86d9d6794cc8b365ed3fde4bac5df41949e76cbaef61553f5557ec86dd593e6 SHA512 cadeec8825073db1fea13f1d83903ba2799324cfa8e25012c5dc98ec31976bd91b22526f98fc871d0ee01156943f4fc4ec115f7a81feb10e9f7d96f3f39a9313 |
35 |
-DIST openjdk-jdk-8.242.tar.bz2 47256764 BLAKE2B b4fadc09640ce2267d461052bb8e42a7872022675fd8193b4f45ef23d69ab33b0ab95745d01e723a10bb4359055caa94d5113b3c77b97a8ff14191677c5c49c8 SHA512 3796599041134924bb673f06390c7c2fe9c76842ec799338dd02b183a3578f46c93095591f39f60a0c9e106659d6b0abba1ec1a647610b45a0f337f71afa28b8 |
36 |
DIST openjdk-jdk-8.252_p09.tar.bz2 47507382 BLAKE2B 4638256df52aa48a1ccace15fe65b284cb2a1e3a3c45f32ae69a807ae4bd9b9ce3cf9f464a9b8a87d07c49f2d7c48c8516b43d9d4372f578ad1cd4dfa17abb80 SHA512 96188acc8078c312c7118abfbc39874429f71e63c2e282fef2da9df29731ee13396bda28a8a1041b17b50da4bb00b1fe88404d682b0a850e5db10e59e39994f2 |
37 |
-DIST openjdk-langtools-8.242.tar.bz2 2397745 BLAKE2B 94748fa5304217a6354b4de29e80f3642e935a1d6259d11dd23d007e5d7022643a8ffabdf5e12c7c7915a33e7edb263704eb60653dc2253e10aee6ca183fc84e SHA512 820e5828ae74c868f4c548e23ea1e7625e74d3b52fe951afe5a583910405658cd14d3d40b7b5f4bbb87d71439cafb77590ee2fe111fb9ad2f7c8f972d0380e53 |
38 |
DIST openjdk-langtools-8.252_p09.tar.bz2 2399354 BLAKE2B aa3f0cb647986490612b9574fb0c78955f5ffb8969dbd06dfae5406436d6fecdbbb09896bdb0acc18d56f51bcd4ad1eadb19cc544185762ad623a47fde2e4a85 SHA512 d84ff97294ac612cd4e49deb2d7470026a564208c0e1fa23d5692db45efaaf564483966921ce642506a97aa90a2a8593617f944ebc6d18c9db5a808fd3946864 |
39 |
-DIST openjdk-nashorn-8.242.tar.bz2 2856246 BLAKE2B 87343677e79b13baa0181b988f248f1dc1ccd265117e407e5be8d848813322a0e7cc53f5ea50bd7796b06b9c0b07320ca1b0ad8623f690c5bda3a4519656b6d6 SHA512 3f5fb2917fc65c85f007aea7842d0f1fef6c20050ef66a593d7ae25ced38a9eb5f1a4bb3c3d6b9757832a7d450d1cde06f98e383523707d93046e34ee70814c6 |
40 |
DIST openjdk-nashorn-8.252_p09.tar.bz2 2852104 BLAKE2B 570fbe605ed27c4b3a5db5f6e9dbb4269ad2c895654a989d366a4a6f238ea06fec398140563ca2700303856dfa795ae40dbf9485dd9e9a46ef438f5418fd8b8b SHA512 996e7068d8c6f8ca192e6037eaf7f98ff94188c02670caadf1042e4e0909a3d51835a8cd2250d1f0a8bbdedb107f3713b614466ba4d2915b955e19fdcc2cbb91 |
41 |
|
42 |
diff --git a/dev-java/openjdk/openjdk-11.0.6.ebuild b/dev-java/openjdk/openjdk-11.0.6.ebuild |
43 |
deleted file mode 100644 |
44 |
index 0f8e793023d..00000000000 |
45 |
--- a/dev-java/openjdk/openjdk-11.0.6.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,271 +0,0 @@ |
48 |
-# Copyright 1999-2020 Gentoo Authors |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
- |
51 |
-EAPI=6 |
52 |
- |
53 |
-inherit autotools check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils toolchain-funcs |
54 |
- |
55 |
-MY_PV="${PV}-ga" |
56 |
-SLOT="${MY_PV%%[.+]*}" |
57 |
- |
58 |
-DESCRIPTION="Open source implementation of the Java programming language" |
59 |
-HOMEPAGE="https://openjdk.java.net" |
60 |
-SRC_URI="https://hg.${PN}.java.net/jdk-updates/jdk${SLOT}u/archive/jdk-${MY_PV}.tar.bz2 -> ${P}.tar.bz2" |
61 |
- |
62 |
-LICENSE="GPL-2" |
63 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" |
64 |
- |
65 |
-IUSE="alsa cups debug doc examples gentoo-vm headless-awt javafx +jbootstrap nsplugin +pch selinux source systemtap webstart" |
66 |
- |
67 |
-COMMON_DEPEND=" |
68 |
- media-libs/freetype:2= |
69 |
- media-libs/giflib:0/7 |
70 |
- media-libs/libpng:0= |
71 |
- media-libs/lcms:2= |
72 |
- sys-libs/zlib |
73 |
- virtual/jpeg:0= |
74 |
- systemtap? ( dev-util/systemtap ) |
75 |
-" |
76 |
- |
77 |
-# Many libs are required to build, but not to run, make is possible to remove |
78 |
-# by listing conditionally in RDEPEND unconditionally in DEPEND |
79 |
-RDEPEND=" |
80 |
- ${COMMON_DEPEND} |
81 |
- >=sys-apps/baselayout-java-0.1.0-r1 |
82 |
- !headless-awt? ( |
83 |
- x11-libs/libX11 |
84 |
- x11-libs/libXext |
85 |
- x11-libs/libXi |
86 |
- x11-libs/libXrandr |
87 |
- x11-libs/libXrender |
88 |
- x11-libs/libXt |
89 |
- x11-libs/libXtst |
90 |
- ) |
91 |
- alsa? ( media-libs/alsa-lib ) |
92 |
- cups? ( net-print/cups ) |
93 |
- selinux? ( sec-policy/selinux-java ) |
94 |
-" |
95 |
- |
96 |
-DEPEND=" |
97 |
- ${COMMON_DEPEND} |
98 |
- app-arch/zip |
99 |
- media-libs/alsa-lib |
100 |
- net-print/cups |
101 |
- x11-base/xorg-proto |
102 |
- x11-libs/libX11 |
103 |
- x11-libs/libXext |
104 |
- x11-libs/libXi |
105 |
- x11-libs/libXrandr |
106 |
- x11-libs/libXrender |
107 |
- x11-libs/libXt |
108 |
- x11-libs/libXtst |
109 |
- javafx? ( dev-java/openjfx:${SLOT}= ) |
110 |
- || ( |
111 |
- dev-java/openjdk-bin:${SLOT} |
112 |
- dev-java/openjdk:${SLOT} |
113 |
- ) |
114 |
-" |
115 |
- |
116 |
-PDEPEND=" |
117 |
- webstart? ( >=dev-java/icedtea-web-1.6.1:0 ) |
118 |
- nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] ) |
119 |
-" |
120 |
- |
121 |
-REQUIRED_USE="javafx? ( alsa !headless-awt )" |
122 |
- |
123 |
-PATCHES=( "${FILESDIR}/openjdk-11-make43.patch" ) |
124 |
- |
125 |
-S="${WORKDIR}/jdk${SLOT}u-jdk-${MY_PV}" |
126 |
- |
127 |
-# The space required to build varies wildly depending on USE flags, |
128 |
-# ranging from 2GB to 16GB. This function is certainly not exact but |
129 |
-# should be close enough to be useful. |
130 |
-openjdk_check_requirements() { |
131 |
- local M |
132 |
- M=2048 |
133 |
- M=$(( $(usex jbootstrap 2 1) * $M )) |
134 |
- M=$(( $(usex debug 3 1) * $M )) |
135 |
- M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M )) |
136 |
- |
137 |
- CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE} |
138 |
-} |
139 |
- |
140 |
-pkg_pretend() { |
141 |
- openjdk_check_requirements |
142 |
- has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}" |
143 |
-} |
144 |
- |
145 |
-pkg_setup() { |
146 |
- openjdk_check_requirements |
147 |
- java-vm-2_pkg_setup |
148 |
- |
149 |
- JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT}" |
150 |
- JAVA_PKG_WANT_SOURCE="${SLOT}" |
151 |
- JAVA_PKG_WANT_TARGET="${SLOT}" |
152 |
- |
153 |
- # The nastiness below is necessary while the gentoo-vm USE flag is |
154 |
- # masked. First we call java-pkg-2_pkg_setup if it looks like the |
155 |
- # flag was unmasked against one of the possible build VMs. If not, |
156 |
- # we try finding one of them in their expected locations. This would |
157 |
- # have been slightly less messy if openjdk-bin had been installed to |
158 |
- # /opt/${PN}-${SLOT} or if there was a mechanism to install a VM env |
159 |
- # file but disable it so that it would not normally be selectable. |
160 |
- |
161 |
- local vm |
162 |
- for vm in ${JAVA_PKG_WANT_BUILD_VM}; do |
163 |
- if [[ -d ${EPREFIX}/usr/lib/jvm/${vm} ]]; then |
164 |
- java-pkg-2_pkg_setup |
165 |
- return |
166 |
- fi |
167 |
- done |
168 |
- |
169 |
- if has_version --host-root dev-java/openjdk:${SLOT}; then |
170 |
- export JDK_HOME=${EPREFIX}/usr/$(get_libdir)/openjdk-${SLOT} |
171 |
- else |
172 |
- if [[ ${MERGE_TYPE} != "binary" ]]; then |
173 |
- JDK_HOME=$(best_version --host-root dev-java/openjdk-bin:${SLOT}) |
174 |
- [[ -n ${JDK_HOME} ]] || die "Build VM not found!" |
175 |
- JDK_HOME=${JDK_HOME#*/} |
176 |
- JDK_HOME=${EPREFIX}/opt/${JDK_HOME%-r*} |
177 |
- export JDK_HOME |
178 |
- fi |
179 |
- fi |
180 |
-} |
181 |
- |
182 |
-src_prepare() { |
183 |
- default |
184 |
- chmod +x configure || die |
185 |
-} |
186 |
- |
187 |
-src_configure() { |
188 |
- # Work around stack alignment issue, bug #647954. in case we ever have x86 |
189 |
- use x86 && append-flags -mincoming-stack-boundary=2 |
190 |
- |
191 |
- # Enabling full docs appears to break doc building. If not |
192 |
- # explicitly disabled, the flag will get auto-enabled if pandoc and |
193 |
- # graphviz are detected. pandoc has loads of dependencies anyway. |
194 |
- |
195 |
- local myconf=( |
196 |
- --disable-ccache |
197 |
- --enable-full-docs=no |
198 |
- --with-boot-jdk="${JDK_HOME}" |
199 |
- --with-extra-cflags="${CFLAGS}" |
200 |
- --with-extra-cxxflags="${CXXFLAGS}" |
201 |
- --with-extra-ldflags="${LDFLAGS}" |
202 |
- --with-giflib=system |
203 |
- --with-lcms=system |
204 |
- --with-libjpeg=system |
205 |
- --with-libpng=system |
206 |
- --with-native-debug-symbols=$(usex debug internal none) |
207 |
- --with-vendor-name="Gentoo" |
208 |
- --with-vendor-url="https://gentoo.org" |
209 |
- --with-vendor-bug-url="https://bugs.gentoo.org" |
210 |
- --with-vendor-vm-bug-url="https://bugs.openjdk.java.net" |
211 |
- --with-vendor-version-string="${PV}" |
212 |
- --with-version-pre="" |
213 |
- --with-version-string=${MY_PV%+*} |
214 |
- --with-version-build=${MY_PV#*+} |
215 |
- --with-zlib=system |
216 |
- --enable-dtrace=$(usex systemtap yes no) |
217 |
- --enable-headless-only=$(usex headless-awt yes no) |
218 |
- ) |
219 |
- |
220 |
- if use javafx; then |
221 |
- local zip="${EROOT%/}/usr/$(get_libdir)/openjfx-${SLOT}/javafx-exports.zip" |
222 |
- if [[ -r ${zip} ]]; then |
223 |
- myconf+=( --with-import-modules="${zip}" ) |
224 |
- else |
225 |
- die "${zip} not found or not readable" |
226 |
- fi |
227 |
- fi |
228 |
- |
229 |
- # PaX breaks pch, bug #601016 |
230 |
- if use pch && ! host-is-pax; then |
231 |
- myconf+=( --enable-precompiled-headers ) |
232 |
- else |
233 |
- myconf+=( --disable-precompiled-headers ) |
234 |
- fi |
235 |
- |
236 |
- ( |
237 |
- unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS |
238 |
- CFLAGS= CXXFLAGS= LDFLAGS= \ |
239 |
- CONFIG_SITE=/dev/null \ |
240 |
- econf "${myconf[@]}" |
241 |
- ) |
242 |
-} |
243 |
- |
244 |
-src_compile() { |
245 |
- local myemakeargs=( |
246 |
- JOBS=$(makeopts_jobs) |
247 |
- LOG=debug |
248 |
- CFLAGS_WARNINGS_ARE_ERRORS= # No -Werror |
249 |
- $(usex doc docs '') |
250 |
- $(usex jbootstrap bootcycle-images product-images) |
251 |
- ) |
252 |
- emake "${myemakeargs[@]}" -j1 #nowarn |
253 |
-} |
254 |
- |
255 |
-src_install() { |
256 |
- local dest="/usr/$(get_libdir)/${PN}-${SLOT}" |
257 |
- local ddest="${ED}${dest#/}" |
258 |
- |
259 |
- cd "${S}"/build/*-release/images/jdk || die |
260 |
- |
261 |
- # Create files used as storage for system preferences. |
262 |
- mkdir .systemPrefs || die |
263 |
- touch .systemPrefs/.system.lock || die |
264 |
- touch .systemPrefs/.systemRootModFile || die |
265 |
- |
266 |
- # Oracle and IcedTea have libjsoundalsa.so depending on |
267 |
- # libasound.so.2 but OpenJDK only has libjsound.so. Weird. |
268 |
- if ! use alsa ; then |
269 |
- rm -v lib/libjsound.* || die |
270 |
- fi |
271 |
- |
272 |
- if ! use examples ; then |
273 |
- rm -vr demo/ || die |
274 |
- fi |
275 |
- |
276 |
- if ! use source ; then |
277 |
- rm -v lib/src.zip || die |
278 |
- fi |
279 |
- |
280 |
- rm -v lib/security/cacerts || die |
281 |
- |
282 |
- dodir "${dest}" |
283 |
- cp -pPR * "${ddest}" || die |
284 |
- |
285 |
- dosym ../../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts |
286 |
- |
287 |
- # must be done before running itself |
288 |
- java-vm_set-pax-markings "${ddest}" |
289 |
- |
290 |
- einfo "Creating the Class Data Sharing archives and disabling usage tracking" |
291 |
- "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking || die |
292 |
- |
293 |
- use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
294 |
- java-vm_revdep-mask |
295 |
- java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
296 |
- |
297 |
- if use doc ; then |
298 |
- docinto html |
299 |
- dodoc -r "${S}"/build/*-release/images/docs/* |
300 |
- dosym ../../../usr/share/doc/"${PF}" /usr/share/doc/"${PN}-${SLOT}" |
301 |
- fi |
302 |
-} |
303 |
- |
304 |
-pkg_postinst() { |
305 |
- java-vm-2_pkg_postinst |
306 |
- |
307 |
- if use gentoo-vm ; then |
308 |
- ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" |
309 |
- ewarn "recognised by the system. This will almost certainly break" |
310 |
- ewarn "many java ebuilds as they are not ready for openjdk-11" |
311 |
- else |
312 |
- ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" |
313 |
- ewarn "will not be recognised by the system. For example, simply calling" |
314 |
- ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" |
315 |
- ewarn "fully supports Java ${SLOT}. This JDK must therefore be invoked using its" |
316 |
- ewarn "absolute location under ${EPREFIX}/usr/$(get_libdir)/${PN}-${SLOT}." |
317 |
- fi |
318 |
-} |
319 |
|
320 |
diff --git a/dev-java/openjdk/openjdk-8.242.ebuild b/dev-java/openjdk/openjdk-8.242.ebuild |
321 |
deleted file mode 100644 |
322 |
index 617bc845036..00000000000 |
323 |
--- a/dev-java/openjdk/openjdk-8.242.ebuild |
324 |
+++ /dev/null |
325 |
@@ -1,218 +0,0 @@ |
326 |
-# Copyright 1999-2020 Gentoo Authors |
327 |
-# Distributed under the terms of the GNU General Public License v2 |
328 |
- |
329 |
-EAPI=6 |
330 |
- |
331 |
-inherit check-reqs eapi7-ver flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils toolchain-funcs |
332 |
- |
333 |
-MY_PV=$(ver_rs 1 'u' 2 '-' ${PV}-ga) |
334 |
- |
335 |
-BASE_URI="https://hg.${PN}.java.net/jdk8u/jdk8u" |
336 |
- |
337 |
-DESCRIPTION="Open source implementation of the Java programming language" |
338 |
-HOMEPAGE="https://openjdk.java.net" |
339 |
-SRC_URI=" |
340 |
- ${BASE_URI}/archive/jdk${MY_PV}.tar.bz2 -> ${P}.tar.bz2 |
341 |
- ${BASE_URI}/corba/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-corba-${PV}.tar.bz2 |
342 |
- ${BASE_URI}/hotspot/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-hotspot-${PV}.tar.bz2 |
343 |
- ${BASE_URI}/jaxp/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jaxp-${PV}.tar.bz2 |
344 |
- ${BASE_URI}/jaxws/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jaxws-${PV}.tar.bz2 |
345 |
- ${BASE_URI}/jdk/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-jdk-${PV}.tar.bz2 |
346 |
- ${BASE_URI}/langtools/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-langtools-${PV}.tar.bz2 |
347 |
- ${BASE_URI}/nashorn/archive/jdk${MY_PV}.tar.bz2 -> ${PN}-nashorn-${PV}.tar.bz2 |
348 |
-" |
349 |
- |
350 |
-LICENSE="GPL-2" |
351 |
-SLOT="$(ver_cut 1)" |
352 |
-KEYWORDS="amd64 ppc64 ~x86" |
353 |
-IUSE="alsa debug cups doc examples headless-awt +jbootstrap nsplugin +pch selinux source webstart" |
354 |
- |
355 |
-COMMON_DEPEND=" |
356 |
- media-libs/freetype:2= |
357 |
- media-libs/giflib:0/7 |
358 |
- sys-libs/zlib |
359 |
-" |
360 |
-# Many libs are required to build, but not to run, make is possible to remove |
361 |
-# by listing conditionally in RDEPEND unconditionally in DEPEND |
362 |
-RDEPEND=" |
363 |
- ${COMMON_DEPEND} |
364 |
- >=sys-apps/baselayout-java-0.1.0-r1 |
365 |
- !headless-awt? ( |
366 |
- x11-libs/libX11 |
367 |
- x11-libs/libXext |
368 |
- x11-libs/libXi |
369 |
- x11-libs/libXrender |
370 |
- x11-libs/libXt |
371 |
- x11-libs/libXtst |
372 |
- ) |
373 |
- alsa? ( media-libs/alsa-lib ) |
374 |
- cups? ( net-print/cups ) |
375 |
- selinux? ( sec-policy/selinux-java ) |
376 |
-" |
377 |
- |
378 |
-DEPEND=" |
379 |
- ${COMMON_DEPEND} |
380 |
- app-arch/zip |
381 |
- media-libs/alsa-lib |
382 |
- net-print/cups |
383 |
- x11-base/xorg-proto |
384 |
- x11-libs/libX11 |
385 |
- x11-libs/libXext |
386 |
- x11-libs/libXi |
387 |
- x11-libs/libXrender |
388 |
- x11-libs/libXt |
389 |
- x11-libs/libXtst |
390 |
- || ( |
391 |
- dev-java/openjdk-bin:${SLOT} |
392 |
- dev-java/icedtea-bin:${SLOT} |
393 |
- dev-java/openjdk:${SLOT} |
394 |
- dev-java/icedtea:${SLOT} |
395 |
- ) |
396 |
-" |
397 |
- |
398 |
-PDEPEND=" |
399 |
- webstart? ( >=dev-java/icedtea-web-1.6.1:0 ) |
400 |
- nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] ) |
401 |
-" |
402 |
- |
403 |
-S="${WORKDIR}/jdk${SLOT}u-jdk${MY_PV}" |
404 |
- |
405 |
-# The space required to build varies wildly depending on USE flags, |
406 |
-# ranging from 2GB to 16GB. This function is certainly not exact but |
407 |
-# should be close enough to be useful. |
408 |
-openjdk_check_requirements() { |
409 |
- local M |
410 |
- M=2048 |
411 |
- M=$(( $(usex debug 3 1) * $M )) |
412 |
- M=$(( $(usex jbootstrap 2 1) * $M )) |
413 |
- M=$(( $(usex doc 320 0) + $(usex source 128 0) + 192 + $M )) |
414 |
- |
415 |
- CHECKREQS_DISK_BUILD=${M}M check-reqs_pkg_${EBUILD_PHASE} |
416 |
-} |
417 |
- |
418 |
-pkg_pretend() { |
419 |
- openjdk_check_requirements |
420 |
- has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}" |
421 |
-} |
422 |
- |
423 |
-pkg_setup() { |
424 |
- openjdk_check_requirements |
425 |
- |
426 |
- JAVA_PKG_WANT_BUILD_VM="openjdk-${SLOT} openjdk-bin-${SLOT} icedtea-${SLOT} icedtea-bin-${SLOT}" |
427 |
- JAVA_PKG_WANT_SOURCE="${SLOT}" |
428 |
- JAVA_PKG_WANT_TARGET="${SLOT}" |
429 |
- |
430 |
- java-vm-2_pkg_setup |
431 |
- java-pkg-2_pkg_setup |
432 |
-} |
433 |
- |
434 |
-src_prepare() { |
435 |
- default |
436 |
- chmod +x configure || die |
437 |
- local repo |
438 |
- for repo in corba hotspot jdk jaxp jaxws langtools nashorn; do |
439 |
- ln -s ../"${repo}-jdk${MY_PV}" "${repo}" || die |
440 |
- done |
441 |
- # new warnings in new gcc https://bugs.gentoo.org/685426 |
442 |
- sed -i '/^WARNINGS_ARE_ERRORS/ s/-Werror/-Wno-error/' \ |
443 |
- hotspot/make/linux/makefiles/gcc.make || die |
444 |
-} |
445 |
- |
446 |
-src_configure() { |
447 |
- # general build info found here: |
448 |
- #https://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html |
449 |
- |
450 |
- # Work around stack alignment issue, bug #647954. |
451 |
- use x86 && append-flags -mincoming-stack-boundary=2 |
452 |
- |
453 |
- local myconf=( |
454 |
- --disable-ccache |
455 |
- --enable-unlimited-crypto |
456 |
- --with-boot-jdk="${JDK_HOME}" |
457 |
- --with-extra-cflags="${CFLAGS}" |
458 |
- --with-extra-cxxflags="${CXXFLAGS}" |
459 |
- --with-extra-ldflags="${LDFLAGS}" |
460 |
- --with-giflib=system |
461 |
- --with-jtreg=no |
462 |
- --with-jobs=1 |
463 |
- --with-num-cores=1 |
464 |
- --with-update-version="$(ver_cut 2)" |
465 |
- --with-build-number="b$(ver_cut 4)" |
466 |
- --with-milestone="fcs" # magic variable that means "release version" |
467 |
- --with-vendor-name="Gentoo" |
468 |
- --with-vendor-url="https://gentoo.org" |
469 |
- --with-vendor-bug-url="https://bugs.gentoo.org" |
470 |
- --with-vendor-vm-bug-url="https://bugs.openjdk.java.net" |
471 |
- --with-zlib=system |
472 |
- --with-native-debug-symbols=$(usex debug internal none) |
473 |
- $(usex headless-awt --disable-headful '') |
474 |
- ) |
475 |
- |
476 |
- # PaX breaks pch, bug #601016 |
477 |
- if use pch && ! host-is-pax; then |
478 |
- myconf+=( --enable-precompiled-headers ) |
479 |
- else |
480 |
- myconf+=( --disable-precompiled-headers ) |
481 |
- fi |
482 |
- |
483 |
- ( |
484 |
- unset _JAVA_OPTIONS JAVA JAVA_TOOL_OPTIONS JAVAC XARGS |
485 |
- CFLAGS= CXXFLAGS= LDFLAGS= \ |
486 |
- CONFIG_SITE=/dev/null \ |
487 |
- econf "${myconf[@]}" |
488 |
- ) |
489 |
-} |
490 |
- |
491 |
-src_compile() { |
492 |
- local myemakeargs=( |
493 |
- JOBS=$(makeopts_jobs) |
494 |
- LOG=debug |
495 |
- $(usex doc docs '') |
496 |
- $(usex jbootstrap bootcycle-images images) |
497 |
- ) |
498 |
- emake "${myemakeargs[@]}" -j1 #nowarn |
499 |
-} |
500 |
- |
501 |
-src_install() { |
502 |
- local dest="/usr/$(get_libdir)/${PN}-${SLOT}" |
503 |
- local ddest="${ED%/}/${dest#/}" |
504 |
- |
505 |
- cd "${S}"/build/*-release/images/j2sdk-image || die |
506 |
- |
507 |
- if ! use alsa; then |
508 |
- rm -v jre/lib/$(get_system_arch)/libjsoundalsa.* || die |
509 |
- fi |
510 |
- |
511 |
- # stupid build system does not remove that |
512 |
- if use headless-awt ; then |
513 |
- rm -fvr jre/lib/$(get_system_arch)/lib*{[jx]awt,splashscreen}* \ |
514 |
- {,jre/}bin/policytool bin/appletviewer || die |
515 |
- fi |
516 |
- |
517 |
- if ! use examples ; then |
518 |
- rm -vr demo/ || die |
519 |
- fi |
520 |
- |
521 |
- if ! use source ; then |
522 |
- rm -v src.zip || die |
523 |
- fi |
524 |
- |
525 |
- dodir "${dest}" |
526 |
- cp -pPR * "${ddest}" || die |
527 |
- |
528 |
- dosym ../../../../../../etc/ssl/certs/java/cacerts "${dest}"/jre/lib/security/cacerts |
529 |
- |
530 |
- java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
531 |
- java-vm_set-pax-markings "${ddest}" |
532 |
- java-vm_revdep-mask |
533 |
- java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
534 |
- |
535 |
- if use doc ; then |
536 |
- docinto html |
537 |
- dodoc -r "${S}"/build/*-release/docs/* |
538 |
- fi |
539 |
-} |
540 |
- |
541 |
-pkg_postinst() { |
542 |
- java-vm-2_pkg_postinst |
543 |
-} |