1 |
anarchy 10/09/08 01:12:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xulrunner-1.9.2.9.ebuild |
5 |
Removed: xulrunner-1.9.2.8-r1.ebuild |
6 |
xulrunner-1.9.2.4.ebuild |
7 |
Log: |
8 |
Security bump bug 336396 |
9 |
|
10 |
(Portage version: 2.1.9.1/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.353 net-libs/xulrunner/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.353&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?rev=1.353&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/ChangeLog?r1=1.352&r2=1.353 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v |
22 |
retrieving revision 1.352 |
23 |
retrieving revision 1.353 |
24 |
diff -u -r1.352 -r1.353 |
25 |
--- ChangeLog 23 Aug 2010 14:53:27 -0000 1.352 |
26 |
+++ ChangeLog 8 Sep 2010 01:12:19 -0000 1.353 |
27 |
@@ -1,6 +1,12 @@ |
28 |
# ChangeLog for net-libs/xulrunner |
29 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.352 2010/08/23 14:53:27 darkside Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/ChangeLog,v 1.353 2010/09/08 01:12:19 anarchy Exp $ |
32 |
+ |
33 |
+*xulrunner-1.9.2.9 (08 Sep 2010) |
34 |
+ |
35 |
+ 08 Sep 2010; Jory A. Pratt <anarchy@g.o> -xulrunner-1.9.2.4.ebuild, |
36 |
+ -xulrunner-1.9.2.8-r1.ebuild, +xulrunner-1.9.2.9.ebuild: |
37 |
+ Security bump bug 336396 |
38 |
|
39 |
23 Aug 2010; Jeremy Olexa <darkside@g.o> |
40 |
xulrunner-1.9.2.8-r1.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-libs/xulrunner/xulrunner-1.9.2.9.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.9.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.9.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: xulrunner-1.9.2.9.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/xulrunner/xulrunner-1.9.2.9.ebuild,v 1.1 2010/09/08 01:12:19 anarchy Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
WANT_AUTOCONF="2.1" |
57 |
|
58 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib java-pkg-opt-2 autotools python prefix pax-utils |
59 |
|
60 |
MY_PV="${PV/_rc/rc}" # Handle beta |
61 |
MY_PV="${MY_PV/1.9.2/3.6}" |
62 |
MAJ_PV="1.9.2" # from mozilla-* branch name |
63 |
PATCH="${PN}-1.9.2-patches-0.7" |
64 |
|
65 |
DESCRIPTION="Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications" |
66 |
HOMEPAGE="http://developer.mozilla.org/en/docs/XULRunner" |
67 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2 |
68 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2" |
69 |
|
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
71 |
SLOT="1.9" |
72 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
73 |
IUSE="+alsa +cups debug +ipc libnotify system-sqlite wifi" |
74 |
|
75 |
RDEPEND=" |
76 |
>=sys-devel/binutils-2.16.1 |
77 |
>=dev-libs/nss-3.12.6 |
78 |
>=dev-libs/nspr-4.8 |
79 |
system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] ) |
80 |
alsa? ( media-libs/alsa-lib ) |
81 |
>=app-text/hunspell-1.2 |
82 |
>=x11-libs/cairo-1.8.8[X] |
83 |
x11-libs/pango[X] |
84 |
x11-libs/libXt |
85 |
x11-libs/pixman |
86 |
>=dev-libs/libevent-1.4.7 |
87 |
wifi? ( net-wireless/wireless-tools ) |
88 |
libnotify? ( >=x11-libs/libnotify-0.4 ) |
89 |
cups? ( net-print/cups[gnutls] )" |
90 |
|
91 |
DEPEND="java? ( >=virtual/jdk-1.4 ) |
92 |
${RDEPEND} |
93 |
=dev-lang/python-2*[threads] |
94 |
dev-util/pkgconfig" |
95 |
|
96 |
# virtual/jre should not be in DEPEND. bug 325981 |
97 |
RDEPEND="java? ( >=virtual/jre-1.4 ) ${RDEPEND}" |
98 |
|
99 |
S="${WORKDIR}/mozilla-${MAJ_PV}" |
100 |
|
101 |
pkg_setup() { |
102 |
# Ensure we always build with C locale. |
103 |
export LANG="C" |
104 |
export LC_ALL="C" |
105 |
export LC_MESSAGES="C" |
106 |
export LC_CTYPE="C" |
107 |
|
108 |
java-pkg-opt-2_pkg_setup |
109 |
|
110 |
python_set_active_version 2 |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
# Apply our patches |
115 |
EPATCH_SUFFIX="patch" \ |
116 |
EPATCH_FORCE="yes" \ |
117 |
epatch "${WORKDIR}" |
118 |
|
119 |
eprefixify \ |
120 |
extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java \ |
121 |
xpcom/build/nsXPCOMPrivate.h \ |
122 |
xulrunner/installer/Makefile.in \ |
123 |
xulrunner/app/nsRegisterGREUnix.cpp |
124 |
|
125 |
# fix double symbols due to double -ljemalloc |
126 |
sed -i -e '/^LIBS += $(JEMALLOC_LIBS)/s/^/#/' \ |
127 |
xulrunner/stub/Makefile.in || die |
128 |
|
129 |
# Allow user to apply additional patches without modifing ebuild |
130 |
epatch_user |
131 |
|
132 |
# Same as in config/autoconf.mk.in |
133 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
134 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" |
135 |
|
136 |
# Gentoo install dirs |
137 |
sed -i -e "s:@PV@:${MAJ_PV}:" "${S}"/config/autoconf.mk.in \ |
138 |
|| die "${MAJ_PV} sed failed!" |
139 |
|
140 |
# Enable gnomebreakpad |
141 |
if use debug ; then |
142 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
143 |
"${S}"/build/unix/run-mozilla.sh || die "sed failed!" |
144 |
fi |
145 |
|
146 |
eautoreconf |
147 |
|
148 |
cd js/src |
149 |
eautoreconf |
150 |
} |
151 |
|
152 |
src_configure() { |
153 |
#################################### |
154 |
# |
155 |
# mozconfig, CFLAGS and CXXFLAGS setup |
156 |
# |
157 |
#################################### |
158 |
|
159 |
mozconfig_init |
160 |
mozconfig_config |
161 |
|
162 |
MEXTENSIONS="default" |
163 |
|
164 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
165 |
|
166 |
# It doesn't compile on alpha without this LDFLAGS |
167 |
use alpha && append-ldflags "-Wl,--no-relax" |
168 |
|
169 |
mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}" |
170 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
171 |
mozconfig_annotate '' --enable-application=xulrunner |
172 |
mozconfig_annotate '' --disable-mailnews |
173 |
mozconfig_annotate 'broken' --disable-crashreporter |
174 |
mozconfig_annotate '' --enable-image-encoder=all |
175 |
mozconfig_annotate '' --enable-canvas |
176 |
mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2 |
177 |
# Bug 60668: Galeon doesn't build without oji enabled, so enable it |
178 |
# regardless of java setting. |
179 |
mozconfig_annotate '' --enable-oji --enable-mathml |
180 |
mozconfig_annotate 'places' --enable-storage --enable-places |
181 |
mozconfig_annotate '' --enable-safe-browsing |
182 |
|
183 |
# Build mozdevelop permately |
184 |
mozconfig_annotate '' --enable-jsd --enable-xpctools |
185 |
|
186 |
# System-wide install specs |
187 |
mozconfig_annotate '' --disable-installer |
188 |
mozconfig_annotate '' --disable-updater |
189 |
mozconfig_annotate '' --disable-strip |
190 |
mozconfig_annotate '' --disable-install-strip |
191 |
|
192 |
# Use system libraries |
193 |
mozconfig_annotate '' --enable-system-cairo |
194 |
mozconfig_annotate '' --enable-system-hunspell |
195 |
mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr |
196 |
mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr |
197 |
mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir) |
198 |
mozconfig_annotate '' --with-system-bz2 |
199 |
mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr |
200 |
|
201 |
mozconfig_use_enable ipc # +ipc, upstream default |
202 |
mozconfig_use_enable libnotify |
203 |
mozconfig_use_enable java javaxpcom |
204 |
mozconfig_use_enable wifi necko-wifi |
205 |
mozconfig_use_enable alsa ogg |
206 |
mozconfig_use_enable alsa wave |
207 |
mozconfig_use_enable system-sqlite |
208 |
mozconfig_use_enable cups printing |
209 |
|
210 |
# Debug |
211 |
if use debug ; then |
212 |
mozconfig_annotate 'debug' --disable-optimize |
213 |
mozconfig_annotate 'debug' --enable-debug=-ggdb |
214 |
mozconfig_annotate 'debug' --enable-debug-modules=all |
215 |
mozconfig_annotate 'debug' --enable-debugger-info-modules |
216 |
fi |
217 |
|
218 |
# Finalize and report settings |
219 |
mozconfig_final |
220 |
|
221 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
222 |
append-flags -fno-stack-protector |
223 |
fi |
224 |
|
225 |
#################################### |
226 |
# |
227 |
# Configure and build |
228 |
# |
229 |
#################################### |
230 |
|
231 |
# Disable no-print-directory |
232 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
233 |
|
234 |
# Ensure that are plugins dir is enabled as default |
235 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ |
236 |
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" |
237 |
|
238 |
# hack added to workaround bug 299905 on hosts with libc that doesn't |
239 |
# support tls, (probably will only hit this condition with Gentoo Prefix) |
240 |
tc-has-tls -l || export ac_cv_thread_keyword=no |
241 |
|
242 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf |
243 |
} |
244 |
|
245 |
src_install() { |
246 |
emake DESTDIR="${D}" install || die "emake install failed" |
247 |
|
248 |
rm "${ED}"/usr/bin/xulrunner |
249 |
|
250 |
MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}" |
251 |
SDKDIR="/usr/$(get_libdir)/${PN}-devel-${MAJ_PV}/sdk" |
252 |
|
253 |
if has_multilib_profile; then |
254 |
local config |
255 |
for config in "${ED}"/etc/gre.d/*.system.conf ; do |
256 |
mv "${config}" "${config%.conf}.${CHOST}.conf" |
257 |
done |
258 |
fi |
259 |
|
260 |
dodir /usr/bin |
261 |
dosym "${MOZLIBDIR}/xulrunner" "/usr/bin/xulrunner-${MAJ_PV}" || die |
262 |
|
263 |
# env.d file for ld search path |
264 |
dodir /etc/env.d |
265 |
echo "LDPATH=${EPREFIX}/${MOZLIBDIR}" > "${ED}"/etc/env.d/08xulrunner || die "env.d failed" |
266 |
|
267 |
# Add our defaults to xulrunner and out of firefox |
268 |
cp "${FILESDIR}"/xulrunner-default-prefs.js \ |
269 |
"${ED}/${MOZLIBDIR}/defaults/pref/all-gentoo.js" || \ |
270 |
die "failed to cp xulrunner-default-prefs.js" |
271 |
|
272 |
pax-mark m "${D}"/${MOZLIBDIR}/plugin-container |
273 |
|
274 |
if use java ; then |
275 |
java-pkg_regjar "${ED}/${MOZLIBDIR}/javaxpcom.jar" |
276 |
java-pkg_regso "${ED}/${MOZLIBDIR}/libjavaxpcomglue.so" |
277 |
java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaGlue.jar" |
278 |
java-pkg_regjar "${ED}/${SDKDIR}/lib/MozillaInterfaces.jar" |
279 |
fi |
280 |
} |
281 |
|
282 |
pkg_postinst() { |
283 |
ewarn "If firefox fails to start with \"failed to load xpcom\", run revdep-rebuild" |
284 |
ewarn "If that does not fix the problem, rebuild dev-libs/nss" |
285 |
ewarn "Try dev-util/lafilefixer if you get build failures related to .la files" |
286 |
|
287 |
einfo |
288 |
einfo "All prefs can be overridden by the user. The preferences are to make" |
289 |
einfo "use of xulrunner out of the box on an average system without the user" |
290 |
einfo "having to go through and enable the basics." |
291 |
|
292 |
einfo |
293 |
ewarn "Any package that requires xulrunner:1.9 slot could and most likely will" |
294 |
ewarn "have issues. These issues should be reported to maintainer, and mozilla herd" |
295 |
ewarn "should be cc'd on the bug report. Thank you anarchy@g.o ." |
296 |
} |