Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/sun-jre-bin: ChangeLog sun-jre-bin-1.6.0.19.ebuild
Date: Tue, 30 Mar 2010 20:27:13
Message-Id: E1Nwi1j-00085k-Cz@stork.gentoo.org
1 caster 10/03/30 20:27:07
2
3 Modified: ChangeLog
4 Added: sun-jre-bin-1.6.0.19.ebuild
5 Log:
6 Version bump, security bug #306579.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.170 dev-java/sun-jre-bin/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.170&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.170&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.169&r2=1.170
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v
19 retrieving revision 1.169
20 retrieving revision 1.170
21 diff -u -r1.169 -r1.170
22 --- ChangeLog 30 Mar 2010 17:48:53 -0000 1.169
23 +++ ChangeLog 30 Mar 2010 20:27:07 -0000 1.170
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/sun-jre-bin
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.169 2010/03/30 17:48:53 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.170 2010/03/30 20:27:07 caster Exp $
29 +
30 +*sun-jre-bin-1.6.0.19 (30 Mar 2010)
31 +
32 + 30 Mar 2010; Vlastimil Babka <caster@g.o>
33 + +sun-jre-bin-1.6.0.19.ebuild:
34 + Version bump, security bug #306579.
35
36 30 Mar 2010; Christian Faulhammer <fauli@g.o>
37 sun-jre-bin-1.6.0.18-r1.ebuild:
38
39
40
41 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.19.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.19.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.19.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sun-jre-bin-1.6.0.19.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.19.ebuild,v 1.1 2010/03/30 20:27:07 caster Exp $
51
52 inherit versionator pax-utils eutils java-vm-2
53
54 UPDATE="$(get_version_component_range 4)"
55 UPDATE="${UPDATE#0}"
56 MY_PV="$(get_version_component_range 2)u${UPDATE}"
57
58 SUFFIX=".bin"
59 X86_AT="jdk-${MY_PV}-dlj-linux-i586${SUFFIX}"
60 AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64${SUFFIX}"
61
62 DESCRIPTION="Sun's Java SE Runtime Environment"
63 HOMEPAGE="http://java.sun.com/javase/6/"
64 URL_BASE="http://download.java.net/dlj/binaries"
65 SRC_URI="x86? ( ${URL_BASE}/${X86_AT} )
66 amd64? ( ${URL_BASE}/${AMD64_AT} )"
67 SLOT="1.6"
68 LICENSE="dlj-1.1"
69 KEYWORDS="-* ~amd64 ~x86"
70 RESTRICT="strip"
71 IUSE="X alsa jce nsplugin odbc"
72
73 DEPEND="jce? ( =dev-java/sun-jce-bin-1.6.0* )"
74 RDEPEND="${DEPEND}
75 sys-libs/glibc
76 x86? ( =virtual/libstdc++-3.3 )
77 alsa? ( media-libs/alsa-lib )
78 X? (
79 x11-libs/libXext
80 x11-libs/libXi
81 x11-libs/libXp
82 x11-libs/libXtst
83 amd64? ( x11-libs/libXt )
84 x11-libs/libX11
85 )
86 odbc? ( dev-db/unixODBC )"
87
88 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
89
90 QA_TEXTRELS_x86="opt/${P}/lib/i386/client/libjvm.so
91 opt/${P}/lib/i386/motif21/libmawt.so
92 opt/${P}/lib/i386/libdeploy.so
93 opt/${P}/lib/i386/server/libjvm.so"
94
95 src_unpack() {
96 mkdir bundled-jdk
97 cd bundled-jdk
98 sh "${DISTDIR}"/${A} --accept-license --unpack || die "Failed to unpack"
99
100 cd ..
101 bash "${FILESDIR}/construct-1.6.sh" bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed"
102 }
103
104 src_compile() {
105 # Set PaX markings on all JDK/JRE executables to allow code-generation on
106 # the heap by the JIT compiler. This has to be done before CDS - #215225
107 pax-mark m $(list-paxables "${S}"/bin/*)
108
109 # see bug #207282
110 if use x86; then
111 einfo "Creating the Class Data Sharing archives"
112 "${S}"/bin/java -client -Xshare:dump || die
113 "${S}"/bin/java -server -Xshare:dump || die
114 fi
115 }
116
117 src_install() {
118 local dirs="bin lib man"
119
120 # only X86 has the plugin and javaws
121 use x86 && dirs="${dirs} javaws plugin"
122 dodir /opt/${P}
123
124 cp -pPR $dirs "${D}/opt/${P}/" || die "failed to copy"
125
126 dodoc README THIRDPARTYLICENSEREADME.txt || die
127 dohtml Welcome.html || die
128 dodir /opt/${P}/share/
129
130 if use jce; then
131 cd "${D}/opt/${P}/lib/security"
132 dodir /opt/${P}/lib/security/strong-jce
133 mv "${D}"/opt/${P}/lib/security/US_export_policy.jar \
134 "${D}"/opt/${P}/lib/security/strong-jce || die
135 mv "${D}"/opt/${P}/lib/security/local_policy.jar \
136 "${D}"/opt/${P}/lib/security/strong-jce || die
137 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/lib/security/
138 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/lib/security/
139 fi
140
141 if use nsplugin; then
142 local plugin_dir="ns7-gcc29"
143 if has_version '>=sys-devel/gcc-3' ; then
144 plugin_dir="ns7"
145 fi
146
147 if use x86 ; then
148 install_mozilla_plugin /opt/${P}/lib/i386/libnpjp2.so
149 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so old_oji
150 else
151 install_mozilla_plugin /opt/${P}/lib/amd64/libnpjp2.so
152 fi
153 fi
154
155 # install control panel for Gnome/KDE
156 if [[ -e "${D}/opt/${P}/plugin/desktop/sun_java.desktop" ]]; then
157 sed -e "s/\(Name=Java\)/\1 Control Panel for Sun JRE ${SLOT}/" \
158 -e "s#Exec=.*#Exec=/opt/${P}/bin/ControlPanel#" \
159 -e "s#Icon=.*#Icon=/opt/${P}/plugin/desktop/sun_java.png#" \
160 "${D}/opt/${P}/plugin/desktop/sun_java.desktop" > \
161 "${T}/sun_jre-${SLOT}.desktop" || die
162 domenu "${T}/sun_jre-${SLOT}.desktop" || die
163 fi
164
165 # bug #56444
166 insinto /opt/${P}/lib/
167 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
168
169 set_java_env
170 java-vm_revdep-mask
171 }
172
173 pkg_postinst() {
174 # Set as default VM if none exists
175 java-vm-2_pkg_postinst
176
177 if use x86 && use nsplugin; then
178 elog
179 elog "Two variants of the nsplugin are available via eselect java-nsplugin:"
180 elog "Note that starting with ${PN}-1.6.0.18-r1 their naming and the default changed,"
181 elog "users with the old plugin set are switched to the new default automatically."
182 elog "The default ${VMHANDLE} is the new 'plugin2' which works in Firefox 3 (xulrunner-1.9)"
183 elog "and newer, the ${VMHANDLE}-old_oji is the old plugin using the OJI API"
184 elog "that was removed in Firefox 3.6 (xulrunner-1.9.2)."
185 elog "For more info see https://jdk6.dev.java.net/plugin2/"
186 elog
187 fi
188
189 if use amd64 && use nsplugin; then
190 elog
191 elog "The amd64 version ships the new 'plugin2' browser plugin which works"
192 elog "in Firefox 3+ and other recent browser versions."
193 elog "For more info see https://jdk6.dev.java.net/plugin2/"
194 elog
195 fi
196 }