1 |
polynomial-c 14/02/06 12:59:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-2.24.ebuild |
5 |
Log: |
6 |
Security bump (bug #500320) |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
9 |
|
10 |
Revision Changes Path |
11 |
1.477 www-client/seamonkey/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.477&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.477&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.476&r2=1.477 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
20 |
retrieving revision 1.476 |
21 |
retrieving revision 1.477 |
22 |
diff -u -r1.476 -r1.477 |
23 |
--- ChangeLog 13 Jan 2014 17:30:22 -0000 1.476 |
24 |
+++ ChangeLog 6 Feb 2014 12:59:12 -0000 1.477 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/seamonkey |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.476 2014/01/13 17:30:22 polynomial-c Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.477 2014/02/06 12:59:12 polynomial-c Exp $ |
30 |
+ |
31 |
+*seamonkey-2.24 (06 Feb 2014) |
32 |
+ |
33 |
+ 06 Feb 2014; Lars Wendler <polynomial-c@g.o> +seamonkey-2.24.ebuild: |
34 |
+ Security bump (bug #500320). |
35 |
|
36 |
13 Jan 2014; Lars Wendler <polynomial-c@g.o> seamonkey-2.23.ebuild: |
37 |
Added enigmail snapshot with new build system. This should fix bug #494088. |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/seamonkey/seamonkey-2.24.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.24.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.24.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: seamonkey-2.24.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 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.24.ebuild,v 1.1 2014/02/06 12:59:12 polynomial-c 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="${P}" |
64 |
MY_MOZ_P="${PN}-${MOZ_PV}" |
65 |
|
66 |
if [[ ${PV} == *_pre* ]] ; then |
67 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
68 |
MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
69 |
# And the langpack stuff stays at eclass defaults |
70 |
else |
71 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
72 |
MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
73 |
MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
74 |
fi |
75 |
|
76 |
inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
77 |
|
78 |
PATCHFF="firefox-26.0-patches-0.3" |
79 |
PATCH="${PN}-2.23-patches-01" |
80 |
EMVER="1.6.1_pre20140112" |
81 |
|
82 |
DESCRIPTION="Seamonkey Web Browser" |
83 |
HOMEPAGE="http://www.seamonkey-project.org" |
84 |
|
85 |
if [[ ${PV} == *_pre* ]] ; then |
86 |
# pre-releases. No need for arch teams to change KEYWORDS here. |
87 |
|
88 |
KEYWORDS="" |
89 |
else |
90 |
# This is where arch teams should change the KEYWORDS. |
91 |
|
92 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
93 |
fi |
94 |
|
95 |
SLOT="0" |
96 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
97 |
IUSE="+chatzilla +crypt gstreamer +ipc +jit minimal pulseaudio +roaming selinux system-cairo system-icu system-jpeg system-sqlite" |
98 |
|
99 |
SRC_URI="${SRC_URI} |
100 |
${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
101 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz |
102 |
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
103 |
crypt? ( http://dev.gentoo.org/~polynomial-c/mozilla/enigmail-${EMVER}.tar.xz )" |
104 |
#crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz ) |
105 |
|
106 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
107 |
|
108 |
# Mesa 7.10 needed for WebGL + bugfixes |
109 |
RDEPEND=">=dev-libs/nss-3.15.4 |
110 |
>=dev-libs/nspr-4.10.2 |
111 |
>=dev-libs/glib-2.26:2 |
112 |
>=media-libs/mesa-7.10 |
113 |
>=media-libs/libpng-1.5.17[apng] |
114 |
>=x11-libs/pango-1.14.0 |
115 |
>=x11-libs/gtk+-2.14:2 |
116 |
virtual/libffi |
117 |
gstreamer? ( media-plugins/gst-plugins-meta:0.10[ffmpeg] ) |
118 |
system-cairo? ( >=x11-libs/cairo-1.12[X] ) |
119 |
system-icu? ( >=dev-libs/icu-0.51.1 ) |
120 |
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
121 |
system-sqlite? ( >=dev-db/sqlite-3.8.0.2:3[secure-delete,debug=] ) |
122 |
>=media-libs/libvpx-1.0.0 |
123 |
crypt? ( >=app-crypt/gnupg-1.4 ) |
124 |
kernel_linux? ( media-libs/alsa-lib ) |
125 |
pulseaudio? ( media-sound/pulseaudio ) |
126 |
selinux? ( sec-policy/selinux-mozilla )" |
127 |
|
128 |
DEPEND="${RDEPEND} |
129 |
!elibc_glibc? ( dev-libs/libexecinfo ) |
130 |
>=sys-devel/binutils-2.16.1 |
131 |
virtual/pkgconfig |
132 |
amd64? ( ${ASM_DEPEND} |
133 |
virtual/opengl ) |
134 |
x86? ( ${ASM_DEPEND} |
135 |
virtual/opengl )" |
136 |
|
137 |
if [[ ${PV} == *beta* ]] ; then |
138 |
S="${WORKDIR}/comm-beta" |
139 |
else |
140 |
S="${WORKDIR}/comm-release" |
141 |
fi |
142 |
|
143 |
pkg_setup() { |
144 |
if [[ ${PV} == *_pre* ]] ; then |
145 |
ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
146 |
ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
147 |
ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
148 |
fi |
149 |
|
150 |
moz_pkgsetup |
151 |
|
152 |
# Ensure we have enough disk space to compile |
153 |
if use debug || use test ; then |
154 |
CHECKREQS_DISK_BUILD="8G" |
155 |
else |
156 |
CHECKREQS_DISK_BUILD="4G" |
157 |
fi |
158 |
check-reqs_pkg_setup |
159 |
} |
160 |
|
161 |
src_unpack() { |
162 |
unpack ${A} |
163 |
|
164 |
# Unpack language packs |
165 |
mozlinguas_src_unpack |
166 |
} |
167 |
|
168 |
src_prepare() { |
169 |
# Apply our patches |
170 |
EPATCH_SUFFIX="patch" \ |
171 |
EPATCH_FORCE="yes" \ |
172 |
epatch "${WORKDIR}/seamonkey" |
173 |
|
174 |
# browser patches go here |
175 |
pushd "${S}"/mozilla &>/dev/null || die |
176 |
EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch |
177 |
7007_fix_missing_strings.patch" \ |
178 |
EPATCH_SUFFIX="patch" \ |
179 |
EPATCH_FORCE="yes" \ |
180 |
epatch "${WORKDIR}/firefox" |
181 |
popd &>/dev/null || die |
182 |
# drop -Wl,--build-id from LDFLAGS, bug #465466 |
183 |
|
184 |
# Shell scripts sometimes contain DOS line endings; bug 391889 |
185 |
grep -rlZ --include="*.sh" $'\r$' . | |
186 |
while read -r -d $'\0' file ; do |
187 |
einfo edos2unix "${file}" |
188 |
edos2unix "${file}" || die |
189 |
done |
190 |
|
191 |
if use crypt ; then |
192 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
193 |
#pushd "${S}"/mailnews/extensions/enigmail &>/dev/null || die |
194 |
|
195 |
#popd &>/dev/null || die |
196 |
fi |
197 |
|
198 |
# Allow user to apply any additional patches without modifing ebuild |
199 |
epatch_user |
200 |
|
201 |
local ms="${S}/mozilla" |
202 |
|
203 |
# Enable gnomebreakpad |
204 |
if use debug ; then |
205 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
206 |
"${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
207 |
fi |
208 |
|
209 |
# Ensure that are plugins dir is enabled as default |
210 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
211 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
212 |
sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
213 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
214 |
|
215 |
# Don't exit with error when some libs are missing which we have in |
216 |
# system. |
217 |
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
218 |
-i "${S}"/suite/installer/Makefile.in || die |
219 |
# Don't error out when there's no files to be removed: |
220 |
sed 's@\(xargs rm\)$@\1 -f@' \ |
221 |
-i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
222 |
|
223 |
eautoreconf |
224 |
cd "${S}"/mozilla || die |
225 |
eautoconf |
226 |
cd js/src || die |
227 |
eautoconf |
228 |
} |
229 |
|
230 |
src_configure() { |
231 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
232 |
MEXTENSIONS="default" |
233 |
|
234 |
#################################### |
235 |
# |
236 |
# mozconfig, CFLAGS and CXXFLAGS setup |
237 |
# |
238 |
#################################### |
239 |
|
240 |
mozconfig_init |
241 |
mozconfig_config |
242 |
|
243 |
# It doesn't compile on alpha without this LDFLAGS |
244 |
use alpha && append-ldflags "-Wl,--no-relax" |
245 |
|
246 |
if use chatzilla ; then |
247 |
MEXTENSIONS+=",irc" |
248 |
else |
249 |
MEXTENSIONS+=",-irc" |
250 |
fi |
251 |
if ! use roaming ; then |
252 |
MEXTENSIONS+=",-sroaming" |
253 |
fi |
254 |
|
255 |
# We must force enable jemalloc 3 threw .mozconfig |
256 |
echo "export MOZ_JEMALLOC=1" >> ${S}/.mozconfig |
257 |
|
258 |
mozconfig_annotate '' --enable-jemalloc |
259 |
mozconfig_annotate '' --enable-replace-malloc |
260 |
mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
261 |
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
262 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
263 |
mozconfig_annotate '' --disable-gconf |
264 |
mozconfig_annotate '' --enable-jsd |
265 |
mozconfig_annotate '' --enable-canvas |
266 |
mozconfig_annotate '' --with-system-png |
267 |
mozconfig_annotate '' --enable-system-ffi |
268 |
|
269 |
# Other sm-specific settings |
270 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
271 |
|
272 |
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}" |
273 |
mozconfig_annotate '' --build="${CTARGET:-${CHOST}}" |
274 |
mozconfig_annotate '' --enable-safe-browsing |
275 |
|
276 |
mozconfig_use_enable gstreamer |
277 |
mozconfig_use_enable pulseaudio |
278 |
mozconfig_use_enable system-cairo |
279 |
mozconfig_use_enable system-sqlite |
280 |
mozconfig_use_with system-jpeg |
281 |
mozconfig_use_with system-icu |
282 |
mozconfig_use_enable system-icu intl-api |
283 |
# Feature is know to cause problems on hardened |
284 |
mozconfig_use_enable jit ion |
285 |
|
286 |
# Use an objdir to keep things organized. |
287 |
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \ |
288 |
>> "${S}"/.mozconfig |
289 |
|
290 |
# Finalize and report settings |
291 |
mozconfig_final |
292 |
|
293 |
if use crypt ; then |
294 |
pushd "${S}"/mailnews/extensions/enigmail &>/dev/null || die |
295 |
./configure || die |
296 |
popd &>/dev/null || die |
297 |
fi |
298 |
|
299 |
# Work around breakage in makeopts with --no-print-directory |
300 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
301 |
|
302 |
if [[ $(gcc-major-version) -lt 4 ]] ; then |
303 |
append-cxxflags -fno-stack-protector |
304 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
305 |
if use amd64 || use x86 ; then |
306 |
append-flags -mno-avx |
307 |
fi |
308 |
fi |
309 |
} |
310 |
|
311 |
src_compile() { |
312 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
313 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
314 |
emake -f client.mk || die |
315 |
|
316 |
# Only build enigmail extension if conditions are met. |
317 |
if use crypt ; then |
318 |
cd "${S}"/mailnews/extensions/enigmail || die |
319 |
emake || die "make enigmail failed" |
320 |
emake xpi || die "make enigmail xpi failed" |
321 |
fi |
322 |
} |
323 |
|
324 |
src_install() { |
325 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
326 |
DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
327 |
|
328 |
local emid obj_dir="seamonk" |
329 |
cd "${S}/${obj_dir}" |
330 |
|
331 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
332 |
pax-mark m "${S}/${obj_dir}/mozilla/dist/bin/xpcshell" |
333 |
|
334 |
# Copy our preference before omnijar is created. |
335 |
sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
336 |
"${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
337 |
|| die |
338 |
|
339 |
# Set default path to search for dictionaries. |
340 |
echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
341 |
>> "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
342 |
|| die |
343 |
|
344 |
if ! use libnotify ; then |
345 |
echo 'pref("browser.download.manager.showAlertOnComplete", false);' \ |
346 |
>> "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
347 |
|| die |
348 |
fi |
349 |
|
350 |
echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
351 |
"${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
352 |
|| die |
353 |
|
354 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
355 |
emake DESTDIR="${D}" install || die "emake install failed" |
356 |
cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die |
357 |
|
358 |
if use crypt ; then |
359 |
local em_dir="${S}/mailnews/extensions/enigmail/build" |
360 |
cd "${T}" || die |
361 |
unzip "${em_dir}"/enigmail*.xpi install.rdf || die |
362 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
363 |
|
364 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
365 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
366 |
unzip "${em_dir}"/enigmail*.xpi || die |
367 |
|
368 |
cd "${S}" || die |
369 |
fi |
370 |
|
371 |
sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
372 |
-i "${T}"/${PN}.desktop || die |
373 |
sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
374 |
|| die |
375 |
|
376 |
# Install language packs |
377 |
mozlinguas_src_install |
378 |
|
379 |
# Add StartupNotify=true bug 290401 |
380 |
if use startup-notification ; then |
381 |
echo "StartupNotify=true" >> "${T}"/${PN}.desktop |
382 |
fi |
383 |
|
384 |
# Install icon and .desktop for menu entry |
385 |
newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \ |
386 |
|| die |
387 |
domenu "${T}"/${PN}.desktop || die |
388 |
|
389 |
# Required in order to use plugins and even run seamonkey on hardened. |
390 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
391 |
|
392 |
if use minimal ; then |
393 |
rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
394 |
fi |
395 |
|
396 |
# Handle plugins dir through nsplugins.eclass |
397 |
share_plugins_dir |
398 |
|
399 |
doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die |
400 |
} |
401 |
|
402 |
pkg_preinst() { |
403 |
MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
404 |
|
405 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
406 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
407 |
fi |
408 |
} |
409 |
|
410 |
pkg_postinst() { |
411 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
412 |
|
413 |
# Update mimedb for the new .desktop file |
414 |
fdo-mime_desktop_database_update |
415 |
|
416 |
if use chatzilla ; then |
417 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
418 |
elog "the Add-on manager." |
419 |
fi |
420 |
} |