Gentoo Archives: gentoo-commits

From: "Ralph Sennhauser (sera)" <sera@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/emul-linux-x86-java: ChangeLog emul-linux-x86-java-1.6.0.43.ebuild emul-linux-x86-java-1.6.0.39.ebuild
Date: Wed, 06 Mar 2013 09:33:13
Message-Id: 20130306093309.C2D212171D@flycatcher.gentoo.org
1 sera 13/03/06 09:33:09
2
3 Modified: ChangeLog
4 Added: emul-linux-x86-java-1.6.0.43.ebuild
5 Removed: emul-linux-x86-java-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.127 app-emulation/emul-linux-x86-java/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.127&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.127&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?r1=1.126&r2=1.127
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v
21 retrieving revision 1.126
22 retrieving revision 1.127
23 diff -u -r1.126 -r1.127
24 --- ChangeLog 24 Feb 2013 08:23:51 -0000 1.126
25 +++ ChangeLog 6 Mar 2013 09:33:09 -0000 1.127
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-emulation/emul-linux-x86-java
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.126 2013/02/24 08:23:51 sera Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.127 2013/03/06 09:33:09 sera Exp $
31 +
32 +*emul-linux-x86-java-1.6.0.43 (06 Mar 2013)
33 +
34 + 06 Mar 2013; Ralph Sennhauser <sera@g.o>
35 + -emul-linux-x86-java-1.6.0.39.ebuild, +emul-linux-x86-java-1.6.0.43.ebuild:
36 + Security bump. #460360
37
38 24 Feb 2013; Ralph Sennhauser <sera@g.o>
39 emul-linux-x86-java-1.6.0.41.ebuild:
40
41
42
43 1.1 app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.43.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.43.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.43.ebuild?rev=1.1&content-type=text/plain
47
48 Index: emul-linux-x86-java-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/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.43.ebuild,v 1.1 2013/03/06 09:33:09 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
66 DESCRIPTION="Oracle's Java SE Runtime Environment (32bit)"
67 HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
68 SRC_URI="${X86_AT}"
69
70 LICENSE="Oracle-BCLA-JavaSE"
71 SLOT="1.6"
72 KEYWORDS="-* ~amd64"
73 IUSE="+X alsa nsplugin pax_kernel"
74
75 RESTRICT="fetch strip"
76 QA_PREBUILT="*"
77
78 RDEPEND="
79 X? ( app-emulation/emul-linux-x86-xlibs )
80 alsa? ( app-emulation/emul-linux-x86-soundlibs )"
81 # scanelf won't create a PaX header, so depend on paxctl to avoid fallback
82 # marking. #427642
83 DEPEND="
84 pax_kernel? ( sys-apps/paxctl )"
85
86 S="${WORKDIR}/jre${S_PV}"
87
88 pkg_nofetch() {
89 einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package has become fetch restricted again."
90 einfo ""
91 einfo "Please download '${X86_AT}' from:"
92 einfo "'${JRE_URI}'"
93 einfo "and move it to '${DISTDIR}'"
94 }
95
96 src_unpack() {
97 sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack"
98 }
99
100 src_compile() {
101 # This needs to be done before CDS - #215225
102 java-vm_set-pax-markings "${S}"
103
104 # see bug #207282
105 einfo "Creating the Class Data Sharing archives"
106 bin/java -client -Xshare:dump || die
107 bin/java -server -Xshare:dump || die
108 }
109
110 src_install() {
111 local dest="/opt/${P}"
112 local ddest="${ED}${dest}"
113
114 # We should not need the ancient plugin for Firefox 2 anymore, plus it has
115 # writable executable segments
116 rm -vf lib/i386/libjavaplugin_oji.so \
117 lib/i386/libjavaplugin_nscp*.so
118 rm -vrf plugin/i386
119 # Without nsplugin flag, also remove the new plugin
120 arch=i386;
121 if ! use nsplugin; then
122 rm -vf lib/${arch}/libnpjp2.so \
123 lib/${arch}/libjavaplugin_jni.so
124 fi
125
126 dodir "${dest}"
127 cp -pPR bin lib man "${ddest}" || die
128
129 # Remove empty dirs we might have copied
130 find "${D}" -type d -empty -exec rmdir {} + || die
131
132 dodoc COPYRIGHT README
133
134 if use nsplugin; then
135 install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
136 fi
137
138 # Install desktop file for the Java Control Panel.
139 # Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
140 # make_desktop_entry can't be used as ${P} would end up in filename.
141 newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
142 sun-jcontrol-${PN}-${SLOT}.png || die
143 sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (${PN})#" \
144 -e "s#Exec=.*#Exec=${dest}/bin/jcontrol#" \
145 -e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
146 -e "s#Application;##" \
147 -e "/Encoding/d" \
148 lib/desktop/applications/sun_java.desktop > \
149 "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
150 domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
151
152 # http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html
153 rm "${ddest}"/lib/fontconfig.* || die
154 cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
155 eprefixify "${T}"/fontconfig.properties
156 insinto "${dest}"/lib/
157 doins "${T}"/fontconfig.properties
158
159 set_java_env "${FILESDIR}/${VMHANDLE}.env-r1"
160 java-vm_revdep-mask
161 }