Gentoo Archives: gentoo-commits

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