1 |
commit: 40f84beb37a21b97fd912b5d9d8423eed4a00f9d |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 29 02:07:04 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 29 02:07:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40f84beb |
7 |
|
8 |
dev-java/icedtea: drop vulnerable |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-java/icedtea/Manifest | 11 - |
14 |
dev-java/icedtea/icedtea-3.16.0.ebuild | 378 --------------------------------- |
15 |
2 files changed, 389 deletions(-) |
16 |
|
17 |
diff --git a/dev-java/icedtea/Manifest b/dev-java/icedtea/Manifest |
18 |
index 6587faf3b22..dad160f27cc 100644 |
19 |
--- a/dev-java/icedtea/Manifest |
20 |
+++ b/dev-java/icedtea/Manifest |
21 |
@@ -1,14 +1,3 @@ |
22 |
-DIST icedtea-3.16-aarch32-ecc1eb1dc760.tar.xz 6854900 BLAKE2B a4b0a4fec267f0dd64618aa83a2cf487e83bfa133e03914a079d451abb6be573e4d157f12372d6d2eaa66f834d4a1ec0bad8f1a65d2619468bb3de8567863036 SHA512 20ba1980a4f4161c632e8ec02330c3b0c971a5eff19456a568b2df4622fcfedb18594c7e350318a15a31a5395c0544899160d71805f0a3d3886ae7a16019c010 |
23 |
-DIST icedtea-3.16-corba-ea3169880d70.tar.xz 947604 BLAKE2B 22e7fdab5168b01501791c9537b72f884cdd008ec912e1e7afb05c410e47ab9fffc37aeeab78400a39b6216612927eb63bdc6ba2169fc7e74fe8d6c60b1af978 SHA512 bf90c95f401d4628e32b9a7ea78b7d43944f82882818a81d2ff368f09e49148091bf823d78ed56c343c175fe6d25492d9b78e25b725f218592ea94c4ae285e56 |
24 |
-DIST icedtea-3.16-hotspot-eeb08cfebded.tar.xz 6906968 BLAKE2B 78bd9ecef9801a190ce2993d1023d6eb3db8276cc7fc726cccbf406e630a4bc62401299885de42df85f92611da10c732ae50600af9e337dcf3014472777ba38a SHA512 19490ccc377fde5dc3d4396425e945f32e121ad0cc4be394b07f8698a7e3805b16fc41e427bab5fa290cb84efc7edb62acf8ca98072176343f5584d692592d2d |
25 |
-DIST icedtea-3.16-jaxp-883803235596.tar.xz 2293880 BLAKE2B c749477661d9e492ab15e0b773d641f68865196c8d2897eceeafd341cacf143e73c6b55face57d528ca5d1a648798db4533e7b924daa918c2ce62d26b407bf5b SHA512 86e8c18741c1f4baca27d784b068765e404a5c2ee6ecb172c826fc1d6192b5776133f103b749839c39154fcaec87a0df95e8fd5bcb56b1e9b811711b296a4836 |
26 |
-DIST icedtea-3.16-jaxws-e5d96dc9988a.tar.xz 2276192 BLAKE2B 79c33b530f95ab098297d0cdb5844660df4330555195c366611cadde8478711cc4a0fef3b68a23bbd710d4213298cd4293cdec3d12a07c0682f6e264489e9d11 SHA512 824ef15aa70ec629406fd9b98a69e5699fe8f6a8ab06be00ac546bcda1daf485b20de6ea0310064e000efbaf35b1cebee25bf69033634fdce8434efb3bb16f1d |
27 |
-DIST icedtea-3.16-jdk-bb9b9a0ad162.tar.xz 39849832 BLAKE2B 2b9b3ca3988955015760c82481a86af73c13b37b0c26714fbdac33de73b70ecf2fb3abcd908406dfe7dc202b02c70d66ba6b64f838b8e0b2ecb55a46944998c3 SHA512 9202f88b360637ad474920d8a6f85740e6a425679617ef713efd67778b4c7ca0b3eba7e4fc9d33de0bbd5dacda4862c8a9b63a13880204388b01af29d5fb6a55 |
28 |
-DIST icedtea-3.16-langtools-e47d37e5fe0b.tar.xz 2078808 BLAKE2B 2f7286c15c90607e67eea8b8ca560cc83a21e4a3ebbb5846afeb79ccfefe0713fe27ebe56a505f263276476e0a99c470171030cbaa406fbbc7cdef13acbf89b1 SHA512 1858bb3b7dd37edd817a52c67a878b48bc9b790623e77d9a6107f54b141638cb101ae3b8df560e3352c9ca2925aa5d493b4924e36a238be5a9628c714cc23642 |
29 |
-DIST icedtea-3.16-nashorn-1d70dcb4ab53.tar.xz 2319492 BLAKE2B c328c3a99fbd49be1efbecbb12e46be57d4cb78c65ca778f95644e2d193a4390ed1ad1ce3cddc6f737241d5e02b18b50adbc37748907db3eabe406a4880a6afb SHA512 4bf87e7441ac747f133612e1fba5c06946c6731bae76132ffc614b41fcb689fda9d9ceb1e1fee3765765c6109894c85cf0f6e6fa9eb301f9a2d640ea6cd1c16c |
30 |
-DIST icedtea-3.16-openjdk-bca1f7228ce8.tar.xz 363112 BLAKE2B aff804d5b5d58dcb25f9a576aa0a23355d2229f89d5dc69142580d5fab3bdd688225d2e33090714a3d292d9d98758867feaef9c179a4c77b5cab37c21c5f0610 SHA512 76b32457958c2cdbb0006629bb41652286a1a9bfbda862665eddf822d4653d4858f9f2565e849b0e49f031b7667be73be8fe8c71abc65e1795eb570a96d1fd1e |
31 |
-DIST icedtea-3.16-shenandoah-e4e81ae21643.tar.xz 7081200 BLAKE2B bbbd4f3cc7f3adb34a3c3497c62eeb1336d554f7396b952b94ad8f573295c1537e9c3416fc2d2881efef6d6a1750bd069da0fac37a0d556eeb55a0ace9b7b385 SHA512 adbb279d59d4978403b222caf9f0823b3ae2a0d6e27911a38243fe6ef9b1a7f0d8640d71b67fa510c341dc175031e52b4b6aa6187a37ac467372a55946ae37d3 |
32 |
-DIST icedtea-3.16.0.tar.xz 1534432 BLAKE2B ef8ffc6773c2ea1d71a2bad1f425f891edd65cb61fd22b1c36b06539b9656f211422d897e35b707bac1b0005eaa95d31bab3079c5e31454383be01d9750394ba SHA512 67964f283b5a220ded7c86141ac359fc51f41077686d3e68568a9f303d2e5e6d62472bef2d6f5f9d53897a55589c84d3212983194607b9a6704192752f8ad2ac |
33 |
DIST icedtea-3.17-aarch32-3.17.0.tar.xz 7054840 BLAKE2B 461939116607f82b5aef6dd093204dcf383e209630945f6f0ff0360bbe306e7afc2b1ae339911954c2b80446d37e0d25a587912cbfbebe0ace2e701c2e9e9f67 SHA512 493d9a98166255a630306bf1e67e681e0b2ece42b6e7a96c75b2cfb6cb0639b8c9ed8918eb129c9543fab1805a4ac33774f25ecb2272703eabd6eeb680327717 |
34 |
DIST icedtea-3.17-corba-3.17.0.tar.xz 948464 BLAKE2B 97050f07a9ee39c763cff67dcb19ad772fa2529103647b0ec7cdfd40f926cea67e6e02d3f10e7d5aefd8221476c923630f4b9fd6d5f95ae4c74b46e44c911520 SHA512 cec56b02b47f96ac97d6485fc18ea30100ba64c0acd509d408ddfe43e36e14ebf2345b3fefcf001af378af9ed3628ca8c45add604bd435806eba47c9f2945993 |
35 |
DIST icedtea-3.17-hotspot-3.17.0.tar.xz 7107508 BLAKE2B 61148d11c2cea5fa18e9d115be7dfefa68825cb5396465c2b1c991402ba1a000f2e780773a83a95741571a38992839206e21f26954773fa2306e1a6d4d7eaad9 SHA512 cb1bdf3ab9aee48e745108d2762992c2a6be21e22bf6633a512f4bff28becb61e4cdd3662e7301aa7067271c6c80a8ac2a65fdb5b432b8c02d38b6fd74c7f9e8 |
36 |
|
37 |
diff --git a/dev-java/icedtea/icedtea-3.16.0.ebuild b/dev-java/icedtea/icedtea-3.16.0.ebuild |
38 |
deleted file mode 100644 |
39 |
index 436fb8fe611..00000000000 |
40 |
--- a/dev-java/icedtea/icedtea-3.16.0.ebuild |
41 |
+++ /dev/null |
42 |
@@ -1,378 +0,0 @@ |
43 |
-# Copyright 1999-2020 Gentoo Authors |
44 |
-# Distributed under the terms of the GNU General Public License v2 |
45 |
- |
46 |
-# Build written by Andrew John Hughes (gnu_andrew@××××××××××.org) |
47 |
- |
48 |
-# ********************************************************* |
49 |
-# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-6.* AS WELL * |
50 |
-# ********************************************************* |
51 |
- |
52 |
-EAPI="6" |
53 |
-SLOT="8" |
54 |
- |
55 |
-inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils prefix toolchain-funcs versionator xdg-utils |
56 |
- |
57 |
-ICEDTEA_VER=$(get_version_component_range 1-3) |
58 |
-ICEDTEA_BRANCH=$(get_version_component_range 1-2) |
59 |
-ICEDTEA_PKG=icedtea-${ICEDTEA_VER} |
60 |
-ICEDTEA_PRE=$(get_version_component_range _) |
61 |
- |
62 |
-CORBA_TARBALL="ea3169880d70.tar.xz" |
63 |
-JAXP_TARBALL="883803235596.tar.xz" |
64 |
-JAXWS_TARBALL="e5d96dc9988a.tar.xz" |
65 |
-JDK_TARBALL="bb9b9a0ad162.tar.xz" |
66 |
-LANGTOOLS_TARBALL="e47d37e5fe0b.tar.xz" |
67 |
-OPENJDK_TARBALL="bca1f7228ce8.tar.xz" |
68 |
-NASHORN_TARBALL="1d70dcb4ab53.tar.xz" |
69 |
-HOTSPOT_TARBALL="eeb08cfebded.tar.xz" |
70 |
-SHENANDOAH_TARBALL="e4e81ae21643.tar.xz" |
71 |
-AARCH32_TARBALL="ecc1eb1dc760.tar.xz" |
72 |
- |
73 |
-CACAO_TARBALL="cacao-c182f119eaad.tar.xz" |
74 |
-JAMVM_TARBALL="jamvm-ec18fb9e49e62dce16c5094ef1527eed619463aa.tar.gz" |
75 |
- |
76 |
-CORBA_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-corba-${CORBA_TARBALL}" |
77 |
-JAXP_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxp-${JAXP_TARBALL}" |
78 |
-JAXWS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jaxws-${JAXWS_TARBALL}" |
79 |
-JDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-jdk-${JDK_TARBALL}" |
80 |
-LANGTOOLS_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-langtools-${LANGTOOLS_TARBALL}" |
81 |
-OPENJDK_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-openjdk-${OPENJDK_TARBALL}" |
82 |
-NASHORN_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-nashorn-${NASHORN_TARBALL}" |
83 |
-HOTSPOT_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-hotspot-${HOTSPOT_TARBALL}" |
84 |
-SHENANDOAH_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-shenandoah-${SHENANDOAH_TARBALL}" |
85 |
-AARCH32_GENTOO_TARBALL="icedtea-${ICEDTEA_BRANCH}-aarch32-${AARCH32_TARBALL}" |
86 |
- |
87 |
-CACAO_GENTOO_TARBALL="icedtea-${CACAO_TARBALL}" |
88 |
-JAMVM_GENTOO_TARBALL="icedtea-${JAMVM_TARBALL}" |
89 |
- |
90 |
-DROP_URL="https://icedtea.classpath.org/download/drops" |
91 |
-ICEDTEA_URL="${DROP_URL}/icedtea${SLOT}/${ICEDTEA_VER}" |
92 |
- |
93 |
-DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies" |
94 |
-HOMEPAGE="https://icedtea.classpath.org" |
95 |
-SRC_PKG="${ICEDTEA_PKG}.tar.xz" |
96 |
-SRC_URI=" |
97 |
- https://icedtea.classpath.org/download/source/${SRC_PKG} |
98 |
- ${ICEDTEA_URL}/openjdk.tar.xz -> ${OPENJDK_GENTOO_TARBALL} |
99 |
- ${ICEDTEA_URL}/corba.tar.xz -> ${CORBA_GENTOO_TARBALL} |
100 |
- ${ICEDTEA_URL}/jaxp.tar.xz -> ${JAXP_GENTOO_TARBALL} |
101 |
- ${ICEDTEA_URL}/jaxws.tar.xz -> ${JAXWS_GENTOO_TARBALL} |
102 |
- ${ICEDTEA_URL}/jdk.tar.xz -> ${JDK_GENTOO_TARBALL} |
103 |
- ${ICEDTEA_URL}/hotspot.tar.xz -> ${HOTSPOT_GENTOO_TARBALL} |
104 |
- ${ICEDTEA_URL}/nashorn.tar.xz -> ${NASHORN_GENTOO_TARBALL} |
105 |
- ${ICEDTEA_URL}/langtools.tar.xz -> ${LANGTOOLS_GENTOO_TARBALL} |
106 |
- shenandoah? ( ${ICEDTEA_URL}/shenandoah.tar.xz -> ${SHENANDOAH_GENTOO_TARBALL} ) |
107 |
- arm? ( ${ICEDTEA_URL}/aarch32.tar.xz -> ${AARCH32_GENTOO_TARBALL} ) |
108 |
- ${DROP_URL}/cacao/${CACAO_TARBALL} -> ${CACAO_GENTOO_TARBALL} |
109 |
- ${DROP_URL}/jamvm/${JAMVM_TARBALL} -> ${JAMVM_GENTOO_TARBALL}" |
110 |
- |
111 |
-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" |
112 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
113 |
- |
114 |
-IUSE="+alsa cacao +cups doc examples +gtk headless-awt |
115 |
- jamvm +jbootstrap kerberos libressl pax_kernel +pch |
116 |
- pulseaudio sctp selinux shenandoah smartcard +source +system-lcms test zero" |
117 |
- |
118 |
-RESTRICT="!test? ( test )" |
119 |
-REQUIRED_USE="gtk? ( !headless-awt )" |
120 |
- |
121 |
-# Ideally the following were optional at build time. |
122 |
-ALSA_COMMON_DEP=" |
123 |
- >=media-libs/alsa-lib-1.0" |
124 |
-CUPS_COMMON_DEP=" |
125 |
- >=net-print/cups-1.2.12" |
126 |
-X_COMMON_DEP=" |
127 |
- >=media-libs/giflib-4.1.6:0= |
128 |
- >=media-libs/libpng-1.2:0= |
129 |
- >=x11-libs/libX11-1.1.3 |
130 |
- >=x11-libs/libXext-1.1.1 |
131 |
- >=x11-libs/libXi-1.1.3 |
132 |
- >=x11-libs/libXrender-0.9.4 |
133 |
- >=x11-libs/libXtst-1.0.3 |
134 |
- x11-libs/libXcomposite" |
135 |
-X_DEPEND=" |
136 |
- x11-base/xorg-proto |
137 |
- >=x11-libs/libXau-1.0.3 |
138 |
- >=x11-libs/libXdmcp-1.0.2 |
139 |
- >=x11-libs/libXinerama-1.0.2" |
140 |
- |
141 |
-# The Javascript requirement is obsolete; OpenJDK 8+ has Nashorn |
142 |
-COMMON_DEP=" |
143 |
- >=dev-libs/glib-2.26:2= |
144 |
- >=dev-util/systemtap-1 |
145 |
- media-libs/fontconfig:1.0= |
146 |
- >=media-libs/freetype-2.5.3:2= |
147 |
- >=sys-libs/zlib-1.2.3 |
148 |
- virtual/jpeg:0= |
149 |
- kerberos? ( virtual/krb5 ) |
150 |
- sctp? ( net-misc/lksctp-tools ) |
151 |
- smartcard? ( sys-apps/pcsc-lite ) |
152 |
- system-lcms? ( >=media-libs/lcms-2.9:2= )" |
153 |
- |
154 |
-# Gtk+ will move to COMMON_DEP in time; PR1982 |
155 |
-# gsettings-desktop-schemas will be needed for native proxy support; PR1976 |
156 |
-RDEPEND="${COMMON_DEP} |
157 |
- !dev-java/icedtea:0 |
158 |
- !dev-java/icedtea-web:7 |
159 |
- >=gnome-base/gsettings-desktop-schemas-3.12.2 |
160 |
- >=sys-apps/baselayout-java-0.1.0-r1 |
161 |
- virtual/ttf-fonts |
162 |
- alsa? ( ${ALSA_COMMON_DEP} ) |
163 |
- cups? ( ${CUPS_COMMON_DEP} ) |
164 |
- gtk? ( |
165 |
- >=dev-libs/atk-1.30.0 |
166 |
- >=x11-libs/cairo-1.8.8 |
167 |
- x11-libs/gdk-pixbuf:2 |
168 |
- >=x11-libs/gtk+-2.8:2 |
169 |
- >=x11-libs/pango-1.24.5 |
170 |
- ) |
171 |
- !headless-awt? ( ${X_COMMON_DEP} ) |
172 |
- selinux? ( sec-policy/selinux-java )" |
173 |
- |
174 |
-# ca-certificates, perl and openssl are used for the cacerts keystore generation |
175 |
-# perl is needed for running the SystemTap tests and the bootstrap javac |
176 |
-# lsb-release is used to obtain distro information for the version & crash dump output |
177 |
-# attr is needed for xattr.h which defines the extended attribute syscalls used by NIO2 |
178 |
-# x11-libs/libXt is needed for headers only (Intrinsic.h, IntrinsicP.h, Shell.h, StringDefs.h) |
179 |
-# Ant is no longer needed under the new build system |
180 |
-DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP} ${X_DEPEND} |
181 |
- || ( |
182 |
- dev-java/icedtea-bin:8 |
183 |
- dev-java/icedtea:8 |
184 |
- dev-java/openjdk:8 |
185 |
- dev-java/openjdk-bin:8 |
186 |
- ) |
187 |
- app-arch/cpio |
188 |
- app-arch/unzip |
189 |
- app-arch/zip |
190 |
- app-misc/ca-certificates |
191 |
- dev-lang/perl |
192 |
- !libressl? ( dev-libs/openssl:0 ) |
193 |
- libressl? ( dev-libs/libressl:0 ) |
194 |
- sys-apps/attr |
195 |
- sys-apps/lsb-release |
196 |
- x11-libs/libXt |
197 |
- virtual/pkgconfig |
198 |
- pax_kernel? ( sys-apps/elfix )" |
199 |
- |
200 |
-PDEPEND="pulseaudio? ( dev-java/icedtea-sound )" |
201 |
- |
202 |
-S="${WORKDIR}"/${ICEDTEA_PKG} |
203 |
- |
204 |
-icedtea_check_requirements() { |
205 |
- local CHECKREQS_DISK_BUILD |
206 |
- |
207 |
- if use doc; then |
208 |
- CHECKREQS_DISK_BUILD="9000M" |
209 |
- else |
210 |
- CHECKREQS_DISK_BUILD="8500M" |
211 |
- fi |
212 |
- |
213 |
- check-reqs_pkg_${EBUILD_PHASE} |
214 |
-} |
215 |
- |
216 |
-pkg_pretend() { |
217 |
- icedtea_check_requirements |
218 |
-} |
219 |
- |
220 |
-pkg_setup() { |
221 |
- icedtea_check_requirements |
222 |
- |
223 |
- JAVA_PKG_WANT_BUILD_VM=" |
224 |
- icedtea-8 icedtea-bin-8 |
225 |
- openjdk-8 openjdk-bin-8" |
226 |
- JAVA_PKG_WANT_SOURCE="1.5" |
227 |
- JAVA_PKG_WANT_TARGET="1.5" |
228 |
- |
229 |
- java-vm-2_pkg_setup |
230 |
- java-pkg-2_pkg_setup |
231 |
-} |
232 |
- |
233 |
-src_unpack() { |
234 |
- unpack ${SRC_PKG} |
235 |
-} |
236 |
- |
237 |
-src_configure() { |
238 |
- # GCC10/-fno-common handling, #723102 |
239 |
- if [[ $(gcc-major-version) -ge 10 ]]; then |
240 |
- append-flags -fcommon |
241 |
- append-flags -fno-delete-null-pointer-checks -fno-lifetime-dse |
242 |
- fi |
243 |
- |
244 |
- # For bootstrap builds as the sandbox control file might not yet exist. |
245 |
- addpredict /proc/self/coredump_filter #nowarn |
246 |
- |
247 |
- # icedtea doesn't like some locales. #330433 #389717 |
248 |
- export LANG="C" LC_ALL="C" |
249 |
- |
250 |
- local cacao_config config hotspot_port hs_config jamvm_config use_cacao use_jamvm use_zero zero_config |
251 |
- local vm=$(java-pkg_get-current-vm) |
252 |
- |
253 |
- # gcj-jdk ensures ecj is present. |
254 |
- if use jbootstrap || has "${vm}" gcj-jdk; then |
255 |
- use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\"" |
256 |
- config+=" --enable-bootstrap" |
257 |
- else |
258 |
- config+=" --disable-bootstrap" |
259 |
- fi |
260 |
- |
261 |
- # Use Zero if requested |
262 |
- if use zero; then |
263 |
- use_zero="yes" |
264 |
- fi |
265 |
- |
266 |
- # Use JamVM if requested |
267 |
- if use jamvm; then |
268 |
- use_jamvm="yes" |
269 |
- fi |
270 |
- |
271 |
- # Use CACAO if requested |
272 |
- if use cacao; then |
273 |
- use_cacao="yes" |
274 |
- fi |
275 |
- |
276 |
- # Are we on a architecture with a HotSpot port? |
277 |
- # In-tree JIT ports are available for amd64, arm, arm64, ppc64 (be&le), SPARC and x86. |
278 |
- if { use amd64 || use arm || use arm64 || use ppc64 || use sparc || use x86; }; then |
279 |
- hotspot_port="yes" |
280 |
- # Work around stack alignment issue, bug #647954. |
281 |
- use x86 && append-flags -mincoming-stack-boundary=2 |
282 |
- fi |
283 |
- |
284 |
- # Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ... |
285 |
- # Otherwise use Zero for now until alternate VMs are working |
286 |
- if test "x${hotspot_port}" != "xyes"; then |
287 |
- use_zero="yes" |
288 |
- fi |
289 |
- |
290 |
- if use shenandoah; then |
291 |
- if { use amd64 || use arm64; }; then |
292 |
- hs_config="--with-hotspot-build=shenandoah" |
293 |
- hs_config+=" --with-hotspot-src-zip="${DISTDIR}/${SHENANDOAH_GENTOO_TARBALL}"" |
294 |
- else |
295 |
- eerror "Shenandoah is only supported on arm64 and x86_64. Please re-build with USE="-shenandoah"" |
296 |
- fi |
297 |
- else |
298 |
- if use arm ; then |
299 |
- hs_config="--with-hotspot-src-zip="${DISTDIR}/${AARCH32_GENTOO_TARBALL}"" |
300 |
- else |
301 |
- hs_config="--with-hotspot-src-zip="${DISTDIR}/${HOTSPOT_GENTOO_TARBALL}"" |
302 |
- fi |
303 |
- fi |
304 |
- |
305 |
- # Turn on JamVM if needed (non-HS archs) or requested |
306 |
- if test "x${use_jamvm}" = "xyes"; then |
307 |
- if test "x${hotspot_port}" = "xyes"; then |
308 |
- ewarn 'Enabling JamVM on an architecture with HotSpot support; issues may result.' |
309 |
- ewarn 'If so, please rebuild with USE="-jamvm"' |
310 |
- fi |
311 |
- ewarn 'JamVM is known to still have issues with IcedTea 3.x; please rebuild with USE="-jamvm"' |
312 |
- jamvm_config="--enable-jamvm" |
313 |
- fi |
314 |
- |
315 |
- # Turn on CACAO if needed (non-HS archs) or requested |
316 |
- if test "x${use_cacao}" = "xyes"; then |
317 |
- if test "x${hotspot_port}" = "xyes"; then |
318 |
- ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.' |
319 |
- ewarn 'If so, please rebuild with USE="-cacao"' |
320 |
- fi |
321 |
- ewarn 'CACAO is known to still have issues with IcedTea 3.x; please rebuild with USE="-cacao"' |
322 |
- cacao_config="--enable-cacao" |
323 |
- fi |
324 |
- |
325 |
- # Turn on Zero if needed (non-HS/CACAO archs) or requested |
326 |
- if test "x${use_zero}" = "xyes"; then |
327 |
- if test "x${hotspot_port}" = "xyes"; then |
328 |
- ewarn 'Enabling Zero on an architecture with HotSpot support; performance will be significantly reduced.' |
329 |
- fi |
330 |
- zero_config="--enable-zero" |
331 |
- fi |
332 |
- |
333 |
- # PaX breaks pch, bug #601016 |
334 |
- if use pch && ! host-is-pax; then |
335 |
- config+=" --enable-precompiled-headers" |
336 |
- else |
337 |
- config+=" --disable-precompiled-headers" |
338 |
- fi |
339 |
- |
340 |
- config+=" --with-parallel-jobs=$(makeopts_jobs)" |
341 |
- |
342 |
- unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS |
343 |
- |
344 |
- econf ${config} \ |
345 |
- --with-openjdk-src-zip="${DISTDIR}/${OPENJDK_GENTOO_TARBALL}" \ |
346 |
- --with-corba-src-zip="${DISTDIR}/${CORBA_GENTOO_TARBALL}" \ |
347 |
- --with-jaxp-src-zip="${DISTDIR}/${JAXP_GENTOO_TARBALL}" \ |
348 |
- --with-jaxws-src-zip="${DISTDIR}/${JAXWS_GENTOO_TARBALL}" \ |
349 |
- --with-jdk-src-zip="${DISTDIR}/${JDK_GENTOO_TARBALL}" \ |
350 |
- --with-langtools-src-zip="${DISTDIR}/${LANGTOOLS_GENTOO_TARBALL}" \ |
351 |
- --with-nashorn-src-zip="${DISTDIR}/${NASHORN_GENTOO_TARBALL}" \ |
352 |
- --with-cacao-src-zip="${DISTDIR}/${CACAO_GENTOO_TARBALL}" \ |
353 |
- --with-jamvm-src-zip="${DISTDIR}/${JAMVM_GENTOO_TARBALL}" \ |
354 |
- --with-jdk-home="$(java-config -O)" \ |
355 |
- --prefix="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}" \ |
356 |
- --mandir="${EPREFIX}/usr/$(get_libdir)/icedtea${SLOT}/man" \ |
357 |
- --with-pkgversion="Gentoo ${PF}" \ |
358 |
- --disable-ccache \ |
359 |
- --disable-downloading --disable-Werror --disable-tests \ |
360 |
- --disable-systemtap-tests --enable-improved-font-rendering \ |
361 |
- --enable-system-jpeg --enable-system-zlib \ |
362 |
- $(use_enable headless-awt headless) \ |
363 |
- $(use_enable !headless-awt system-gif) \ |
364 |
- $(use_enable !headless-awt system-png) \ |
365 |
- $(use_enable doc docs) \ |
366 |
- $(use_enable kerberos system-kerberos) \ |
367 |
- $(use_enable system-lcms) \ |
368 |
- $(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh") \ |
369 |
- $(use_enable sctp system-sctp) \ |
370 |
- $(use_enable smartcard system-pcsc) \ |
371 |
- ${zero_config} ${cacao_config} ${jamvm_config} ${hs_config} |
372 |
-} |
373 |
- |
374 |
-src_compile() { |
375 |
- default |
376 |
-} |
377 |
- |
378 |
-src_test() { |
379 |
- default |
380 |
-} |
381 |
- |
382 |
-src_install() { |
383 |
- default |
384 |
- |
385 |
- local dest="/usr/$(get_libdir)/icedtea${SLOT}" |
386 |
- local ddest="${ED}${dest#/}" |
387 |
- |
388 |
- if ! use alsa; then |
389 |
- rm -v "${ddest}"/jre/lib/$(get_system_arch)/libjsoundalsa.* || die |
390 |
- fi |
391 |
- |
392 |
- if ! use examples; then |
393 |
- rm -r "${ddest}"/demo "${ddest}"/sample || die |
394 |
- fi |
395 |
- |
396 |
- if ! use source; then |
397 |
- rm -v "${ddest}"/src.zip || die |
398 |
- fi |
399 |
- |
400 |
- dosym ../../../usr/share/doc/"${PF}" usr/share/doc/"${PN}${SLOT}" |
401 |
- |
402 |
- # Fix the permissions. |
403 |
- find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die |
404 |
- |
405 |
- dosym ../../../../../../etc/ssl/certs/java/cacerts "${dest}"/jre/lib/security/cacerts |
406 |
- |
407 |
- java-vm_install-env "${FILESDIR}/icedtea.env.sh" |
408 |
- java-vm_sandbox-predict /proc/self/coredump_filter |
409 |
-} |
410 |
- |
411 |
-pkg_postinst() { |
412 |
- xdg_icon_cache_update |
413 |
- java-vm-2_pkg_postinst |
414 |
- einfo "JavaWebStart functionality provided by icedtea-web package" |
415 |
-} |
416 |
- |
417 |
-pkg_postrm() { |
418 |
- xdg_icon_cache_update |
419 |
- java-vm-2_pkg_postrm |
420 |
-} |