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/icedtea/files/, dev-java/icedtea/
Date: Mon, 19 Aug 2019 04:37:23
Message-Id: 1566189403.77d62e01ad0326205d332f2882462ff2a88b49b1.gyakovlev@gentoo
1 commit: 77d62e01ad0326205d332f2882462ff2a88b49b1
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 19 04:34:27 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 19 04:36:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77d62e01
7
8 dev-java/icedtea: drop 3.12.0
9
10 Bug: https://bugs.gentoo.org/691238
11 Package-Manager: Portage-2.3.71, Repoman-2.3.17
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 dev-java/icedtea/Manifest | 11 -
15 dev-java/icedtea/files/generate-cacerts.pl | 358 ---------------------------
16 dev-java/icedtea/icedtea-3.12.0.ebuild | 385 -----------------------------
17 3 files changed, 754 deletions(-)
18
19 diff --git a/dev-java/icedtea/Manifest b/dev-java/icedtea/Manifest
20 index c67a93978a8..550de24ec0b 100644
21 --- a/dev-java/icedtea/Manifest
22 +++ b/dev-java/icedtea/Manifest
23 @@ -1,14 +1,3 @@
24 -DIST icedtea-3.12-aarch32-57f4048a925b.tar.xz 6819888 BLAKE2B 96377f8aeeaf9a1bb4b3372f82c1666e5813a97537dabe3fd8faeeac8ed2b160c402bb35d0e0b2f6f9bc2b09faa1701a43cdea407982019ca126ff7e28076625 SHA512 5e6f4cbb5b325feefd5030d1b8f9725ba8aba028c9c93c34039fcff48893b9569d0cc92f5e0c70bc20ab7014edc81d3ff12edaab68c69a280cdab248e4e0e809
25 -DIST icedtea-3.12-corba-fa1553d2f23e.tar.xz 946504 BLAKE2B 729efade4ed039af95fa07fd3f6ed450fb9af8e271b054979fd37b460ab6a6273513e05e49956e15777f188952a939313d8b5f6bd52f0aa111825518693f5bd8 SHA512 d4ffe454a659db6c13b74c8e190beb3b427574d54fa44c80a3ba1dceb3af6f480ee99378d370ec2e9bfc6b5447a225eeb3e11821c83522479583fb21b0705bd7
26 -DIST icedtea-3.12-hotspot-3f9a60eb8ef0.tar.xz 6894876 BLAKE2B 0520d0e1a84e3b755b598d73de7587c01f4cba8148d371bcbcceb1d50849d3816929cfb07a81857ad0fc8d8b52ab3a9c68a4fc8dd3476bc52f59d2cac72eba81 SHA512 2a0c18fea7b67c5042b39746f2c7ef53e252d6665efbcd74ebf9b171b13e311821310537e8b14cd4f9798c483afdb1107b9af6bb047262b97a526bfbb481777a
27 -DIST icedtea-3.12-jaxp-7a977b82f34c.tar.xz 2291724 BLAKE2B f3366efa7bb076b9f8c8a0873c1bb909ad9299916c1285b3aebc004a4f33b16a6ab922867c19b7679c8a0bfb7686cbe5b80605ec942b1ac817a96277fe9c4f02 SHA512 a5b8ca9b90797c5f0bc03b763fca50334a308bfd6955f5f488b661da6698abd991dbe08a7ac1a128922c546eb0061853e12a18971adb16c27302e2d9d0f13872
28 -DIST icedtea-3.12-jaxws-752d9e54c69a.tar.xz 2274996 BLAKE2B 980f1bb71201fa43eb4c1852b0f518e512af908abf106e211add608560bfe531a5b0597cb11edabbdec63b94fe17800b7dbedd181a18e54a992b5dcb54a0b172 SHA512 f1deb09ccf6b1dff40d61f3bc54e55d430ebcbeb0cd53d6008cacf65b94824d486913b63034ee23a473298e0bee61ad1ea3e5520c2a3ab25e9e1e6d58d50d286
29 -DIST icedtea-3.12-jdk-bfaa5c6df4a8.tar.xz 39292332 BLAKE2B 0cebbd46b62b9c5ce7af0c6bb54157b8c44b97a99c060e90e3b23ff68210755be58265cd0ecdb5c2bed276d2465544a7f8435e58289b8e240b6ddf2a9b14123c SHA512 2e15cdb58c9ce65c99ad5b5506343fb29cda02a4ea8490cfbe79f708deecee2ef28ad0e5a384d2113e72678aa857d821729b588e5ef53208ae06d0d5278ec326
30 -DIST icedtea-3.12-langtools-fb494039358f.tar.xz 2074376 BLAKE2B dfca5f107f93196d232bdb077e910eee3de3033ecffae9d168c60de5a54cfb0591eeb9309356f385fdc2f9c2a813700401e763496651befae84acd4c1d23e2fe SHA512 838e3e458734d3fc8d2d968eb3bc7190838cd9a73bf3d61de662f9a992a9951a74021e25331d26545f0181b08c80f298de24e030dad4e076bd76368f3a14e960
31 -DIST icedtea-3.12-nashorn-93462e8b4f4f.tar.xz 2320548 BLAKE2B f97e168cfce1e6307926d8996a74072be9783c4045963e78a9d3f6e2890e9cb64201a5d697a29ddcddbe501fe7a3fb226601e0e2e2ef3450d965334561d5e47d SHA512 918489daf6d2816d0fac85ed89cccbb0e350dc068502857f1a7e518135c40e5fcca2709a60ae51bad392592bdc459675ea3543e684ba1ed0d8debc7a451af6d5
32 -DIST icedtea-3.12-openjdk-f0482b9b7f7b.tar.xz 360788 BLAKE2B 5f6727b709ffedd44e0224635b75cd15e8b85d14bae93fafb8337bdd1c5ee0b18cca8374b88d00110016d2ad94f539d8884da92cab245e3c83fdac4a389a5154 SHA512 999aa17c0e73ebc465a982c5492043487b860b84dd6e4dda3fa51e3099b4642f3f5e03eb30252f835be81f1ea60dc28cf5f0905cbe347758a1f903db430fcc35
33 -DIST icedtea-3.12-shenandoah-adb62c0031b8.tar.xz 7056328 BLAKE2B 90035e1b3f16ca7351197dcb7795c557700aaf264179827ae3e6b331ce60e3a9922d5e815ee0c010c6ded16973446841b9d72e918420408894bb5c7c8497c4d8 SHA512 c73bf2d1011ae4d059945e2e20c2515a3cd6e10e4413b77b290461679bbceaedd38a1b948ee7bfb8a42513b73ec99b81a9088cd96e6e61576041568ea2a0b492
34 -DIST icedtea-3.12.0.tar.xz 1519364 BLAKE2B 0e257aabc10bd93cf448feec99fd72175d33b7a32134d824c36ca5143e40fbdd37b5c6e5f572052d347fccd6dc89f3d99ba7eec3db6e7d73c6b6d9ec0d5695b4 SHA512 22582d65b9114749c7cfee0fc58fa2cb70e4cf77f3bc62e8097a6c601ead0bf86f530b942e6b0f32ef7bbc5bd17130da236714d83d6e9857c3c5b85c984f2efa
35 DIST icedtea-3.13-aarch32-26d64a5c4b9a.tar.xz 6832524 BLAKE2B 68399b723d1f6a0fc3c940ccbbae48a47767b3870ce0eecc2eb51ef6f36f25e4d742db3eb4b204815c571d1104301a492c60ed3c608a1fc3e36271a2618d5d27 SHA512 84e8217020d8ddd62745298b2d1591e5a6d9a9ff117930524170179dee4d4c35c35007603d5bf9601b7be404ba887b69953272f687d1a9858429e1fe26c9f049
36 DIST icedtea-3.13-corba-24a4cc7d7de6.tar.xz 946268 BLAKE2B d1bef8c7029c5017e0a43d6711c92643527930bb037511e84625055f38faef6fb701652458e64b062f3cdbd3e6ec35e5099411e07af3933589dc9c6a3f065ccf SHA512 834b8b09590f5b4f11bbc32af3222e1cb6bef14c44c34ae4d3f65b6320d1a78c297a341cadb76bb59156b434811510b83705d2d2994922c610ba1bafb3f59345
37 DIST icedtea-3.13-hotspot-ab8fadcbbde6.tar.xz 6908200 BLAKE2B 922a86a66d670ae920c2e5a1b81da7ffbf2bb20323bc6ac1bb8d5e034528d9e767ee2ef9855dfba467c8a6a81939739f76dec28ced50531d62d1dfeae2762d16 SHA512 60c144997b2566dc42698ca4cb888b92de6a9fdbb18e01703d00f54311ad56191862c61c89e3eff4d6c4793c98d3dafd5f723bc9a22db2329138d08e832ddc11
38
39 diff --git a/dev-java/icedtea/files/generate-cacerts.pl b/dev-java/icedtea/files/generate-cacerts.pl
40 deleted file mode 100644
41 index 17d29b36676..00000000000
42 --- a/dev-java/icedtea/files/generate-cacerts.pl
43 +++ /dev/null
44 @@ -1,358 +0,0 @@
45 -#!/usr/bin/perl
46 -
47 -# Copyright (C) 2007, 2008 Red Hat, Inc.
48 -#
49 -# This program is free software; you can redistribute it and/or modify
50 -# it under the terms of the GNU General Public License as published by
51 -# the Free Software Foundation; either version 2 of the License, or
52 -# (at your option) any later version.
53 -#
54 -# This program is distributed in the hope that it will be useful,
55 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
56 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 -# GNU General Public License for more details.
58 -
59 -# generate-cacerts.pl generates a JKS keystore named 'cacerts' from
60 -# OpenSSL's certificate bundle using OpenJDK's keytool.
61 -
62 -# First extract each of OpenSSL's bundled certificates into its own
63 -# aliased filename.
64 -
65 -# Downloaded from http://cvs.fedoraproject.org/viewvc/rpms/ca-certificates/F-12/generate-cacerts.pl?revision=1.2
66 -# Check and prevention of duplicate aliases added by Vlastimil Babka <caster@g.o>
67 -
68 -$file = $ARGV[1];
69 -open(CERTS, $file);
70 -@certs = <CERTS>;
71 -close(CERTS);
72 -
73 -$pem_file_count = 0;
74 -$in_cert_block = 0;
75 -$write_current_cert = 1;
76 -foreach $cert (@certs)
77 -{
78 - if ($cert =~ /Issuer: /)
79 - {
80 - $_ = $cert;
81 - if ($cert =~ /personal-freemail/)
82 - {
83 - $cert_alias = "thawtepersonalfreemailca";
84 - }
85 - elsif ($cert =~ /personal-basic/)
86 - {
87 - $cert_alias = "thawtepersonalbasicca";
88 - }
89 - elsif ($cert =~ /personal-premium/)
90 - {
91 - $cert_alias = "thawtepersonalpremiumca";
92 - }
93 - elsif ($cert =~ /server-certs/)
94 - {
95 - $cert_alias = "thawteserverca";
96 - }
97 - elsif ($cert =~ /premium-server/)
98 - {
99 - $cert_alias = "thawtepremiumserverca";
100 - }
101 - elsif ($cert =~ /Class 1 Public Primary Certification Authority$/)
102 - {
103 - $cert_alias = "verisignclass1ca";
104 - }
105 - elsif ($cert =~ /Class 1 Public Primary Certification Authority - G2/)
106 - {
107 - $cert_alias = "verisignclass1g2ca";
108 - }
109 - elsif ($cert =~
110 - /VeriSign Class 1 Public Primary Certification Authority - G3/)
111 - {
112 - $cert_alias = "verisignclass1g3ca";
113 - }
114 - elsif ($cert =~ /Class 2 Public Primary Certification Authority$/)
115 - {
116 - $cert_alias = "verisignclass2ca";
117 - }
118 - elsif ($cert =~ /Class 2 Public Primary Certification Authority - G2/)
119 - {
120 - $cert_alias = "verisignclass2g2ca";
121 - }
122 - elsif ($cert =~
123 - /VeriSign Class 2 Public Primary Certification Authority - G3/)
124 - {
125 - $cert_alias = "verisignclass2g3ca";
126 - }
127 - elsif ($cert =~ /Class 3 Public Primary Certification Authority$/)
128 - {
129 - $cert_alias = "verisignclass3ca";
130 - }
131 - # Version 1 of Class 3 Public Primary Certification Authority
132 - # - G2 is added. Version 3 is excluded. See below.
133 - elsif ($cert =~
134 - /VeriSign Class 3 Public Primary Certification Authority - G3/)
135 - {
136 - $cert_alias = "verisignclass3g3ca";
137 - }
138 - elsif ($cert =~
139 - /RSA Data Security.*Secure Server Certification Authority/)
140 - {
141 - $cert_alias = "verisignserverca";
142 - }
143 - elsif ($cert =~ /GTE CyberTrust Global Root/)
144 - {
145 - $cert_alias = "gtecybertrustglobalca";
146 - }
147 - elsif ($cert =~ /Baltimore CyberTrust Root/)
148 - {
149 - $cert_alias = "baltimorecybertrustca";
150 - }
151 - elsif ($cert =~ /www.entrust.net\/Client_CA_Info\/CPS/)
152 - {
153 - $cert_alias = "entrustclientca";
154 - }
155 - elsif ($cert =~ /www.entrust.net\/GCCA_CPS/)
156 - {
157 - $cert_alias = "entrustglobalclientca";
158 - }
159 - elsif ($cert =~ /www.entrust.net\/CPS_2048/)
160 - {
161 - $cert_alias = "entrust2048ca";
162 - }
163 - elsif ($cert =~ /www.entrust.net\/CPS /)
164 - {
165 - $cert_alias = "entrustsslca";
166 - }
167 - elsif ($cert =~ /www.entrust.net\/SSL_CPS/)
168 - {
169 - $cert_alias = "entrustgsslca";
170 - }
171 - elsif ($cert =~ /The Go Daddy Group/)
172 - {
173 - $cert_alias = "godaddyclass2ca";
174 - }
175 - elsif ($cert =~ /Starfield Class 2 Certification Authority/)
176 - {
177 - $cert_alias = "starfieldclass2ca";
178 - }
179 - elsif ($cert =~ /ValiCert Class 2 Policy Validation Authority/)
180 - {
181 - $cert_alias = "valicertclass2ca";
182 - }
183 - elsif ($cert =~ /GeoTrust Global CA$/)
184 - {
185 - $cert_alias = "geotrustglobalca";
186 - }
187 - elsif ($cert =~ /Equifax Secure Certificate Authority/)
188 - {
189 - $cert_alias = "equifaxsecureca";
190 - }
191 - elsif ($cert =~ /Equifax Secure eBusiness CA-1/)
192 - {
193 - $cert_alias = "equifaxsecureebusinessca1";
194 - }
195 - elsif ($cert =~ /Equifax Secure eBusiness CA-2/)
196 - {
197 - $cert_alias = "equifaxsecureebusinessca2";
198 - }
199 - elsif ($cert =~ /Equifax Secure Global eBusiness CA-1/)
200 - {
201 - $cert_alias = "equifaxsecureglobalebusinessca1";
202 - }
203 - elsif ($cert =~ /Sonera Class1 CA/)
204 - {
205 - $cert_alias = "soneraclass1ca";
206 - }
207 - elsif ($cert =~ /Sonera Class2 CA/)
208 - {
209 - $cert_alias = "soneraclass2ca";
210 - }
211 - elsif ($cert =~ /AAA Certificate Services/)
212 - {
213 - $cert_alias = "comodoaaaca";
214 - }
215 - elsif ($cert =~ /AddTrust Class 1 CA Root/)
216 - {
217 - $cert_alias = "addtrustclass1ca";
218 - }
219 - elsif ($cert =~ /AddTrust External CA Root/)
220 - {
221 - $cert_alias = "addtrustexternalca";
222 - }
223 - elsif ($cert =~ /AddTrust Qualified CA Root/)
224 - {
225 - $cert_alias = "addtrustqualifiedca";
226 - }
227 - elsif ($cert =~ /UTN-USERFirst-Hardware/)
228 - {
229 - $cert_alias = "utnuserfirsthardwareca";
230 - }
231 - elsif ($cert =~ /UTN-USERFirst-Client Authentication and Email/)
232 - {
233 - $cert_alias = "utnuserfirstclientauthemailca";
234 - }
235 - elsif ($cert =~ /UTN - DATACorp SGC/)
236 - {
237 - $cert_alias = "utndatacorpsgcca";
238 - }
239 - elsif ($cert =~ /UTN-USERFirst-Object/)
240 - {
241 - $cert_alias = "utnuserfirstobjectca";
242 - }
243 - elsif ($cert =~ /America Online Root Certification Authority 1/)
244 - {
245 - $cert_alias = "aolrootca1";
246 - }
247 - elsif ($cert =~ /DigiCert Assured ID Root CA/)
248 - {
249 - $cert_alias = "digicertassuredidrootca";
250 - }
251 - elsif ($cert =~ /DigiCert Global Root CA/)
252 - {
253 - $cert_alias = "digicertglobalrootca";
254 - }
255 - elsif ($cert =~ /DigiCert High Assurance EV Root CA/)
256 - {
257 - $cert_alias = "digicerthighassuranceevrootca";
258 - }
259 - elsif ($cert =~ /GlobalSign Root CA$/)
260 - {
261 - $cert_alias = "globalsignca";
262 - }
263 - elsif ($cert =~ /GlobalSign Root CA - R2/)
264 - {
265 - $cert_alias = "globalsignr2ca";
266 - }
267 - elsif ($cert =~ /Elektronik.*Kas.*2005/)
268 - {
269 - $cert_alias = "extra-elektronikkas2005";
270 - }
271 - elsif ($cert =~ /Elektronik/)
272 - {
273 - $cert_alias = "extra-elektronik2005";
274 - }
275 - # Mozilla does not provide these certificates:
276 - # baltimorecodesigningca
277 - # gtecybertrust5ca
278 - # trustcenterclass2caii
279 - # trustcenterclass4caii
280 - # trustcenteruniversalcai
281 - else
282 - {
283 - # Generate an alias using the OU and CN attributes of the
284 - # Issuer field if both are present, otherwise use only the
285 - # CN attribute. The Issuer field must have either the OU
286 - # or the CN attribute.
287 - $_ = $cert;
288 - if ($cert =~ /OU=/)
289 - {
290 - s/Issuer:.*?OU=//;
291 - # Remove other occurrences of OU=.
292 - s/OU=.*CN=//;
293 - # Remove CN= if there were not other occurrences of OU=.
294 - s/CN=//;
295 - s/\/emailAddress.*//;
296 - s/Certificate Authority/ca/g;
297 - s/Certification Authority/ca/g;
298 - }
299 - elsif ($cert =~ /CN=/)
300 - {
301 - s/Issuer:.*CN=//;
302 - s/\/emailAddress.*//;
303 - s/Certificate Authority/ca/g;
304 - s/Certification Authority/ca/g;
305 - }
306 - s/\W//g;
307 - tr/A-Z/a-z/;
308 - $cert_alias = "extra-$_";
309 -
310 - }
311 - while (-e "$cert_alias.pem")
312 - {
313 - $cert_alias = "$cert_alias" . "_";
314 - }
315 - }
316 - # When it attempts to parse:
317 - #
318 - # Class 3 Public Primary Certification Authority - G2, Version 3
319 - #
320 - # keytool says:
321 - #
322 - # #2: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
323 - # Unparseable AuthorityInfoAccess extension due to
324 - # java.io.IOException: Invalid encoding of URI
325 - #
326 - # If we do not exclude this file
327 - # openjdk/jdk/test/lib/security/cacerts/VerifyCACerts.java fails
328 - # on this cert, printing:
329 - #
330 - # Couldn't verify: java.security.SignatureException: Signature
331 - # does not match.
332 - #
333 - elsif ($cert =~
334 - /A6:0F:34:C8:62:6C:81:F6:8B:F7:7D:A9:F6:67:58:8A:90:3F:7D:36/)
335 - {
336 - $write_current_cert = 0;
337 - $pem_file_count--;
338 - }
339 - elsif ($cert eq "-----BEGIN CERTIFICATE-----\n")
340 - {
341 - if ($in_cert_block != 0)
342 - {
343 - die "$file is malformed.";
344 - }
345 - $in_cert_block = 1;
346 - if ($write_current_cert == 1)
347 - {
348 - $pem_file_count++;
349 - if (-e "$cert_alias.pem")
350 - {
351 - print "$cert_alias";
352 - die "already exists"
353 - }
354 - open(PEM, ">$cert_alias.pem");
355 - print PEM $cert;
356 - }
357 - }
358 - elsif ($cert eq "-----END CERTIFICATE-----\n")
359 - {
360 - $in_cert_block = 0;
361 - if ($write_current_cert == 1)
362 - {
363 - print PEM $cert;
364 - close(PEM);
365 - }
366 - $write_current_cert = 1
367 - }
368 - else
369 - {
370 - if ($in_cert_block == 1 && $write_current_cert == 1)
371 - {
372 - print PEM $cert;
373 - }
374 - }
375 -}
376 -
377 -# Check that the correct number of .pem files were produced.
378 -@pem_files = <*.pem>;
379 -if (@pem_files != $pem_file_count)
380 -{
381 - print "$pem_file_count";
382 - die "Number of .pem files produced does not match".
383 - " number of certs read from $file.";
384 -}
385 -
386 -# Now store each cert in the 'cacerts' file using keytool.
387 -$certs_written_count = 0;
388 -foreach $pem_file (@pem_files)
389 -{
390 - system "$ARGV[0] -noprompt -import".
391 - " -alias `basename $pem_file .pem`".
392 - " -keystore cacerts -storepass 'changeit' -file $pem_file";
393 - unlink($pem_file);
394 - $certs_written_count++;
395 -}
396 -
397 -# Check that the correct number of certs were added to the keystore.
398 -if ($certs_written_count != $pem_file_count)
399 -{
400 - die "Number of certs added to keystore does not match".
401 - " number of certs read from $file.";
402 -}
403
404 diff --git a/dev-java/icedtea/icedtea-3.12.0.ebuild b/dev-java/icedtea/icedtea-3.12.0.ebuild
405 deleted file mode 100644
406 index 185c2913550..00000000000
407 --- a/dev-java/icedtea/icedtea-3.12.0.ebuild
408 +++ /dev/null
409 @@ -1,385 +0,0 @@
410 -# Copyright 1999-2019 Gentoo Authors
411 -# Distributed under the terms of the GNU General Public License v2
412 -
413 -# Build written by Andrew John Hughes (gnu_andrew@××××××××××.org)
414 -
415 -# *********************************************************
416 -# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL *
417 -# *********************************************************
418 -
419 -EAPI="6"
420 -SLOT="8"
421 -
422 -inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils prefix versionator xdg-utils
423 -
424 -ICEDTEA_VER=$(get_version_component_range 1-3)
425 -ICEDTEA_BRANCH=$(get_version_component_range 1-2)
426 -ICEDTEA_PKG=icedtea-${ICEDTEA_VER}
427 -ICEDTEA_PRE=$(get_version_component_range _)
428 -
429 -CORBA_TARBALL="fa1553d2f23e.tar.xz"
430 -JAXP_TARBALL="7a977b82f34c.tar.xz"
431 -JAXWS_TARBALL="752d9e54c69a.tar.xz"
432 -JDK_TARBALL="bfaa5c6df4a8.tar.xz"
433 -LANGTOOLS_TARBALL="fb494039358f.tar.xz"
434 -OPENJDK_TARBALL="f0482b9b7f7b.tar.xz"
435 -NASHORN_TARBALL="93462e8b4f4f.tar.xz"
436 -HOTSPOT_TARBALL="3f9a60eb8ef0.tar.xz"
437 -SHENANDOAH_TARBALL="adb62c0031b8.tar.xz"
438 -AARCH32_TARBALL="57f4048a925b.tar.xz"
439 -
440 -CACAO_TARBALL="cacao-c182f119eaad.tar.xz"
441 -JAMVM_TARBALL="jamvm-ec18fb9e49e62dce16c5094ef1527eed619463aa.tar.gz"
442 -
443 -CORBA_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-corba-${CORBA_TARBALL}"
444 -JAXP_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxp-${JAXP_TARBALL}"
445 -JAXWS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxws-${JAXWS_TARBALL}"
446 -JDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jdk-${JDK_TARBALL}"
447 -LANGTOOLS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-langtools-${LANGTOOLS_TARBALL}"
448 -OPENJDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-openjdk-${OPENJDK_TARBALL}"
449 -NASHORN_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-nashorn-${NASHORN_TARBALL}"
450 -HOTSPOT_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-hotspot-${HOTSPOT_TARBALL}"
451 -SHENANDOAH_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-shenandoah-${SHENANDOAH_TARBALL}"
452 -AARCH32_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-aarch32-${AARCH32_TARBALL}"
453 -
454 -CACAO_GENTOO_TARBALL="icedtea-${CACAO_TARBALL}"
455 -JAMVM_GENTOO_TARBALL="icedtea-${JAMVM_TARBALL}"
456 -
457 -DROP_URL="https://icedtea.classpath.org/download/drops"
458 -ICEDTEA_URL="${DROP_URL}/icedtea${SLOT}/${ICEDTEA_VER}"
459 -
460 -DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
461 -HOMEPAGE="https://icedtea.classpath.org"
462 -SRC_PKG="${ICEDTEA_PKG}.tar.xz"
463 -SRC_URI="
464 - https://icedtea.classpath.org/download/source/${SRC_PKG}
465 - ${ICEDTEA_URL}/openjdk.tar.xz -> ${OPENJDK_GENTOO_TARBALL}
466 - ${ICEDTEA_URL}/corba.tar.xz -> ${CORBA_GENTOO_TARBALL}
467 - ${ICEDTEA_URL}/jaxp.tar.xz -> ${JAXP_GENTOO_TARBALL}
468 - ${ICEDTEA_URL}/jaxws.tar.xz -> ${JAXWS_GENTOO_TARBALL}
469 - ${ICEDTEA_URL}/jdk.tar.xz -> ${JDK_GENTOO_TARBALL}
470 - ${ICEDTEA_URL}/hotspot.tar.xz -> ${HOTSPOT_GENTOO_TARBALL}
471 - ${ICEDTEA_URL}/nashorn.tar.xz -> ${NASHORN_GENTOO_TARBALL}
472 - ${ICEDTEA_URL}/langtools.tar.xz -> ${LANGTOOLS_GENTOO_TARBALL}
473 - shenandoah? ( ${ICEDTEA_URL}/shenandoah.tar.xz -> ${SHENANDOAH_GENTOO_TARBALL} )
474 - arm? ( ${ICEDTEA_URL}/aarch32.tar.xz -> ${AARCH32_GENTOO_TARBALL} )
475 - ${DROP_URL}/cacao/${CACAO_TARBALL} -> ${CACAO_GENTOO_TARBALL}
476 - ${DROP_URL}/jamvm/${JAMVM_TARBALL} -> ${JAMVM_GENTOO_TARBALL}"
477 -
478 -LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
479 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
480 -
481 -IUSE="+alsa cacao +cups doc examples +gtk headless-awt
482 - jamvm +jbootstrap kerberos libressl nsplugin pax_kernel +pch
483 - pulseaudio sctp selinux shenandoah smartcard +source +system-lcms test +webstart zero"
484 -
485 -REQUIRED_USE="gtk? ( !headless-awt )"
486 -
487 -# Ideally the following were optional at build time.
488 -ALSA_COMMON_DEP="
489 - >=media-libs/alsa-lib-1.0"
490 -CUPS_COMMON_DEP="
491 - >=net-print/cups-1.2.12"
492 -X_COMMON_DEP="
493 - >=media-libs/giflib-4.1.6:0=
494 - >=media-libs/libpng-1.2:0=
495 - >=x11-libs/libX11-1.1.3
496 - >=x11-libs/libXext-1.1.1
497 - >=x11-libs/libXi-1.1.3
498 - >=x11-libs/libXrender-0.9.4
499 - >=x11-libs/libXtst-1.0.3
500 - x11-libs/libXcomposite"
501 -X_DEPEND="
502 - x11-base/xorg-proto
503 - >=x11-libs/libXau-1.0.3
504 - >=x11-libs/libXdmcp-1.0.2
505 - >=x11-libs/libXinerama-1.0.2"
506 -
507 -# The Javascript requirement is obsolete; OpenJDK 8+ has Nashorn
508 -COMMON_DEP="
509 - >=dev-libs/glib-2.26:2=
510 - >=dev-util/systemtap-1
511 - media-libs/fontconfig:1.0=
512 - >=media-libs/freetype-2.5.3:2=
513 - >=sys-libs/zlib-1.2.3
514 - virtual/jpeg:0=
515 - kerberos? ( virtual/krb5 )
516 - sctp? ( net-misc/lksctp-tools )
517 - smartcard? ( sys-apps/pcsc-lite )
518 - system-lcms? ( >=media-libs/lcms-2.9:2= )"
519 -
520 -# Gtk+ will move to COMMON_DEP in time; PR1982
521 -# gsettings-desktop-schemas will be needed for native proxy support; PR1976
522 -RDEPEND="${COMMON_DEP}
523 - !dev-java/icedtea:0
524 - !dev-java/icedtea-web:7
525 - >=gnome-base/gsettings-desktop-schemas-3.12.2
526 - virtual/ttf-fonts
527 - alsa? ( ${ALSA_COMMON_DEP} )
528 - cups? ( ${CUPS_COMMON_DEP} )
529 - gtk? (
530 - >=dev-libs/atk-1.30.0
531 - >=x11-libs/cairo-1.8.8
532 - x11-libs/gdk-pixbuf:2
533 - >=x11-libs/gtk+-2.8:2
534 - >=x11-libs/pango-1.24.5
535 - )
536 - !headless-awt? ( ${X_COMMON_DEP} )
537 - selinux? ( sec-policy/selinux-java )"
538 -
539 -# ca-certificates, perl and openssl are used for the cacerts keystore generation
540 -# perl is needed for running the SystemTap tests and the bootstrap javac
541 -# lsb-release is used to obtain distro information for the version & crash dump output
542 -# attr is needed for xattr.h which defines the extended attribute syscalls used by NIO2
543 -# x11-libs/libXt is needed for headers only (Intrinsic.h, IntrinsicP.h, Shell.h, StringDefs.h)
544 -# Ant is no longer needed under the new build system
545 -DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP} ${X_DEPEND}
546 - || (
547 - dev-java/icedtea-bin:8
548 - dev-java/icedtea-bin:7
549 - dev-java/icedtea:8
550 - dev-java/icedtea:7
551 - dev-java/openjdk:8
552 - dev-java/openjdk-bin:8
553 - )
554 - app-arch/cpio
555 - app-arch/unzip
556 - app-arch/zip
557 - app-misc/ca-certificates
558 - dev-lang/perl
559 - !libressl? ( dev-libs/openssl:0 )
560 - libressl? ( dev-libs/libressl:0 )
561 - sys-apps/attr
562 - sys-apps/lsb-release
563 - x11-libs/libXt
564 - virtual/pkgconfig
565 - pax_kernel? ( sys-apps/elfix )"
566 -
567 -PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
568 - nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )
569 - pulseaudio? ( dev-java/icedtea-sound )"
570 -
571 -S="${WORKDIR}"/${ICEDTEA_PKG}
572 -
573 -icedtea_check_requirements() {
574 - local CHECKREQS_DISK_BUILD
575 -
576 - if use doc; then
577 - CHECKREQS_DISK_BUILD="9000M"
578 - else
579 - CHECKREQS_DISK_BUILD="8500M"
580 - fi
581 -
582 - check-reqs_pkg_${EBUILD_PHASE}
583 -}
584 -
585 -pkg_pretend() {
586 - icedtea_check_requirements
587 -}
588 -
589 -pkg_setup() {
590 - icedtea_check_requirements
591 -
592 - JAVA_PKG_WANT_BUILD_VM="
593 - icedtea-8 icedtea-bin-8
594 - icedtea-7 icedtea-bin-7
595 - openjdk-8 openjdk-bin-8"
596 - JAVA_PKG_WANT_SOURCE="1.5"
597 - JAVA_PKG_WANT_TARGET="1.5"
598 -
599 - java-vm-2_pkg_setup
600 - java-pkg-2_pkg_setup
601 -}
602 -
603 -src_unpack() {
604 - unpack ${SRC_PKG}
605 -}
606 -
607 -src_configure() {
608 - # For bootstrap builds as the sandbox control file might not yet exist.
609 - addpredict /proc/self/coredump_filter
610 -
611 - # icedtea doesn't like some locales. #330433 #389717
612 - export LANG="C" LC_ALL="C"
613 -
614 - local cacao_config config hotspot_port hs_config jamvm_config use_cacao use_jamvm use_zero zero_config
615 - local vm=$(java-pkg_get-current-vm)
616 -
617 - # gcj-jdk ensures ecj is present.
618 - if use jbootstrap || has "${vm}" gcj-jdk; then
619 - use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\""
620 - config+=" --enable-bootstrap"
621 - else
622 - config+=" --disable-bootstrap"
623 - fi
624 -
625 - # Use Zero if requested
626 - if use zero; then
627 - use_zero="yes"
628 - fi
629 -
630 - # Use JamVM if requested
631 - if use jamvm; then
632 - use_jamvm="yes"
633 - fi
634 -
635 - # Use CACAO if requested
636 - if use cacao; then
637 - use_cacao="yes"
638 - fi
639 -
640 - # Are we on a architecture with a HotSpot port?
641 - # In-tree JIT ports are available for amd64, arm, arm64, ppc64 (be&le), SPARC and x86.
642 - if { use amd64 || use arm || use arm64 || use ppc64 || use sparc || use x86; }; then
643 - hotspot_port="yes"
644 - # Work around stack alignment issue, bug #647954.
645 - use x86 && append-flags -mincoming-stack-boundary=2
646 - fi
647 -
648 - # Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
649 - # Otherwise use Zero for now until alternate VMs are working
650 - if test "x${hotspot_port}" != "xyes"; then
651 - use_zero="yes"
652 - fi
653 -
654 - if use shenandoah; then
655 - if { use amd64 || use arm64; }; then
656 - hs_config="--with-hotspot-build=shenandoah"
657 - hs_config+=" --with-hotspot-src-zip="${DISTDIR}/${SHENANDOAH_GENTOO_TARBALL}""
658 - else
659 - eerror "Shenandoah is only supported on arm64 and x86_64. Please re-build with USE="-shenandoah""
660 - fi
661 - else
662 - if use arm ; then
663 - hs_config="--with-hotspot-src-zip="${DISTDIR}/${AARCH32_GENTOO_TARBALL}""
664 - else
665 - hs_config="--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_GENTOO_TARBALL}""
666 - fi
667 - fi
668 -
669 - # Turn on JamVM if needed (non-HS archs) or requested
670 - if test "x${use_jamvm}" = "xyes"; then
671 - if test "x${hotspot_port}" = "xyes"; then
672 - ewarn 'Enabling JamVM on an architecture with HotSpot support; issues may result.'
673 - ewarn 'If so, please rebuild with USE="-jamvm"'
674 - fi
675 - ewarn 'JamVM is known to still have issues with IcedTea 3.x; please rebuild with USE="-jamvm"'
676 - jamvm_config="--enable-jamvm"
677 - fi
678 -
679 - # Turn on CACAO if needed (non-HS archs) or requested
680 - if test "x${use_cacao}" = "xyes"; then
681 - if test "x${hotspot_port}" = "xyes"; then
682 - ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
683 - ewarn 'If so, please rebuild with USE="-cacao"'
684 - fi
685 - ewarn 'CACAO is known to still have issues with IcedTea 3.x; please rebuild with USE="-cacao"'
686 - cacao_config="--enable-cacao"
687 - fi
688 -
689 - # Turn on Zero if needed (non-HS/CACAO archs) or requested
690 - if test "x${use_zero}" = "xyes"; then
691 - if test "x${hotspot_port}" = "xyes"; then
692 - ewarn 'Enabling Zero on an architecture with HotSpot support; performance will be significantly reduced.'
693 - fi
694 - zero_config="--enable-zero"
695 - fi
696 -
697 - # PaX breaks pch, bug #601016
698 - if use pch && ! host-is-pax; then
699 - config+=" --enable-precompiled-headers"
700 - else
701 - config+=" --disable-precompiled-headers"
702 - fi
703 -
704 - config+=" --with-parallel-jobs=$(makeopts_jobs)"
705 -
706 - unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
707 -
708 - econf ${config} \
709 - --with-openjdk-src-zip="${DISTDIR}/${OPENJDK_GENTOO_TARBALL}" \
710 - --with-corba-src-zip="${DISTDIR}/${CORBA_GENTOO_TARBALL}" \
711 - --with-jaxp-src-zip="${DISTDIR}/${JAXP_GENTOO_TARBALL}" \
712 - --with-jaxws-src-zip="${DISTDIR}/${JAXWS_GENTOO_TARBALL}" \
713 - --with-jdk-src-zip="${DISTDIR}/${JDK_GENTOO_TARBALL}" \
714 - --with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_GENTOO_TARBALL}" \
715 - --with-nashorn-src-zip="${DISTDIR}/${NASHORN_GENTOO_TARBALL}" \
716 - --with-cacao-src-zip="${DISTDIR}/${CACAO_GENTOO_TARBALL}" \
717 - --with-jamvm-src-zip="${DISTDIR}/${JAMVM_GENTOO_TARBALL}" \
718 - --with-jdk-home="$(java-config -O)" \
719 - --prefix="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}" \
720 - --mandir="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}/man" \
721 - --docdir="${EPREFIX}/usr/share/doc/${PF}" \
722 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
723 - --with-pkgversion="Gentoo ${PF}" \
724 - --disable-ccache \
725 - --disable-downloading --disable-Werror --disable-tests \
726 - --disable-systemtap-tests --enable-improved-font-rendering \
727 - --enable-system-jpeg --enable-system-zlib \
728 - $(use_enable headless-awt headless) \
729 - $(use_enable !headless-awt system-gif) \
730 - $(use_enable !headless-awt system-png) \
731 - $(use_enable doc docs) \
732 - $(use_enable kerberos system-kerberos) \
733 - $(use_enable system-lcms) \
734 - $(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh") \
735 - $(use_enable sctp system-sctp) \
736 - $(use_enable smartcard system-pcsc) \
737 - ${zero_config} ${cacao_config} ${jamvm_config} ${hs_config}
738 -}
739 -
740 -src_compile() {
741 - default
742 -}
743 -
744 -src_test() {
745 - default
746 -}
747 -
748 -src_install() {
749 - default
750 -
751 - local dest="/usr/$(get_libdir)/icedtea${SLOT}"
752 - local ddest="${ED}${dest#/}"
753 -
754 - if ! use alsa; then
755 - rm -v "${ddest}"/jre/lib/$(get_system_arch)/libjsoundalsa.* || die
756 - fi
757 -
758 - if ! use examples; then
759 - rm -r "${ddest}"/demo "${ddest}"/sample || die
760 - fi
761 -
762 - if ! use source; then
763 - rm -v "${ddest}"/src.zip || die
764 - fi
765 -
766 - dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
767 -
768 - # Fix the permissions.
769 - find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
770 -
771 - # We need to generate keystore - bug #273306
772 - einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
773 - mkdir "${T}/certgen" && cd "${T}/certgen" || die
774 - cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
775 - for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
776 - openssl x509 -text -in "${c}" >> all.crt || die
777 - done
778 - ./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
779 - cp -vRP cacerts "${ddest}/jre/lib/security/" || die
780 - chmod 644 "${ddest}/jre/lib/security/cacerts" || die
781 -
782 - java-vm_install-env "${FILESDIR}/icedtea.env.sh"
783 - java-vm_sandbox-predict /proc/self/coredump_filter
784 -}
785 -
786 -pkg_postinst() {
787 - xdg_icon_cache_update
788 - java-vm-2_pkg_postinst
789 -}
790 -
791 -pkg_postrm() {
792 - xdg_icon_cache_update
793 - java-vm-2_pkg_postrm
794 -}