automatic version update by autodist [release 127.0-1mamba;Mon Jun 17 2024]

This commit is contained in:
Automatic Build System 2024-06-19 11:46:45 +02:00
parent 003c450a09
commit 187b27c13e
22 changed files with 23387 additions and 2098 deletions

View File

@ -1,16 +0,0 @@
Description: Remove an extra constant definition that is now being generated by newer versions of cbindgen (0.24), and causing build failures because it is defined in several places.
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1773259
Forwarded: not-needed
--- a/gfx/webrender_bindings/webrender_ffi.h
+++ b/gfx/webrender_bindings/webrender_ffi.h
@@ -73,8 +73,6 @@ struct WrPipelineInfo;
struct WrPipelineIdAndEpoch;
using WrPipelineIdEpochs = nsTArray<WrPipelineIdAndEpoch>;
-const uint64_t ROOT_CLIP_CHAIN = ~0;
-
} // namespace wr
} // namespace mozilla

View File

@ -1,33 +0,0 @@
diff --git i/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h w/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
index 101d39d455107..3764806240f9f 100644
--- i/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
+++ w/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
@@ -30,13 +30,13 @@
/* #undef EVENT__HAVE_AFUNIX_H 1 */
/* Define to 1 if you have the `arc4random' function. */
-/* #undef EVENT__HAVE_ARC4RANDOM */
+#define EVENT__HAVE_ARC4RANDOM 1
/* Define to 1 if you have the `arc4random_addrandom' function. */
/* #undef EVENT__HAVE_ARC4RANDOM_ADDRANDOM */
/* Define to 1 if you have the `arc4random_buf' function. */
-/* #undef EVENT__HAVE_ARC4RANDOM_BUF */
+#define EVENT__HAVE_ARC4RANDOM_BUF 1
/* Define to 1 if you have the <arpa/inet.h> header file. */
#define EVENT__HAVE_ARPA_INET_H 1
diff --git i/toolkit/crashreporter/client/ping.cpp w/toolkit/crashreporter/client/ping.cpp
index 57cf85de80b79..93a2f6e80ad0b 100644
--- i/toolkit/crashreporter/client/ping.cpp
+++ w/toolkit/crashreporter/client/ping.cpp
@@ -53,7 +53,7 @@ static string GenerateUUID() {
CFRelease(uuid);
#elif defined(HAVE_ARC4RANDOM_BUF) // Android, BSD, ...
- arc4random_buf(id, sizeof(UUID));
+ arc4random_buf(&id, sizeof(UUID));
#else // Linux
int fd = open("/dev/urandom", O_RDONLY);

View File

@ -1,33 +0,0 @@
# HG changeset patch
# User James Lee <jbit@jbit.net>
# Date 1663956731 0
# Node ID 0efaf5a00aaceeed679885e4cd393bd9a5fcd0ff
# Parent 5f24c597f42923d6622f5cb74db8c24423b72206
Bug 1791275 - Don't build libav with sysctl on Unix AArch64 r=alwu,padenot
Differential Revision: https://phabricator.services.mozilla.com/D157921
diff --git a/media/ffvpx/config_unix_aarch64.h b/media/ffvpx/config_unix_aarch64.h
--- a/media/ffvpx/config_unix_aarch64.h
+++ b/media/ffvpx/config_unix_aarch64.h
@@ -324,17 +324,17 @@
#define HAVE_SETCONSOLETEXTATTRIBUTE 0
#define HAVE_SETCONSOLECTRLHANDLER 0
#define HAVE_SETDLLDIRECTORY 0
#define HAVE_SETMODE 0
#define HAVE_SETRLIMIT 1
#define HAVE_SLEEP 0
#define HAVE_STRERROR_R 1
#define HAVE_SYSCONF 1
-#define HAVE_SYSCTL 1
+#define HAVE_SYSCTL 0
#define HAVE_USLEEP 1
#define HAVE_UTGETOSTYPEFROMSTRING 0
#define HAVE_VIRTUALALLOC 0
#define HAVE_WGLGETPROCADDRESS 0
#define HAVE_BCRYPT 0
#define HAVE_VAAPI_DRM 0
#define HAVE_VAAPI_X11 0
#define HAVE_VDPAU_X11 0

File diff suppressed because one or more lines are too long

View File

@ -1,42 +0,0 @@
# HG changeset patch
# User Chris Double <chris.double@double.co.nz>
# Date 1422915617 -46800
# Node ID 8061d4f8d716e828f80f62d0423cd2d33e923744
# Parent 9a2113fcfa398066998755efbf8d6f35602283bc
Bug 1128161 - Fix build error when logging is disabled. r=ajones, a=sledru
diff --git a/dom/media/mediasource/MediaSourceUtils.cpp b/dom/media/mediasource/MediaSourceUtils.cpp
--- a/dom/media/mediasource/MediaSourceUtils.cpp
+++ b/dom/media/mediasource/MediaSourceUtils.cpp
@@ -6,17 +6,16 @@
#include "MediaSourceUtils.h"
#include "prlog.h"
#include "mozilla/dom/TimeRanges.h"
#include "nsPrintfCString.h"
namespace mozilla {
-#if defined(PR_LOGGING)
nsCString
DumpTimeRanges(dom::TimeRanges* aRanges)
{
nsCString dump;
dump = "[";
for (uint32_t i = 0; i < aRanges->Length(); ++i) {
@@ -26,11 +25,10 @@ DumpTimeRanges(dom::TimeRanges* aRanges)
ErrorResult dummy;
dump += nsPrintfCString("(%f, %f)", aRanges->Start(i, dummy), aRanges->End(i, dummy));
}
dump += "]";
return dump;
}
-#endif
} // namespace mozilla

View File

@ -1,20 +0,0 @@
--- mozilla-release/modules/libpref/init/all.js.orig 2015-07-03 23:53:37.346065372 +0200
+++ mozilla-release/modules/libpref/init/all.js 2015-07-03 23:56:39.783125671 +0200
@@ -198,7 +198,7 @@
// 1 = always
// 2 = never
pref("browser.display.document_color_use", 0);
-pref("browser.display.use_system_colors", false);
+pref("browser.display.use_system_colors", true);
pref("browser.display.foreground_color", "#000000");
pref("browser.display.background_color", "#FFFFFF");
pref("browser.display.force_inline_alttext", false); // true = force ALT text for missing images to be layed out inline
@@ -1741,7 +1741,7 @@
pref("intl.charset.fallback.override", "");
pref("intl.charset.fallback.tld", true);
pref("intl.ellipsis", "chrome://global-platform/locale/intl.properties");
-pref("intl.locale.matchOS", false);
+pref("intl.locale.matchOS", true);
// fallback charset list for Unicode conversion (converting from Unicode)
// currently used for mail send only to handle symbol characters (e.g Euro, trademark, smartquotes)
// for ISO-8859-1

View File

@ -1,91 +0,0 @@
diff -Nru browser/components/preferences/advanced.xul browser/components-gil/preferences/advanced.xul
--- browser/components/preferences/advanced.xul 2011-01-22 01:24:21.000000000 +0100
+++ browser/components-gil/preferences/advanced.xul 2011-01-26 07:42:03.000000000 +0100
@@ -194,10 +194,11 @@
</groupbox>
#ifdef HAVE_SHELL_SERVICE
+#ifdef MOZ_CRASHREPORTER
<!-- System Defaults -->
<groupbox id="systemDefaultsGroup" orient="vertical">
<caption label="&systemDefaults.label;"/>
-
+#ifdef 0
<hbox id="checkDefaultBox" align="center" flex="1">
<checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
label="&alwaysCheckDefault.label;" accesskey="&alwaysCheckDefault.accesskey;"
@@ -207,6 +208,7 @@
oncommand="gAdvancedPane.checkNow()"
preference="pref.general.disable_button.default_browser"/>
</hbox>
+#endif
#ifdef MOZ_CRASHREPORTER
<checkbox id="submitCrashesBox" flex="1"
oncommand="gAdvancedPane.updateSubmitCrashes();"
@@ -214,6 +216,7 @@
#endif
</groupbox>
#endif
+#endif
</tabpanel>
<!-- Network -->
diff -Nru browser/components/shell/src/nsGNOMEShellService.cpp browser/components-gil/shell/src/nsGNOMEShellService.cpp
--- browser/components/shell/src/nsGNOMEShellService.cpp 2011-01-22 01:24:22.000000000 +0100
+++ browser/components-gil/shell/src/nsGNOMEShellService.cpp 2011-01-26 07:51:36.000000000 +0100
@@ -140,27 +140,21 @@
PRBool
nsGNOMEShellService::KeyMatchesAppName(const char *aKeyValue) const
{
+ nsCAutoString appName;
- gchar *commandPath;
if (mUseLocaleFilenames) {
gchar *nativePath = g_filename_from_utf8(aKeyValue, -1, NULL, NULL, NULL);
if (!nativePath) {
NS_ERROR("Error converting path to filesystem encoding");
return PR_FALSE;
}
-
- commandPath = g_find_program_in_path(nativePath);
+ appName.Assign(nativePath);
g_free(nativePath);
} else {
- commandPath = g_find_program_in_path(aKeyValue);
+ appName.Assign(aKeyValue);
}
-
- if (!commandPath)
- return PR_FALSE;
-
- PRBool matches = mAppPath.Equals(commandPath);
- g_free(commandPath);
- return matches;
+ // Compare default browser command retrieved from gconf with MOZ_APP_NAME
+ return appName.EqualsLiteral(MOZ_APP_NAME);
}
NS_IMETHODIMP
@@ -215,8 +209,8 @@
nsCOMPtr<nsIGConfService> gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID);
if (gconf) {
- nsCAutoString appKeyValue(mAppPath);
- appKeyValue.Append(" \"%s\"");
+ nsCAutoString appKeyValue(MOZ_APP_NAME);
+ appKeyValue.Append(" %s");
for (unsigned int i = 0; i < NS_ARRAY_LENGTH(appProtocols); ++i) {
if (appProtocols[i].essential || aClaimAllTypes) {
gconf->SetAppForProtocol(nsDependentCString(appProtocols[i].name),
diff -Nru browser/components/shell/src/nsGNOMEShellService.h browser/components-gil/shell/src/nsGNOMEShellService.h
--- browser/components/shell/src/nsGNOMEShellService.h 2011-01-22 01:24:22.000000000 +0100
+++ browser/components-gil/shell/src/nsGNOMEShellService.h 2011-01-26 07:39:05.000000000 +0100
@@ -43,7 +43,7 @@
class nsGNOMEShellService : public nsIShellService
{
public:
- nsGNOMEShellService() : mCheckedThisSession(PR_FALSE) { }
+ nsGNOMEShellService() : mCheckedThisSession(PR_TRUE) { }
NS_DECL_ISUPPORTS
NS_DECL_NSISHELLSERVICE

View File

@ -1,11 +0,0 @@
--- memory/mozalloc/mozalloc.h 2010-09-14 16:14:54.000000000 +0200
+++ memory/mozalloc/mozalloc.h-gil 2010-10-05 00:45:01.000000000 +0200
@@ -214,7 +214,7 @@
#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS throw()
#endif
-#ifdef MOZ_CPP_EXCEPTIONS
+#if 1
#define MOZALLOC_THROW_BAD_ALLOC throw(std::bad_alloc)
#else
#define MOZALLOC_THROW_BAD_ALLOC MOZALLOC_THROW_IF_HAS_EXCEPTIONS

View File

@ -1,11 +0,0 @@
--- browser/base/content/utilityOverlay.js 2010-09-14 16:15:11.000000000 +0200
+++ browser/base/content/utilityOverlay.js-gil 2010-10-05 00:48:51.000000000 +0200
@@ -502,7 +502,7 @@
// Disable the UI if the update enabled pref has been locked by the
// administrator or if we cannot update for some other reason
var checkForUpdates = document.getElementById("checkForUpdates");
- var canCheckForUpdates = updates.canCheckForUpdates;
+ var canCheckForUpdates = updates.canCheckForUpdates && updates.canApplyUpdates;
checkForUpdates.setAttribute("disabled", !canCheckForUpdates);
if (!canCheckForUpdates)
return;

View File

@ -1,21 +0,0 @@
--- memory/jemalloc/jemalloc.h 2010-09-14 16:14:54.000000000 +0200
+++ memory/jemalloc/jemalloc.h-gil 2010-10-05 00:42:25.000000000 +0200
@@ -42,12 +42,12 @@
/* Darwin and Linux already have memory allocation functions */
#if (!defined(MOZ_MEMORY_DARWIN) && !defined(MOZ_MEMORY_LINUX))
-void *malloc(size_t size);
-void *valloc(size_t size);
-void *calloc(size_t num, size_t size);
-void *realloc(void *ptr, size_t size);
-void free(void *ptr);
-int posix_memalign(void **memptr, size_t alignment, size_t size);
+void *malloc(size_t size) __THROW __attribute_malloc__ __wur;
+void *valloc(size_t size) __THROW __attribute_malloc__ __wur;
+void *calloc(size_t num, size_t size) __THROW __attribute_malloc__ __wur;
+void *realloc(void *ptr, size_t size) __THROW __attribute_malloc__ __wur;
+void free(void *ptr) __THROW __attribute_malloc__ __wur;
+int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur;
#endif /* MOZ_MEMORY_DARWIN, MOZ_MEMORY_LINUX */
#if defined(MOZ_MEMORY_ANDROID) || defined(WRAP_MALLOC)

View File

@ -1,35 +0,0 @@
From bb146548c7846ba5d14f070f4be985797d83d5ca Mon Sep 17 00:00:00 2001
From: Mike Hommey <mh+mozilla@glandium.org>
Date: Fri, 14 Aug 2015 08:50:38 +0900
Subject: [PATCH] Bug 1194520 - Add a system header wrapper for
<freetype/ftfntfmt.h>
---
config/system-headers | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/system-headers b/config/system-headers
index bee35da..ad1f88d 100644
--- a/config/system-headers
+++ b/config/system-headers
@@ -450,16 +450,17 @@ foundation/base64.h
foundation/hexdump.h
#endif
fp.h
fpieee.h
frame/log.h
frame/req.h
freetype/freetype.h
freetype/ftcache.h
+freetype/ftfntfmt.h
freetype/ftglyph.h
freetype/ftsynth.h
freetype/ftoutln.h
freetype/ttnameid.h
freetype/tttables.h
freetype/t1tables.h
freetype/ftlcdfil.h
freetype/ftsizes.h
--
2.5.0.3.ge81d485

View File

@ -1,10 +0,0 @@
--- firefox-43.0.4/dom/media/webm/WebMDemuxer.cpp.orig 2016-01-23 01:35:10.445510475 +0100
+++ firefox-43.0.4/dom/media/webm/WebMDemuxer.cpp 2016-01-23 01:32:15.429882900 +0100
@@ -19,6 +19,7 @@
#include "XiphExtradata.h"
#include <algorithm>
+#include "prprf.h"
#include <stdint.h>
#define VPX_DONT_DEFINE_STDINT_TYPES

View File

@ -1,71 +0,0 @@
diff -r 34544e6dfc19 -r 55212130f19d config/gcc-stl-wrapper.template.h
--- a/config/gcc-stl-wrapper.template.h Fri Mar 11 11:45:09 2016 +0800
+++ b/config/gcc-stl-wrapper.template.h Thu Mar 10 16:54:05 2016 +0900
@@ -12,33 +12,40 @@
// compiling ObjC.
#if defined(__EXCEPTIONS) && __EXCEPTIONS && !(__OBJC__ && __GNUC__ && XP_IOS)
# error "STL code can only be used with -fno-exceptions"
#endif
// Silence "warning: #include_next is a GCC extension"
#pragma GCC system_header
+// Don't include mozalloc for cstdlib. See bug 1245076.
+#ifndef moz_dont_include_mozalloc_for_cstdlib
+# define moz_dont_include_mozalloc_for_cstdlib
+#endif
+#ifndef moz_dont_include_mozalloc_for_${HEADER}
// mozalloc.h wants <new>; break the cycle by always explicitly
// including <new> here. NB: this is a tad sneaky. Sez the gcc docs:
//
// `#include_next' does not distinguish between <file> and "file"
// inclusion, nor does it check that the file you specify has the
// same name as the current file. It simply looks for the file
// named, starting with the directory in the search path after the
// one where the current file was found.
-#include_next <new>
+# include_next <new>
// See if we're in code that can use mozalloc. NB: this duplicates
// code in nscore.h because nscore.h pulls in prtypes.h, and chromium
// can't build with that being included before base/basictypes.h.
-#if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC)
-# include "mozilla/mozalloc.h"
-#else
-# error "STL code can only be used with infallible ::operator new()"
+# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC)
+# include "mozilla/mozalloc.h"
+# else
+# error "STL code can only be used with infallible ::operator new()"
+# endif
+
#endif
#if defined(DEBUG) && !defined(_GLIBCXX_DEBUG)
// Enable checked iterators and other goodies
//
// FIXME/bug 551254: gcc's debug STL implementation requires -frtti.
// Figure out how to resolve this with -fno-rtti. Maybe build with
// -frtti in DEBUG builds?
diff -r 34544e6dfc19 -r 55212130f19d gfx/graphite2/src/Collider.cpp
--- a/gfx/graphite2/src/Collider.cpp Fri Mar 11 11:45:09 2016 +0800
+++ b/gfx/graphite2/src/Collider.cpp Thu Mar 10 16:54:05 2016 +0900
@@ -21,17 +21,17 @@
Alternatively, the contents of this file may be used under the terms of the
Mozilla Public License (http://mozilla.org/MPL) or the GNU General Public
License, as published by the Free Software Foundation, either version 2
of the License or (at your option) any later version.
*/
#include <algorithm>
#include <limits>
-#include <math.h>
+#include <cmath>
#include <string>
#include <functional>
#include "inc/Collider.h"
#include "inc/Segment.h"
#include "inc/Slot.h"
#include "inc/GlyphCache.h"
#include "inc/Sparse.h"

View File

@ -1,12 +0,0 @@
diff -up firefox-29.0/mozilla-release/config/baseconfig.mk.orig firefox-29.0/mozilla-release/config/baseconfig.mk
--- mozilla-release/config/baseconfig.mk.orig 2014-04-22 15:38:52.948165295 +0200
+++ mozilla-release/config/baseconfig.mk 2014-04-22 15:42:20.387481673 +0200
@@ -4,7 +4,7 @@
# whether a normal build is happening or whether the check is running.
includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+installdir = $(libdir)/$(MOZ_APP_NAME)
sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
ifndef TOP_DIST
TOP_DIST = dist

View File

@ -1,41 +0,0 @@
# HG changeset patch
# User Mike Shal <mshal@mozilla.com>
# Date 1570127498 25200
# Node ID b8bc2504f108d8a2216ee11405cbbe4cf7a0eaec
# Parent 9a4d6aacc48080f019024c02ac7da1fd576b39fe
Bug XYZ - Only force re-linking on 1-tier PGO builds; r?#firefox-build-system-reviewers
diff --git a/config/rules.mk b/config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -465,25 +465,27 @@ ifeq ($(OS_ARCH)_$(GNU_CC), WINNT_)
$(foreach pgd,$(wildcard *.pgd),pgomgr -clear $(pgd);)
else
ifdef GNU_CC
-$(RM) *.gcda
endif
endif
endif
+ifdef MOZ_1TIER_PGO
ifneq (,$(MOZ_PROFILE_GENERATE)$(MOZ_PROFILE_USE))
ifneq (,$(filter target,$(MAKECMDGOALS)))
ifdef GNU_CC
# Force rebuilding libraries and programs in both passes because each
# pass uses different object files.
$(PROGRAM) $(SHARED_LIBRARY) $(LIBRARY): FORCE
endif
endif
endif
+endif
endif # NO_PROFILE_GUIDED_OPTIMIZE
##############################################
clean clobber realclean clobber_all::
-$(RM) $(ALL_TRASH)
-$(RM) -r $(ALL_TRASH_DIRS)

View File

@ -1,53 +0,0 @@
diff -up firefox-7.0/mozilla-beta/browser/installer/Makefile.in.cache firefox-7.0/mozilla-beta/browser/installer/Makefile.in
--- firefox-7.0/mozilla-beta/browser/installer/Makefile.in.cache 2011-09-06 10:43:04.421293791 +0200
+++ firefox-7.0/mozilla-beta/browser/installer/Makefile.in 2011-09-06 10:43:04.422293805 +0200
@@ -114,19 +114,6 @@ ifndef LIBXUL_SDK
INSTALL_SDK = 1
endif
-ifneq (1_,$(if $(CROSS_COMPILE),1,0)_$(UNIVERSAL_BINARY))
-ifdef RUN_TEST_PROGRAM
-_ABS_RUN_TEST_PROGRAM = $(call core_abspath,$(RUN_TEST_PROGRAM))
-endif
-
-GENERATE_CACHE = \
- $(_ABS_RUN_TEST_PROGRAM) $(LIBXUL_DIST)/bin/xpcshell$(BIN_SUFFIX) -g "$$PWD" -a "$$PWD" -f $(topsrcdir)/browser/installer/precompile_cache.js -e 'populate_startupcache("omni.jar", "startupCache.zip");' && \
- rm -rf jsloader && \
- $(UNZIP) startupCache.zip && \
- rm startupCache.zip && \
- $(ZIP) -r9m omni.jar jsloader
-endif
-
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
ifeq (bundle, $(MOZ_FS_LAYOUT))
diff -up firefox-7.0/mozilla-beta/browser/installer/package-manifest.in.cache firefox-7.0/mozilla-beta/browser/installer/package-manifest.in
--- firefox-7.0/mozilla-beta/browser/installer/package-manifest.in.cache 2011-08-31 21:16:05.000000000 +0200
+++ firefox-7.0/mozilla-beta/browser/installer/package-manifest.in 2011-09-06 10:43:04.423293819 +0200
@@ -91,6 +91,7 @@
[browser]
; [Base Browser Files]
+@BINPATH@/jsloader/
#ifndef XP_UNIX
@BINPATH@/@MOZ_APP_NAME@.exe
#else
diff -up firefox-7.0/mozilla-beta/toolkit/mozapps/installer/packager.mk.cache firefox-7.0/mozilla-beta/toolkit/mozapps/installer/packager.mk
--- firefox-7.0/mozilla-beta/toolkit/mozapps/installer/packager.mk.cache 2011-08-31 21:16:34.000000000 +0200
+++ firefox-7.0/mozilla-beta/toolkit/mozapps/installer/packager.mk 2011-09-06 10:43:52.861924899 +0200
@@ -383,7 +383,6 @@ MAKE_SDK = $(CREATE_FINAL_TAR) - $(MOZ_A
endif
ifdef MOZ_OMNIJAR
-GENERATE_CACHE ?= true
OMNIJAR_FILES = \
chrome \
@@ -413,7 +412,6 @@ PACK_OMNIJAR = \
mv tmp.manifest $$m; \
done; \
$(ZIP) -r9m omni.jar $(OMNIJAR_FILES) -x $(NON_OMNIJAR_FILES) && \
- $(GENERATE_CACHE) && \
$(OPTIMIZE_JARS_CMD) --optimize $(JARLOG_DIR_AB_CD) ./ ./ && \
mv binary.manifest components && \
printf "manifest components/binary.manifest\n" > chrome.manifest

View File

@ -1,11 +0,0 @@
--- mozilla-release-FIREFOX_70_0_RELEASE/media/ffvpx/libavcodec/utils.c.orig 2019-10-31 09:15:24.819410877 +0100
+++ mozilla-release-FIREFOX_70_0_RELEASE/media/ffvpx/libavcodec/utils.c 2019-10-31 09:13:52.736038110 +0100
@@ -421,7 +421,7 @@
if (desc->comp[0].depth >= 9) {
for (x = 0; x<bytes; x++)
((uint16_t*)dst)[x] = c[p];
- }else
+ }else if (bytes>0)
memset(dst, c[p], bytes);
dst += frame->linesize[p];
}

View File

@ -1,57 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Mon, 25 Mar 2019 20:30:11 +0100
Subject: [PATCH] Use remoting name for GDK application names
---
toolkit/xre/nsAppRunner.cpp | 6 +-----
widget/gtk/nsAppShell.cpp | 12 +++++-------
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
index df53d2f8358ba..684105058af38 100644
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -4184,11 +4184,7 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
// consistently.
// Set program name to the one defined in application.ini.
- {
- nsAutoCString program(gAppData->name);
- ToLowerCase(program);
- g_set_prgname(program.get());
- }
+ g_set_prgname(gAppData->remotingName);
// Initialize GTK here for splash.
diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp
index 24bdd5083375b..74dd54a5ae0e6 100644
--- a/widget/gtk/nsAppShell.cpp
+++ b/widget/gtk/nsAppShell.cpp
@@ -24,6 +24,8 @@
# include "WakeLockListener.h"
#endif
#include "gfxPlatform.h"
+#include "nsAppRunner.h"
+#include "mozilla/XREAppData.h"
#include "ScreenHelperGTK.h"
#include "HeadlessScreenHelper.h"
#include "mozilla/widget/ScreenManager.h"
@@ -153,13 +155,9 @@ nsresult nsAppShell::Init() {
// See https://bugzilla.gnome.org/show_bug.cgi?id=747634
//
// Only bother doing this for the parent process, since it's the one
- // creating top-level windows. (At this point, a child process hasn't
- // received the list of registered chrome packages, so the
- // GetBrandShortName call would fail anyway.)
- nsAutoString brandName;
- mozilla::widget::WidgetUtils::GetBrandShortName(brandName);
- if (!brandName.IsEmpty()) {
- gdk_set_program_class(NS_ConvertUTF16toUTF8(brandName).get());
+ // creating top-level windows.
+ if (gAppData) {
+ gdk_set_program_class(gAppData->remotingName);
}
}
}

View File

@ -1,77 +0,0 @@
Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
Date: 2021-08-09
Initial Package Version: 91.0, 91.0esr
Upstream Status: Unknown
Origin: fedora
Description: Allows firefox to build with glibc-2.34, avoiding:
firefox-91.0/js/xpconnect/src/XPCJSContext.cpp: At global scope:
firefox-91.0/js/xpconnect/src/XPCJSContext.cpp:95:5: error: call to non-'constexpr' function 'long int __sysconf(int)'
13:24.55 95 | PTHREAD_STACK_MIN < 32 * 1024 ? 32 * 1024 : PTHREAD_STACK_MIN;
13:24.55 | ^~~~~~~~~~~~~~~~~
diff -ur firefox-90.0.orig/js/xpconnect/src/XPCJSContext.cpp firefox-90.0/js/xpconnect/src/XPCJSContext.cpp
--- firefox-90.0.orig/js/xpconnect/src/XPCJSContext.cpp 2021-07-05 21:16:02.000000000 +0200
+++ firefox-90.0/js/xpconnect/src/XPCJSContext.cpp 2021-07-19 15:01:24.083460460 +0200
@@ -85,14 +85,6 @@
using namespace xpc;
using namespace JS;
-// The watchdog thread loop is pretty trivial, and should not require much stack
-// space to do its job. So only give it 32KiB or the platform minimum.
-#if !defined(PTHREAD_STACK_MIN)
-# define PTHREAD_STACK_MIN 0
-#endif
-static constexpr size_t kWatchdogStackSize =
- PTHREAD_STACK_MIN < 32 * 1024 ? 32 * 1024 : PTHREAD_STACK_MIN;
-
static void WatchdogMain(void* arg);
class Watchdog;
class WatchdogManager;
@@ -163,7 +155,7 @@
// watchdog, we need to join it on shutdown.
mThread = PR_CreateThread(PR_USER_THREAD, WatchdogMain, this,
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD,
- PR_JOINABLE_THREAD, kWatchdogStackSize);
+ PR_JOINABLE_THREAD, 0);
if (!mThread) {
MOZ_CRASH("PR_CreateThread failed!");
}
Only in firefox-90.0/js/xpconnect/src: XPCJSContext.cpp.firefox-glibc-dynstack
diff -ur firefox-90.0.orig/security/sandbox/linux/launch/SandboxLaunch.cpp firefox-90.0/security/sandbox/linux/launch/SandboxLaunch.cpp
--- firefox-90.0.orig/security/sandbox/linux/launch/SandboxLaunch.cpp 2021-07-05 18:20:36.000000000 +0200
+++ firefox-90.0/security/sandbox/linux/launch/SandboxLaunch.cpp 2021-07-20 08:39:17.272136982 +0200
@@ -501,8 +501,7 @@
MOZ_NEVER_INLINE MOZ_ASAN_BLACKLIST static pid_t DoClone(int aFlags,
jmp_buf* aCtx) {
static constexpr size_t kStackAlignment = 16;
- uint8_t miniStack[PTHREAD_STACK_MIN]
- __attribute__((aligned(kStackAlignment)));
+ uint8_t miniStack[4096] __attribute__((aligned(kStackAlignment)));
#ifdef __hppa__
void* stackPtr = miniStack;
#else
@@ -523,13 +522,19 @@
CLONE_CHILD_CLEARTID;
MOZ_RELEASE_ASSERT((aFlags & kBadFlags) == 0);
+ // Block signals due to small stack in DoClone.
+ sigset_t oldSigs;
+ BlockAllSignals(&oldSigs);
+
+ int ret = 0;
jmp_buf ctx;
if (setjmp(ctx) == 0) {
// In the parent and just called setjmp:
- return DoClone(aFlags | SIGCHLD, &ctx);
+ ret = DoClone(aFlags | SIGCHLD, &ctx);
}
+ RestoreSignals(&oldSigs);
// In the child and have longjmp'ed:
- return 0;
+ return ret;
}
static bool WriteStringToFile(const char* aPath, const char* aStr,
Only in firefox-90.0/security/sandbox/linux/launch: SandboxLaunch.cpp~

View File

@ -1,48 +0,0 @@
Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
Date: 2021-08-14
Initial Package Version: unknown, sometimes needed for 91.0.
Upstream Status: Inapplicable
Origin: found at archlinux32.
Description: This is an old patch from Arch, they build with
clang and lto and have apparently needed this in the past.
On two of my systems (one from May 21 and one of my BLFS-10.0
systems) firefox-91.0esr FTBFS with a message that a python
check on libgkrust.a identified one networking function,
getsockname, in the rust static library. The reason why this
is now giving a problem, but only on some systems, is not
understood, but this seems to stop it.
Doug found this at
https://git.archlinux32.org/packages/tree/extra/firefox/rust-static-disable-network-test-on-static-libraries.patch
--- a/config/makefiles/rust.mk 2020-10-13 20:23:09.920635480 +0200
+++ b/config/makefiles/rust.mk 2020-10-13 20:24:02.273994137 +0200
@@ -324,17 +324,17 @@
# the chance of proxy bypasses originating from rust code.
# The check only works when rust code is built with -Clto but without MOZ_LTO_RUST_CROSS.
# Sanitizers and sancov also fail because compiler-rt hooks network functions.
-ifndef MOZ_PROFILE_GENERATE
-ifeq ($(OS_ARCH), Linux)
-ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
-ifndef MOZ_LTO_RUST_CROSS
-ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
- $(call py_action,check_binary,--target --networking $@)
-endif
-endif
-endif
-endif
-endif
+#ifndef MOZ_PROFILE_GENERATE
+#ifeq ($(OS_ARCH), Linux)
+#ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
+#ifndef MOZ_LTO_RUST
+#ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
+# $(call py_action,check_binary,--target --networking $@)
+#endif
+#endif
+#endif
+#endif
+#endif
force-cargo-library-check:
$(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)

File diff suppressed because it is too large Load Diff

View File

@ -10,14 +10,12 @@
%define firefoxappdir %{_libdir}/firefox
%define firefoxsdkdir %{_libdir}/firefox-devel-%{firefox_internal_version}
%define firefoxincludedir %{_includedir}/firefox-%{version}
#%define mozilla_version central
%define mozilla_version release
#% define source_dir mozilla-%{mozilla_version}
%define pkgver %(echo %version | tr . _)
%define pkgver %(echo %version | tr . _)
Name: firefox
Version: 125.0.3
Version: 127.0
Release: 1mamba
Epoch: 1
Summary: The next generation browsing technology from mozilla.org
@ -39,27 +37,8 @@ Source8: firefox-autoupdate
Source9: firefox-17.0-script
Source10: firefox-openmamba-bookmarks-html
Patch0: firefox-4.0-version.patch
Patch1: firefox-4.0-jemalloc.patch
Patch2: firefox-4.0-build-throw.patch
Patch3: firefox-4.0-disable-checkupdates.patch
Patch4: firefox-4.0-01-default.patch
Patch5: xulrunner-2.0-os2cc.patch
Patch6: firefox-7.0-cache-build.patch
Patch7: firefox-36.0.3-fix-build-upstream.patch
Patch8: firefox-39.0-openmamba-prefs.patch
Patch9: firefox-42.0-build-add-freetype-system-wrapper.patch
Patch10: firefox-43.0.4-fix-missing-PR_snprint.patch
Patch11: firefox-47.0-gcc-6.1.0.patch
Patch12: firefox-48.0.1-install_dir.patch
Patch13: firefox-85.0.2-Use-remoting-name-for-GDK-application-names.patch
Patch14: firefox-69.0.2-no-relinking.patch
Patch15: firefox-70.0-fix-__warn_memset_zero_len.patch
Patch16: firefox-91.0-glibc-2.34.patch
Patch17: firefox-91.0-rustc-1.54.patch
Patch18: firefox-98.0.2-aarch64-update-crossbeam-channel.patch
Patch19: firefox-101.0.1-fix-ftbfs-newer-cbindgen.patch
Patch20: firefox-103.0.2-arc4random.patch
Patch21: firefox-106.0.1-aarch64-dont-build-libav-with-sysctl.patch
Patch1: firefox-126.0-rustc-1.78.0.patch
Patch2: xulrunner-2.0-os2cc.patch
License: GPL, LGPL, MPL 1.1
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -289,9 +268,8 @@ This package contains the %{2} language support files for Firefox.\
sed -e 's|__RPM_VERSION_INTERNAL__|%{firefox_internal_version}|' %{PATCH0} | patch -p0
%patch 5 -p1 -b .os2cc
#%patch17 -p1
#%patch21 -p1 -b .aarch64-dont-build-libav-with-sysctl
#%patch 1 -p1 -b .rustc-1.78.0
%patch 2 -p1 -b .os2cc
#___EOF
@ -524,7 +502,7 @@ includedir=%{firefoxincludedir}
Name: Mozilla Plug-In API
Description: Mozilla Plug-In API
Version: 125.0.3
Version: 127.0
Cflags: -I\${includedir} -DXP_UNIX
_EOF
@ -603,7 +581,7 @@ fi
%dir %{firefoxappdir}/browser/chrome
%dir %{firefoxappdir}/browser/chrome/icons
%dir %{firefoxappdir}/browser/chrome/icons/default
%{firefoxappdir}/browser/crashreporter-override.ini
#%{firefoxappdir}/browser/crashreporter-override.ini
%attr(644, root, root) %{firefoxappdir}/browser/chrome/icons/default/default*.png
#%dir %{firefoxappdir}/browser/extensions
%{firefoxappdir}/browser/features/*.xpi
@ -625,7 +603,7 @@ fi
%dir %{firefoxappdir}/gmp-clearkey
%dir %{firefoxappdir}/gmp-clearkey/0.1
%{firefoxappdir}/gmp-clearkey/0.1/*
%{firefoxappdir}/Throbber-small.gif
#%{firefoxappdir}/Throbber-small.gif
#%{firefoxappdir}/gtk2/libmozgtk.so
%{firefoxappdir}/omni.ja
#%{firefoxappdir}/plugin-container
@ -639,6 +617,15 @@ fi
%{_libdir}/pkgconfig/mozilla-plugin.pc
%changelog
* Mon Jun 17 2024 Automatic Build System <autodist@openmamba.org> 127.0-1mamba
- automatic version update by autodist
* Tue May 28 2024 Automatic Build System <autodist@openmamba.org> 126.0.1-1mamba
- automatic version update by autodist
* Sun May 19 2024 Automatic Build System <autodist@openmamba.org> 126.0-1mamba
- automatic version update by autodist
* Mon Apr 29 2024 Automatic Build System <autodist@openmamba.org> 125.0.3-1mamba
- automatic version update by autodist