Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/seamonkey: ChangeLog seamonkey-2.13.2.ebuild
Date: Thu, 01 Nov 2012 13:43:51
Message-Id: 20121101134333.B2A7921600@flycatcher.gentoo.org
1 anarchy 12/11/01 13:43:33
2
3 Modified: ChangeLog
4 Added: seamonkey-2.13.2.ebuild
5 Log:
6 Security bump, bug #439960
7
8 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x9019241D)
9
10 Revision Changes Path
11 1.409 www-client/seamonkey/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.409&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.409&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.408&r2=1.409
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v
20 retrieving revision 1.408
21 retrieving revision 1.409
22 diff -u -r1.408 -r1.409
23 --- ChangeLog 23 Oct 2012 15:58:04 -0000 1.408
24 +++ ChangeLog 1 Nov 2012 13:43:33 -0000 1.409
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-client/seamonkey
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.408 2012/10/23 15:58:04 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.409 2012/11/01 13:43:33 anarchy Exp $
30 +
31 +*seamonkey-2.13.2 (01 Nov 2012)
32 +
33 + 01 Nov 2012; <anarchy@g.o> +seamonkey-2.13.2.ebuild:
34 + Security bump, bug #439960
35
36 23 Oct 2012; <ago@g.o> seamonkey-2.13.1.ebuild:
37 Stable for amd64, wrt bug #437780
38
39
40
41 1.1 www-client/seamonkey/seamonkey-2.13.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.13.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.13.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: seamonkey-2.13.2.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.13.2.ebuild,v 1.1 2012/11/01 13:43:33 anarchy Exp $
51
52 EAPI="3"
53 WANT_AUTOCONF="2.1"
54
55 # This list can be updated with scripts/get_langs.sh from the mozilla overlay
56 MOZ_LANGS=(be ca cs de en en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl
57 pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW)
58
59 MOZ_PV="${PV/_pre*}"
60 MOZ_PV="${MOZ_PV/_alpha/a}"
61 MOZ_PV="${MOZ_PV/_beta/b}"
62 MOZ_PV="${MOZ_PV/_rc/rc}"
63 MOZ_P="${PN}-${MOZ_PV}"
64
65 if [[ ${PV} == *_pre* ]] ; then
66 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
67 MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
68 # And the langpack stuff stays at eclass defaults
69 else
70 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
71 MOZ_LANGPACK_PREFIX="langpack/${MOZ_P}."
72 MOZ_LANGPACK_SUFFIX=".langpack.xpi"
73 fi
74
75 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension python nsplugins mozlinguas
76
77 PATCHFF="firefox-16.0-patches-0.3"
78 PATCH="${PN}-2.7-patches-03"
79 EMVER="1.4.5"
80
81 DESCRIPTION="Seamonkey Web Browser"
82 HOMEPAGE="http://www.seamonkey-project.org"
83
84 if [[ ${PV} == *_pre* ]] ; then
85 # pre-releases. No need for arch teams to change KEYWORDS here.
86
87 KEYWORDS=""
88 else
89 # This is where arch teams should change the KEYWORDS.
90
91 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
92 fi
93
94 SLOT="0"
95 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
96 IUSE="+alsa +chatzilla +crypt gstreamer +ipc +jit +roaming system-sqlite +webm"
97
98 SRC_URI+="${SRC_URI}
99 ${MOZ_FTP_URI}/source/${MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2
100 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
101 http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
102 crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )"
103
104 ASM_DEPEND=">=dev-lang/yasm-1.1"
105
106 # Mesa 7.10 needed for WebGL + bugfixes
107 RDEPEND=">=sys-devel/binutils-2.16.1
108 >=dev-libs/nss-3.13.6
109 >=dev-libs/nspr-4.9.1
110 >=dev-libs/glib-2.26
111 >=media-libs/mesa-7.10
112 >=media-libs/libpng-1.5.11[apng]
113 >=x11-libs/cairo-1.10
114 >=x11-libs/pango-1.14.0
115 >=x11-libs/gtk+-2.14
116 virtual/libffi
117 gstreamer? (
118 >=media-libs/gstreamer-0.10.33:0.10
119 >=media-libs/gst-plugins-base-0.10.33:0.10
120 )
121 system-sqlite? ( >=dev-db/sqlite-3.7.13[fts3,secure-delete,threadsafe,unlock-notify,debug=] )
122 crypt? ( >=app-crypt/gnupg-1.4 )
123 webm? (
124 >=media-libs/libvpx-1.0.0
125 kernel_linux? ( media-libs/alsa-lib )
126 )"
127
128 DEPEND="${RDEPEND}
129 dev-python/pysqlite
130 !elibc_glibc? ( dev-libs/libexecinfo )
131 virtual/pkgconfig
132 webm? ( amd64? ( ${ASM_DEPEND} )
133 x86? ( ${ASM_DEPEND} )
134 virtual/opengl )"
135
136 if [[ ${PV} == *beta* ]] ; then
137 S="${WORKDIR}/comm-beta"
138 else
139 S="${WORKDIR}/comm-release"
140 fi
141
142 src_unpack() {
143 unpack ${A}
144
145 # Unpack language packs
146 mozlinguas_src_unpack
147 }
148
149 pkg_setup() {
150 if [[ ${PV} == *_pre* ]] ; then
151 ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
152 ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
153 ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
154 fi
155
156 moz_pkgsetup
157 }
158
159 src_prepare() {
160 # Apply our patches
161 EPATCH_SUFFIX="patch" \
162 EPATCH_FORCE="yes" \
163 epatch "${WORKDIR}/seamonkey"
164
165 # browser patches go here
166 pushd "${S}"/mozilla &>/dev/null || die
167 EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch" \
168 EPATCH_SUFFIX="patch" \
169 EPATCH_FORCE="yes" \
170 epatch "${WORKDIR}/firefox"
171 popd &>/dev/null || die
172
173 # Shell scripts sometimes contain DOS line endings; bug 391889
174 grep -rlZ --include="*.sh" $'\r$' . |
175 while read -r -d $'\0' file ; do
176 einfo edos2unix "${file}"
177 edos2unix "${file}" || die
178 done
179
180 # Allow user to apply any additional patches without modifing ebuild
181 epatch_user
182
183 if use crypt ; then
184 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
185 #cd "${S}"/mailnews/extensions/enigmail || die
186 #cd "${S}"
187 fi
188
189 local ms="${S}/mozilla"
190
191 # Enable gnomebreakpad
192 if use debug ; then
193 sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
194 "${ms}"/build/unix/run-mozilla.sh || die "sed failed!"
195 fi
196
197 # Disable gnomevfs extension
198 sed -i -e "s:gnomevfs::" "${S}"/suite/confvars.sh \
199 -e "s:gnomevfs::" "${ms}"/browser/confvars.sh \
200 -e "s:gnomevfs::" "${ms}"/xulrunner/confvars.sh \
201 || die "Failed to remove gnomevfs extension"
202
203 # Ensure that are plugins dir is enabled as default
204 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
205 "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
206
207 # Don't exit with error when some libs are missing which we have in
208 # system.
209 sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
210 -i "${S}"/suite/installer/Makefile.in || die
211 # Don't error out when there's no files to be removed:
212 sed 's@\(xargs rm\)$@\1 -f@' \
213 -i "${S}"/mozilla/toolkit/mozapps/installer/packager.mk || die
214
215 eautoreconf
216 cd "${S}"/mozilla
217 eautoconf
218 }
219
220 src_configure() {
221 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
222 MEXTENSIONS="default"
223
224 ####################################
225 #
226 # mozconfig, CFLAGS and CXXFLAGS setup
227 #
228 ####################################
229
230 mozconfig_init
231 mozconfig_config
232
233 # It doesn't compile on alpha without this LDFLAGS
234 use alpha && append-ldflags "-Wl,--no-relax"
235
236 if use chatzilla ; then
237 MEXTENSIONS+=",irc"
238 else
239 MEXTENSIONS+=",-irc"
240 fi
241 if ! use roaming ; then
242 MEXTENSIONS+=",-sroaming"
243 fi
244
245 mozconfig_annotate '' --prefix="${EPREFIX}"/usr
246 mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
247 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
248 mozconfig_annotate '' --disable-gconf
249 mozconfig_annotate '' --enable-jsd
250 mozconfig_annotate '' --enable-canvas
251 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
252 mozconfig_annotate '' --enable-system-ffi
253 mozconfig_annotate '' --with-system-png
254 mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
255 mozconfig_annotate '' --enable-safe-browsing
256
257 mozconfig_use_enable gstreamer
258 mozconfig_use_enable system-sqlite
259 # Both methodjit and tracejit conflict with PaX
260 mozconfig_use_enable jit methodjit
261 mozconfig_use_enable jit tracejit
262
263 # Use an objdir to keep things organized.
264 echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \
265 >> "${S}"/.mozconfig
266
267 # Finalize and report settings
268 mozconfig_final
269
270 # Work around breakage in makeopts with --no-print-directory
271 MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
272
273 if [[ $(gcc-major-version) -lt 4 ]] ; then
274 append-cxxflags -fno-stack-protector
275 elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then
276 if use amd64 || use x86 ; then
277 append-flags -mno-avx
278 fi
279 fi
280 }
281
282 src_compile() {
283 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
284 MOZ_MAKE_FLAGS="${MAKEOPTS}" \
285 emake -f client.mk || die
286
287 # Only build enigmail extension if conditions are met.
288 if use crypt ; then
289 cd "${S}"/mailnews/extensions/enigmail || die
290 ./makemake -r 2&> /dev/null
291 cd "${S}"/seamonk/mailnews/extensions/enigmail
292 emake || die "make enigmail failed"
293 emake xpi || die "make enigmail xpi failed"
294 fi
295 }
296
297 src_install() {
298 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
299 local emid obj_dir="seamonk"
300 cd "${S}/${obj_dir}"
301
302 # Copy our preference before omnijar is created.
303 sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
304 "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
305 || die
306
307 # Without methodjit and tracejit there's no conflict with PaX
308 if use jit ; then
309 # Pax mark xpcshell for hardened support, only used for startupcache creation.
310 pax-mark m "${S}"/dist/bin/xpcshell
311 fi
312
313 MOZ_MAKE_FLAGS="${MAKEOPTS}" \
314 emake DESTDIR="${D}" install || die "emake install failed"
315 cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die
316
317 if use crypt ; then
318 cd "${T}" || die
319 unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || die
320 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
321
322 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
323 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
324 unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die
325
326 cd "${S}" || die
327 fi
328
329 sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
330 -i "${T}"/${PN}.desktop || die
331 sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
332 || die
333
334 # Install language packs
335 mozlinguas_src_install
336
337 # Add StartupNotify=true bug 290401
338 if use startup-notification ; then
339 echo "StartupNotify=true" >> "${T}"/${PN}.desktop
340 fi
341
342 # Install icon and .desktop for menu entry
343 newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \
344 || die
345 domenu "${T}"/${PN}.desktop || die
346
347 # Without methodjit and tracejit there's no conflict with PaX
348 if use jit ; then
349 # Required in order to use plugins and even run firefox on hardened.
350 pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin}
351 fi
352
353 # Plugin-container needs to be pax-marked for hardened to ensure plugins such as flash
354 # continue to work as expected.
355 pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container
356
357 # Handle plugins dir through nsplugins.eclass
358 share_plugins_dir
359
360 doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die
361 }
362
363 pkg_preinst() {
364 MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
365
366 if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
367 rm ${MOZILLA_FIVE_HOME}/plugins -rf
368 fi
369 }
370
371 pkg_postinst() {
372 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
373
374 # Update mimedb for the new .desktop file
375 fdo-mime_desktop_database_update
376
377 if use chatzilla ; then
378 elog "chatzilla is now an extension which can be en-/disabled and configured via"
379 elog "the Add-on manager."
380 fi
381 }