Update to 21.0

* This release of firefox is built with internal xulrunner.
  Because separated (system) xulrunner has prefs and chrome load problem.
* gnome option is broken in libnkmozgnomevfs.so build.

Changelog:
NEW
The Social API now supports multiple providers
NEW
Enhanced three-state UI for Do Not Track (DNT)
NEW
Firefox will suggest how to improve your application startup time if needed
NEW
Preliminary implementation of Firefox Health Report
CHANGED
Ability to restore removed thumbnails on New Tab Page
CHANGED
CSS -moz-user-select:none selection changed to improve compatibility with -webkit-user-select:none (bug 816298)
CHANGED
Graphics related performance improvements (bug 809821)
CHANGED
Removed E4X support from Spidermonkey
DEVELOPER
Implemented Remote Profiling
DEVELOPER
Integrated add-on SDK loader and API libraries into Firefox
HTML5
Added support for <main> element
HTML5
Implemented scoped stylesheets
HTML5
Added support for window.crypto.getRandomValues
FIXED
Some function keys may not work when pressed (833719)
FIXED
Browsing and Download history clearing needs unification to avoid confusion on clearing download history (847627)
FIXED
21.0: Security fixes can be found here

Fixed in Firefox 21
MFSA 2013-48 Memory corruption found using Address Sanitizer
MFSA 2013-47 Uninitialized functions in DOMSVGZoomEvent
MFSA 2013-46 Use-after-free with video and onresize event
MFSA 2013-45 Mozilla Updater fails to update some Windows Registry entries
MFSA 2013-44 Local privilege escalation through Mozilla Maintenance Service
MFSA 2013-43 File input control has access to full path
MFSA 2013-42 Privileged access for content level constructor
MFSA 2013-41 Miscellaneous memory safety hazards (rv:21.0 / rv:17.0.6)
This commit is contained in:
ryoon 2013-05-19 08:50:24 +00:00
parent bcf2307a1b
commit 74e9f4aa20
3 changed files with 6117 additions and 758 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.123 2013/02/22 14:54:01 ryoon Exp $
# $NetBSD: Makefile,v 1.124 2013/05/19 08:50:24 ryoon Exp $
.include "../../devel/xulrunner/dist.mk"
PKGNAME= firefox-${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
@ -12,9 +12,14 @@ LICENSE= mpl-1.1
MOZILLA_DIR= # empty
# Note: when updating remember to conditionalise about-background.png in PLIST
# XXX Firefox 21.0's firefox/xulrunner separation is not working.
CONFIGURE_ARGS+= --enable-application=browser
CONFIGURE_ARGS+= --with-libxul-sdk=${PREFIX}/lib/xulrunner
CONFIGURE_ARGS+= --with-system-libxul
#CONFIGURE_ARGS+= --with-libxul-sdk=${PREFIX}/lib/xulrunner
#CONFIGURE_ARGS+= --with-system-libxul
# workround for link of libxul.so etc.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/firefox ${COMPILER_RPATH_FLAG}${PREFIX}/lib
LDFLAGS.SunOS+= -lm
ALL_ENV+= MOZILLA_PKG_NAME=firefox
@ -26,7 +31,7 @@ LDFLAGS.Linux= -lnspr4
.include "options.mk"
MOZILLA=firefox
MOZILLA_ICON= ${WRKSRC}/dist/firefox/chrome/icons/default/default48.png
MOZILLA_ICON= ${WRKSRC}/dist/firefox/browser/chrome/icons/default/default48.png
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
MOZILLA_NAME= Firefox
.else
@ -37,6 +42,9 @@ pre-configure:
cd ${WRKSRC} && autoconf
# XXX not built here, just to make check-portability.awk shut up.
cd ${WRKSRC}/js/src && autoconf
# XXX Makefile is broken? When libxul is provided from devel/xulrunner,
# XXX please remove this.
mkdir ${WRKSRC}/js/src/.deps
post-build:
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
@ -44,8 +52,8 @@ post-build:
-e 's|@FIREFOX_ICON@|${MOZILLA}.png|g' \
< ${FILESDIR}/desktop.in \
> ${WRKDIR}/desktop
${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${FILESDIR}/firefox.sh.in \
> ${WRKDIR}/firefox
# ${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${FILESDIR}/firefox.sh.in \
# > ${WRKDIR}/firefox
INSTALLATION_DIRS+= share/applications share/pixmaps
post-install:
@ -53,25 +61,26 @@ post-install:
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
${INSTALL_DATA} ${MOZILLA_ICON} \
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
rm -f ${DESTDIR}${PREFIX}/bin/firefox
${INSTALL_SCRIPT} ${WRKDIR}/firefox ${DESTDIR}${PREFIX}/bin
# rm -f ${DESTDIR}${PREFIX}/bin/firefox
# ${INSTALL_SCRIPT} ${WRKDIR}/firefox ${DESTDIR}${PREFIX}/bin
BUILDLINK_API_DEPENDS.xulrunner+= xulrunner>=${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
BUILD_DEPENDS+= xulrunner-${MOZ_BRANCH}${MOZ_BRANCH_MINOR}{,nb*}:../../devel/xulrunner
.include "../../devel/xulrunner/buildlink3.mk"
PLIST_VARS+= gnome
.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mgnome)
CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
PLIST.gnome= yes
.else
CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
.endif
.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mdebug)
CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
CONFIGURE_ARGS+= --disable-install-strip
.else
CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
CONFIGURE_ARGS+= --enable-install-strip
.endif
# XXX Firefox 21.0's firefox/xulrunner separation is not working.
#BUILDLINK_API_DEPENDS.xulrunner+= xulrunner>=${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
#BUILD_DEPENDS+= xulrunner-${MOZ_BRANCH}${MOZ_BRANCH_MINOR}{,nb*}:../../devel/xulrunner
#.include "../../devel/xulrunner/buildlink3.mk"
#PLIST_VARS+= gnome
#.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mgnome)
#CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
#PLIST.gnome= yes
#.else
#CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
#.endif
#.if !empty(PKG_BUILD_OPTIONS.xulrunner:Mdebug)
#CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
#CONFIGURE_ARGS+= --disable-install-strip
#.else
#CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
#CONFIGURE_ARGS+= --enable-install-strip
#.endif
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,53 @@
# $NetBSD: options.mk,v 1.10 2011/07/11 13:17:40 tnn Exp $
# $NetBSD: options.mk,v 1.11 2013/05/19 08:50:24 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.firefox
PKG_SUPPORTED_OPTIONS= official-mozilla-branding
# XXX for xulrunner integrated firefox.
PKG_SUPPORTED_OPTIONS+= debug mozilla-jemalloc gnome pulseaudio
PLIST_VARS+= gnome jemalloc debug
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
PKG_SUGGESTED_OPTIONS+= mozilla-jemalloc
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnome)
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../sysutils/gnome-vfs/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
CONFIGURE_ARGS+= --enable-gnomevfs --enable-dbus --enable-gnomeui
CONFIGURE_ARGS+= --enable-libnotify
CONFIGURE_ARGS+= --enable-extensions
PLIST.gnome= yes
.else
CONFIGURE_ARGS+= --disable-gnomevfs --disable-dbus --disable-gnomeui
CONFIGURE_ARGS+= --disable-libnotify
.endif
.if !empty(PKG_OPTIONS:Mmozilla-jemalloc)
PLIST.jemalloc= yes
CONFIGURE_ARGS+= --enable-jemalloc
.else
CONFIGURE_ARGS+= --disable-jemalloc
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug --enable-debug-symbols
CONFIGURE_ARGS+= --disable-install-strip
PLIST.debug= yes
.else
CONFIGURE_ARGS+= --disable-debug --disable-debug-symbols
CONFIGURE_ARGS+= --enable-install-strip
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
.include "../../audio/pulseaudio/buildlink3.mk"
CONFIGURE_ARGS+= --enable-pulseaudio
.endif
# XXX end
PLIST_VARS+= nobranding
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
CONFIGURE_ARGS+= --enable-official-branding