1 |
commit: 22f3d7717f61f7303b279e5e99756c5efd25ba95 |
2 |
Author: Philipp Ammann <philipp.ammann <AT> posteo <DOT> de> |
3 |
AuthorDate: Fri Oct 19 13:13:11 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 19 14:33:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22f3d771 |
7 |
|
8 |
dev-java/oracle-jre-bin: version bump to 1.8.0.192 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/668948 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/10178 |
12 |
Signed-off-by: Philipp Ammann <philipp.ammann <AT> posteo.de> |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
|
16 |
dev-java/oracle-jre-bin/Manifest | 2 + |
17 |
.../oracle-jre-bin/oracle-jre-bin-1.8.0.192.ebuild | 220 +++++++++++++++++++++ |
18 |
2 files changed, 222 insertions(+) |
19 |
|
20 |
diff --git a/dev-java/oracle-jre-bin/Manifest b/dev-java/oracle-jre-bin/Manifest |
21 |
index d24d85db95c..3c021774897 100644 |
22 |
--- a/dev-java/oracle-jre-bin/Manifest |
23 |
+++ b/dev-java/oracle-jre-bin/Manifest |
24 |
@@ -1,5 +1,7 @@ |
25 |
DIST jre-8u181-linux-i586.tar.gz 84309787 BLAKE2B 3aa9f47698a35ca91bbc61d2f3ec43f5ee626b74fb913eb11be8e1478d8aad780b5ea672de4dcb6bd6c598058786d26d491d01a45d5f3cb5044d1f48db26c7d6 SHA512 86e4532248e383f6bca875bf039f4f852b79260b4d5affbbd5deb9cf2ea3e585ced9f1fe054526529dcc3dfbe031a829df078a7591dbc3cf3da7913703de7231 |
26 |
DIST jre-8u181-linux-x64.tar.gz 81191893 BLAKE2B c29d638b7dae9cc58d9de6e43f1af397cab04786045e4956d05cd8c3825af1f27e8a77b42a9d4b9d8ab7d15aa5b94349fd8c98ca37fadb271dc0bd868d513491 SHA512 dea7bc79210d23ddc58a7013bea8386169b9ab6c156995a2190dac298919c933641639173cf3426730b248004767449c5a62057d6736f897831d8c86b36c5bed |
27 |
+DIST jre-8u192-linux-i586.tar.gz 87804679 BLAKE2B bb1dea51f0d45dcd3aabc82668790ee274c83f2e3c596d836d7b57c971ff6535881849cce5757132fed1b537a4a9677fbbb0b8b003d423d26ee72cb71047428f SHA512 5c749f358aa5b55513765eeb52dd2e0d3cb2b3223cc93739aa36445af8c6a3171a01cab673e106312e816c0a3b584a8a1be4aed1e2662e86b6d318d86a135485 |
28 |
+DIST jre-8u192-linux-x64.tar.gz 84597342 BLAKE2B 655db641df8349109e2944838f16f37ea208772580f0753e664a0642649745c123b2a781497ca3b9028f55c0bd2816cb5746d7d1d04cc83bb536ca0b467a4fc0 SHA512 d786f9e032bc286f3d4f361c382b6606c7462240b191d04606ca5ed9e59e3d7703cbaf1d57693c6763d00374c76c99cdb2f58c0bc372ef5c14c6304d556b4c8a |
29 |
DIST jre-9.0.4_linux-x64_bin.tar.gz 87045353 BLAKE2B ccf3c0d725ca1431261a0b38cc06851fc10651415982fa2d97f512972c088c2c158ee51710b59e04f89326dd4cbb4c1ef8ecf514af190fbdc2be07cd222fd5d8 SHA512 20310fe68c89d26a89523eb1fe583eb5706fe2458342f5be0dfb4badd1d9df6ba25b00463f080fceb7c22781ff1555a61b29d187d8b02e1f9e165120b8140c3b |
30 |
DIST jre-9.0.4_osx-x64_bin.tar.gz 74599903 BLAKE2B a1bd4d51ee645347fcb735e46ee3311d34933bb0dbb20b9a668ed7b817be1d0432f4152f53f57a9fc16d6b6b7f38ea4118f5cae86a8b71143db0091c9baf62de SHA512 fc4bc4a062313a7e33943ace27287ba6e551727f0cf81d9a18f9f8c2f57b0ae00bd0d8619a65f596d75d4869fea757fedae3efdd8ba3ced58fa28b7cf93b3a85 |
31 |
DIST jre-9.0.4_solaris-sparcv9_bin.tar.gz 54879298 BLAKE2B fb3ce1eefdb12378b28f5af0f0bbc1d9f3252eee5646be237b2ddc0ead37ed253fb73900475777c3f67d39b47112e0c2db2a18f6a05da7c5c19cd965e5513827 SHA512 709219f51d7455c127a38953babad39b344dee1275ad0fe65a0116e8fb15a10482589ba881ccae7910acff8f00aa7856c726c03daa8f3947d742bbbc09a276dd |
32 |
|
33 |
diff --git a/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.192.ebuild b/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.192.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..5c6399a9039 |
36 |
--- /dev/null |
37 |
+++ b/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.192.ebuild |
38 |
@@ -0,0 +1,220 @@ |
39 |
+# Copyright 1999-2018 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=6 |
43 |
+ |
44 |
+inherit desktop gnome2-utils java-vm-2 prefix versionator |
45 |
+ |
46 |
+KEYWORDS="-* ~amd64 ~x86" |
47 |
+ |
48 |
+if [[ "$(get_version_component_range 4)" == 0 ]] ; then |
49 |
+ S_PV="$(get_version_component_range 1-3)" |
50 |
+else |
51 |
+ MY_PV_EXT="u$(get_version_component_range 4)" |
52 |
+ S_PV="$(get_version_component_range 1-4)" |
53 |
+fi |
54 |
+ |
55 |
+MY_PV="$(get_version_component_range 2)${MY_PV_EXT}" |
56 |
+ |
57 |
+declare -A ARCH_FILES |
58 |
+ARCH_FILES[amd64]="jre-${MY_PV}-linux-x64.tar.gz" |
59 |
+ARCH_FILES[x86]="jre-${MY_PV}-linux-i586.tar.gz" |
60 |
+ |
61 |
+for keyword in ${KEYWORDS//-\*} ; do |
62 |
+ SRC_URI+=" ${keyword#\~}? ( ${ARCH_FILES[${keyword#\~}]} )" |
63 |
+done |
64 |
+ |
65 |
+DESCRIPTION="Oracle's Java SE Runtime Environment" |
66 |
+HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" |
67 |
+LICENSE="Oracle-BCLA-JavaSE" |
68 |
+SLOT="1.8" |
69 |
+IUSE="alsa commercial cups +fontconfig headless-awt javafx jce nsplugin selinux" |
70 |
+RESTRICT="fetch preserve-libs strip" |
71 |
+QA_PREBUILT="*" |
72 |
+ |
73 |
+# NOTES: |
74 |
+# |
75 |
+# * cups is dlopened. |
76 |
+# |
77 |
+# * libpng is also dlopened but only by libsplashscreen, which isn't |
78 |
+# important, so we can exclude that. |
79 |
+# |
80 |
+# * We still need to work out the exact AWT and JavaFX dependencies |
81 |
+# under MacOS. It doesn't appear to use many, if any, of the |
82 |
+# dependencies below. |
83 |
+# |
84 |
+RDEPEND="!x64-macos? ( |
85 |
+ !headless-awt? ( |
86 |
+ x11-libs/libX11 |
87 |
+ x11-libs/libXext |
88 |
+ x11-libs/libXi |
89 |
+ x11-libs/libXrender |
90 |
+ x11-libs/libXtst |
91 |
+ ) |
92 |
+ javafx? ( |
93 |
+ dev-libs/glib:2 |
94 |
+ dev-libs/libxml2:2 |
95 |
+ dev-libs/libxslt |
96 |
+ media-libs/freetype:2 |
97 |
+ x11-libs/cairo |
98 |
+ x11-libs/gtk+:2 |
99 |
+ x11-libs/libX11 |
100 |
+ x11-libs/libXtst |
101 |
+ x11-libs/libXxf86vm |
102 |
+ x11-libs/pango |
103 |
+ virtual/opengl |
104 |
+ ) |
105 |
+ ) |
106 |
+ alsa? ( media-libs/alsa-lib ) |
107 |
+ cups? ( net-print/cups ) |
108 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
109 |
+ !prefix? ( sys-libs/glibc:* ) |
110 |
+ selinux? ( sec-policy/selinux-java )" |
111 |
+ |
112 |
+DEPEND="app-arch/zip" |
113 |
+ |
114 |
+S="${WORKDIR}/jre$(replace_version_separator 3 _ ${S_PV})" |
115 |
+ |
116 |
+pkg_nofetch() { |
117 |
+ einfo "Please download ${ARCH_FILES[${ARCH}]} and move it to" |
118 |
+ einfo "your distfiles directory:" |
119 |
+ einfo |
120 |
+ einfo " http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html" |
121 |
+ einfo |
122 |
+ einfo "If the above mentioned URL does not point to the correct version anymore," |
123 |
+ einfo "please download the file from Oracle's Java download archive:" |
124 |
+ einfo |
125 |
+ einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html" |
126 |
+ einfo |
127 |
+} |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ default |
131 |
+ |
132 |
+ # Remove the hook that calls Oracle's evil usage tracker. Not just |
133 |
+ # because it's evil but because it breaks the sandbox during builds |
134 |
+ # and we can't find any other feasible way to disable it or make it |
135 |
+ # write somewhere else. See bug #559936 for details. |
136 |
+ zip -d lib/rt.jar sun/misc/PostVMInitHook.class || die |
137 |
+} |
138 |
+ |
139 |
+src_install() { |
140 |
+ local dest="/opt/${P}" |
141 |
+ local ddest="${ED}${dest#/}" |
142 |
+ |
143 |
+ # Create files used as storage for system preferences. |
144 |
+ mkdir .systemPrefs || die |
145 |
+ touch .systemPrefs/.system.lock || die |
146 |
+ touch .systemPrefs/.systemRootModFile || die |
147 |
+ |
148 |
+ if ! use alsa ; then |
149 |
+ rm -vf lib/*/libjsoundalsa.* || die |
150 |
+ fi |
151 |
+ |
152 |
+ if ! use commercial ; then |
153 |
+ rm -vfr lib/jfr* || die |
154 |
+ fi |
155 |
+ |
156 |
+ if use headless-awt ; then |
157 |
+ rm -vf lib/*/lib*{[jx]awt,splashscreen}* \ |
158 |
+ bin/{javaws,policytool} || die |
159 |
+ fi |
160 |
+ |
161 |
+ if ! use javafx ; then |
162 |
+ rm -vf lib/*/lib*{decora,fx,glass,prism}* \ |
163 |
+ lib/*/libgstreamer-lite.* lib/{,ext/}*fx* || die |
164 |
+ fi |
165 |
+ |
166 |
+ if ! use nsplugin ; then |
167 |
+ rm -vf lib/*/libnpjp2.* || die |
168 |
+ else |
169 |
+ local nsplugin=$(echo lib/*/libnpjp2.*) |
170 |
+ local nsplugin_link=${nsplugin##*/} |
171 |
+ nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.} |
172 |
+ dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}" |
173 |
+ fi |
174 |
+ |
175 |
+ # Even though plugins linked against multiple ffmpeg versions are |
176 |
+ # provided, they generally lag behind what Gentoo has available. |
177 |
+ rm -vf lib/*/libavplugin* || die |
178 |
+ |
179 |
+ # Prune all fontconfig files so that libfontconfig will be used. |
180 |
+ rm -v lib/fontconfig.* || die |
181 |
+ |
182 |
+ # Install desktop file for the Java Control Panel. Using |
183 |
+ # ${PN}-${SLOT} to prevent file collision with JDK and other slots. |
184 |
+ if [[ -d lib/desktop/icons ]] ; then |
185 |
+ local icon |
186 |
+ pushd lib/desktop/icons >/dev/null || die |
187 |
+ for icon in */*/apps/sun-jcontrol.png ; do |
188 |
+ insinto /usr/share/icons/"${icon%/*}" |
189 |
+ newins "${icon}" sun-jcontrol-${PN}-${SLOT}.png |
190 |
+ done |
191 |
+ popd >/dev/null || die |
192 |
+ make_desktop_entry \ |
193 |
+ "${dest}"/bin/jcontrol \ |
194 |
+ "Java Control Panel for Oracle JRE ${SLOT}" \ |
195 |
+ sun-jcontrol-${PN}-${SLOT} \ |
196 |
+ "Settings;Java;" |
197 |
+ fi |
198 |
+ |
199 |
+ dodoc COPYRIGHT |
200 |
+ dodir "${dest}" |
201 |
+ cp -pPR bin lib man "${ddest}" || die |
202 |
+ |
203 |
+ ln -s policy/$(usex jce unlimited limited)/{US_export,local}_policy.jar \ |
204 |
+ "${ddest}"/lib/security/ || die |
205 |
+ |
206 |
+ # Only install Gentoo-specific fontconfig if flag is disabled. |
207 |
+ # https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html |
208 |
+ if ! use fontconfig ; then |
209 |
+ insinto "${dest}"/lib/ |
210 |
+ doins "$(prefixify_ro "${FILESDIR}"/fontconfig.properties)" |
211 |
+ fi |
212 |
+ |
213 |
+ # Needs to be done before CDS, bug #215225. |
214 |
+ java-vm_set-pax-markings "${ddest}" |
215 |
+ |
216 |
+ # See bug #207282. |
217 |
+ einfo "Creating the Class Data Sharing archives" |
218 |
+ case ${ARCH} in |
219 |
+ arm|ia64) |
220 |
+ ${ddest}/bin/java -client -Xshare:dump || die |
221 |
+ ;; |
222 |
+ x86) |
223 |
+ ${ddest}/bin/java -client -Xshare:dump || die |
224 |
+ # limit heap size for large memory on x86 #467518 |
225 |
+ # this is a workaround and shouldn't be needed. |
226 |
+ ${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die |
227 |
+ ;; |
228 |
+ *) |
229 |
+ ${ddest}/bin/java -server -Xshare:dump || die |
230 |
+ ;; |
231 |
+ esac |
232 |
+ |
233 |
+ # Remove empty dirs we might have copied. |
234 |
+ find "${D}" -type d -empty -exec rmdir -v {} + || die |
235 |
+ |
236 |
+ java-vm_install-env "${FILESDIR}"/${PN}.env.sh |
237 |
+ java-vm_revdep-mask |
238 |
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
239 |
+} |
240 |
+ |
241 |
+pkg_preinst() { |
242 |
+ gnome2_icon_savelist |
243 |
+} |
244 |
+ |
245 |
+pkg_postinst() { |
246 |
+ gnome2_icon_cache_update |
247 |
+ java-vm-2_pkg_postinst |
248 |
+ |
249 |
+ if ! use headless-awt && ! use javafx ; then |
250 |
+ ewarn "You have disabled the javafx flag. Some modern desktop Java applications" |
251 |
+ ewarn "require this and they may fail with a confusing error message." |
252 |
+ fi |
253 |
+} |
254 |
+ |
255 |
+pkg_postrm() { |
256 |
+ gnome2_icon_cache_update |
257 |
+ java-vm-2_pkg_postrm |
258 |
+} |