1 |
sera 13/03/06 09:27:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sun-jre-bin-1.6.0.43.ebuild |
5 |
Removed: sun-jre-bin-1.6.0.39.ebuild |
6 |
Log: |
7 |
Security bump. #460360 |
8 |
|
9 |
(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 3C5CF75A) |
10 |
|
11 |
Revision Changes Path |
12 |
1.236 dev-java/sun-jre-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.236&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.236&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.235&r2=1.236 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v |
21 |
retrieving revision 1.235 |
22 |
retrieving revision 1.236 |
23 |
diff -u -r1.235 -r1.236 |
24 |
--- ChangeLog 24 Feb 2013 08:30:08 -0000 1.235 |
25 |
+++ ChangeLog 6 Mar 2013 09:27:03 -0000 1.236 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-java/sun-jre-bin |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.235 2013/02/24 08:30:08 sera Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.236 2013/03/06 09:27:03 sera Exp $ |
31 |
+ |
32 |
+*sun-jre-bin-1.6.0.43 (06 Mar 2013) |
33 |
+ |
34 |
+ 06 Mar 2013; Ralph Sennhauser <sera@g.o> -sun-jre-bin-1.6.0.39.ebuild, |
35 |
+ +sun-jre-bin-1.6.0.43.ebuild: |
36 |
+ Security bump. #460360 |
37 |
|
38 |
24 Feb 2013; Ralph Sennhauser <sera@g.o> sun-jre-bin-1.6.0.41.ebuild: |
39 |
Mark stable for amd64 and x86 wrt #458444 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.43.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.43.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.43.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: sun-jre-bin-1.6.0.43.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.43.ebuild,v 1.1 2013/03/06 09:27:03 sera Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
inherit java-vm-2 eutils prefix versionator |
57 |
|
58 |
# This URIs need to be updated when bumping! |
59 |
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html" |
60 |
|
61 |
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)" |
62 |
S_PV="$(replace_version_separator 3 '_')" |
63 |
|
64 |
X86_AT="jre-${MY_PV}-linux-i586.bin" |
65 |
AMD64_AT="jre-${MY_PV}-linux-x64.bin" |
66 |
IA64_AT="jre-${MY_PV}-linux-ia64.bin" |
67 |
|
68 |
DESCRIPTION="Oracle's Java SE Runtime Environment" |
69 |
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" |
70 |
SRC_URI=" |
71 |
amd64? ( ${AMD64_AT} ) |
72 |
ia64? ( ${IA64_AT} ) |
73 |
x86? ( ${X86_AT} )" |
74 |
|
75 |
LICENSE="Oracle-BCLA-JavaSE" |
76 |
SLOT="1.6" |
77 |
KEYWORDS="~amd64 ~x86" |
78 |
IUSE="X alsa jce nsplugin pax_kernel" |
79 |
|
80 |
RESTRICT="fetch strip" |
81 |
QA_PREBUILT="*" |
82 |
|
83 |
RDEPEND=" |
84 |
X? ( |
85 |
x11-libs/libXext |
86 |
x11-libs/libXi |
87 |
x11-libs/libXrender |
88 |
x11-libs/libXtst |
89 |
x11-libs/libX11 |
90 |
) |
91 |
alsa? ( media-libs/alsa-lib ) |
92 |
jce? ( dev-java/sun-jce-bin:1.6 ) |
93 |
!prefix? ( sys-libs/glibc )" |
94 |
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback |
95 |
# marking. #427642 |
96 |
DEPEND=" |
97 |
pax_kernel? ( sys-apps/paxctl )" |
98 |
|
99 |
S="${WORKDIR}/jre${S_PV}" |
100 |
|
101 |
pkg_nofetch() { |
102 |
if use x86; then |
103 |
AT=${X86_AT} |
104 |
elif use amd64; then |
105 |
AT=${AMD64_AT} |
106 |
elif use ia64; then |
107 |
AT=${IA64_AT} |
108 |
fi |
109 |
|
110 |
einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package" |
111 |
einfo "has become fetch restricted again. Alternatives are switching to" |
112 |
einfo "dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6" |
113 |
einfo "" |
114 |
einfo "Please download '${AT}' from:" |
115 |
einfo "'${JRE_URI}'" |
116 |
einfo "and move it to '${DISTDIR}'" |
117 |
} |
118 |
|
119 |
src_unpack() { |
120 |
sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack" |
121 |
} |
122 |
|
123 |
src_compile() { |
124 |
# This needs to be done before CDS - #215225 |
125 |
java-vm_set-pax-markings "${S}" |
126 |
|
127 |
# see bug #207282 |
128 |
einfo "Creating the Class Data Sharing archives" |
129 |
if use x86; then |
130 |
bin/java -client -Xshare:dump || die |
131 |
fi |
132 |
# limit heap size for large memory on x86 #405239 |
133 |
# this is a workaround and shouldn't be needed. |
134 |
bin/java -server -Xmx64m -Xshare:dump || die |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
local dest="/opt/${P}" |
139 |
local ddest="${ED}${dest}" |
140 |
|
141 |
# We should not need the ancient plugin for Firefox 2 anymore, plus it has |
142 |
# writable executable segments |
143 |
if use x86; then |
144 |
rm -vf lib/i386/libjavaplugin_oji.so \ |
145 |
lib/i386/libjavaplugin_nscp*.so |
146 |
rm -vrf plugin/i386 |
147 |
fi |
148 |
# Without nsplugin flag, also remove the new plugin |
149 |
local arch=${ARCH}; |
150 |
use x86 && arch=i386; |
151 |
if ! use nsplugin; then |
152 |
rm -vf lib/${arch}/libnpjp2.so \ |
153 |
lib/${arch}/libjavaplugin_jni.so |
154 |
fi |
155 |
|
156 |
dodir "${dest}" |
157 |
cp -pPR bin lib man "${ddest}" || die |
158 |
|
159 |
# Remove empty dirs we might have copied |
160 |
find "${D}" -type d -empty -exec rmdir {} + || die |
161 |
|
162 |
dodoc COPYRIGHT README |
163 |
|
164 |
if use jce; then |
165 |
dodir "${dest}"/lib/security/strong-jce |
166 |
mv "${ddest}"/lib/security/US_export_policy.jar \ |
167 |
"${ddest}"/lib/security/strong-jce || die |
168 |
mv "${ddest}"/lib/security/local_policy.jar \ |
169 |
"${ddest}"/lib/security/strong-jce || die |
170 |
dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar \ |
171 |
"${dest}"/lib/security/US_export_policy.jar |
172 |
dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar \ |
173 |
"${dest}"/lib/security/local_policy.jar |
174 |
fi |
175 |
|
176 |
if use nsplugin; then |
177 |
install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so |
178 |
fi |
179 |
|
180 |
# Install desktop file for the Java Control Panel. |
181 |
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots. |
182 |
# make_desktop_entry can't be used as ${P} would end up in filename. |
183 |
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \ |
184 |
sun-jcontrol-${PN}-${SLOT}.png || die |
185 |
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (${PN})#" \ |
186 |
-e "s#Exec=.*#Exec=${dest}/bin/jcontrol#" \ |
187 |
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \ |
188 |
-e "s#Application;##" \ |
189 |
-e "/Encoding/d" \ |
190 |
lib/desktop/applications/sun_java.desktop > \ |
191 |
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die |
192 |
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop |
193 |
|
194 |
# http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html |
195 |
rm "${ddest}"/lib/fontconfig.* || die |
196 |
cp "${FILESDIR}"/fontconfig.Gentoo.properties-r1 "${T}"/fontconfig.properties || die |
197 |
eprefixify "${T}"/fontconfig.properties |
198 |
insinto "${dest}"/lib/ |
199 |
doins "${T}"/fontconfig.properties |
200 |
|
201 |
set_java_env "${FILESDIR}/${VMHANDLE}.env-r1" |
202 |
java-vm_revdep-mask |
203 |
} |
204 |
|
205 |
pkg_postinst() { |
206 |
java-vm-2_pkg_postinst |
207 |
|
208 |
elog "If you want Oracles JRE 7 'emerge oracle-jre-bin' instead." |
209 |
} |