Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id B3810A5864 for ; Fri, 30 Jan 2015 07:32:41 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 0F54114A1D9; Fri, 30 Jan 2015 07:32:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 83CDC14A314 for ; Fri, 30 Jan 2015 07:32:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id xGzPN4REIxOu for ; Fri, 30 Jan 2015 07:32:24 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 9DFC414A312 for ; Fri, 30 Jan 2015 07:32:24 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 8D1D598; Fri, 30 Jan 2015 07:32:24 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 30 Jan 2015 07:32:24 +0000 From: "Masatake Daimon" Subject: CVS commit: pkgsrc/www/firefox To: pkgsrc-changes@NetBSD.org Reply-To: pho@netbsd.org X-Mailer: log_accum Message-Id: <20150130073224.8D1D598@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: pho Date: Fri Jan 30 07:32:24 UTC 2015 Modified Files: pkgsrc/www/firefox: PLIST distinfo mozilla-common.mk pkgsrc/www/firefox/patches: patch-build_gyp.mozbuild patch-extensions_spellcheck_hunspell_src_mozHunspell.cpp patch-js_xpconnect_src_xpcprivate.h patch-toolkit_library_moz.build patch-xpcom_base_nsStackWalk.cpp Added Files: pkgsrc/www/firefox/patches: patch-ipc_glue_moz.build patch-js_src_asmjs_AsmJSSignalHandlers.cpp patch-memory_mozalloc_VolatileBufferOSX.cpp patch-toolkit_xre_nsAppRunner.cpp patch-xpcom_build_PoisonIOInterposer.h patch-xpcom_glue_standalone_nsXPCOMGlue.cpp Log Message: Fix many issues on Darwin PLIST: * lib/firefox/libmozglue.so is built and installed as a shared library on some platforms including Darwin. mozilla-common.mk: * Sandboxing support is only available when the toolkit is cairo-cocoa. * It tries to use MacOS X 10.6 SDK by default, which is not always possible. patches/patch-build_gyp.mozbuild: * Don't assume iOS just because the toolkit is not cocoa. Ideally there should be an AC_SUBST just like 'ARM_ARCH' but nothing exists currently. * MacOS X SDK version should be able to configure with ./configure --enable-macos-target=VER patches/patch-extensions_spellcheck_hunspell_src_mozHunspell.cpp: * NS_NewNativeLocalFile() can fail and leave hunDir null, so we must check if it succeeded. This is not Darwin specific though. * "%%LOCALBASE%%" in the hunspell path is currently not substituted, which looks very erroneous to me. But since I don't know why ryoon@ changed it from "@PREFIX@" to "%%LOCALBASE%%" I leave it as it is. patches/patch-ipc_glue_moz.build: * Don't assume cocoa toolkit just because OS_ARCH is Darwin. patches/patch-js_src_asmjs_AsmJSSignalHandlers.cpp: * Increase portability for non-x86 Darwin by not hardwiring x86_THREAD_STATE. patches/patch-js_xpconnect_src_xpcprivate.h: * The declaration has to be C++11 'extern template', otherwise non-weak symbol collision will occur between libmozjs and libxul. We can't easily test if the feature is supported by compiler due to GCC bug #1773: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773 patches/patch-memory_mozalloc_VolatileBufferOSX.cpp: * Try to fallback to valloc(3) if posix_memalign(3) is not avialble. It has been added since MacOS 10.6. patches/patch-toolkit_library_moz.build: * GSTREAMER_LIBS are linked to libxul on Darwin, while they are dlopen(3)'ed at runtime on other platforms. The problem is that the toolkit being cocoa isn't relevant at all. It's Darwin that needs the special handling, not Cocoa. patches/patch-toolkit_xre_nsAppRunner.cpp: * MacOS X < 10.6 had an undocumented behavior concerning execve(2) inside a threaded process. If a process tried to call execve(2) and had more than one active thread, the kernel returned ENOTSUP. So we have to either fork(2) or vfork(2) before calling execve(2) to make sure the caller is single-threaded as otherwise the application fails to restart itself. patches/patch-xpcom_base_nsStackWalk.cpp, patches/patch-xpcom_build_PoisonIOInterposer.h: * Replace XP_MACOSX with XP_DARWIN as the former is not defined when the toolkit is not cocoa. patches/patch-xpcom_glue_standalone_nsXPCOMGlue.cpp: * Fix inconsistent use of XP_DARWIN and XP_MACOSX: LEADING_UNDERSCORE should be empty when we are going to load XPCOM using dlopen(3), not NSAddImage(). To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 pkgsrc/www/firefox/PLIST cvs rdiff -u -r1.180 -r1.181 pkgsrc/www/firefox/distinfo cvs rdiff -u -r1.47 -r1.48 pkgsrc/www/firefox/mozilla-common.mk cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/firefox/patches/patch-build_gyp.mozbuild \ pkgsrc/www/firefox/patches/patch-js_xpconnect_src_xpcprivate.h \ pkgsrc/www/firefox/patches/patch-toolkit_library_moz.build cvs rdiff -u -r1.5 -r1.6 \ pkgsrc/www/firefox/patches/patch-extensions_spellcheck_hunspell_src_mozHunspell.cpp cvs rdiff -u -r0 -r1.1 pkgsrc/www/firefox/patches/patch-ipc_glue_moz.build \ pkgsrc/www/firefox/patches/patch-js_src_asmjs_AsmJSSignalHandlers.cpp \ pkgsrc/www/firefox/patches/patch-memory_mozalloc_VolatileBufferOSX.cpp cvs rdiff -u -r0 -r1.5 \ pkgsrc/www/firefox/patches/patch-toolkit_xre_nsAppRunner.cpp cvs rdiff -u -r1.9 -r1.10 \ pkgsrc/www/firefox/patches/patch-xpcom_base_nsStackWalk.cpp cvs rdiff -u -r0 -r1.4 \ pkgsrc/www/firefox/patches/patch-xpcom_build_PoisonIOInterposer.h cvs rdiff -u -r0 -r1.3 \ pkgsrc/www/firefox/patches/patch-xpcom_glue_standalone_nsXPCOMGlue.cpp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.