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