summaryrefslogtreecommitdiffstats
path: root/debian/patches/fixes
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fixes')
-rw-r--r--debian/patches/fixes/Allow-.js-preference-files-to-set-locked-prefs-with-lockP.patch77
-rw-r--r--debian/patches/fixes/Appdata-Adding-some-German-translations.patch48
-rw-r--r--debian/patches/fixes/Appdata-Fix-up-AppStream-error-by-adding-missing-field.patch21
-rw-r--r--debian/patches/fixes/Fix-math_private.h-for-i386-FTBFS.patch25
-rw-r--r--debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch22
-rw-r--r--debian/patches/fixes/Properly-launch-applications-set-in-HOME-.mailcap.patch24
-rw-r--r--debian/patches/fixes/skia-Cast-SkEndian_SwapBE32-n-to-uint32_t-on-big-endian.patch25
7 files changed, 242 insertions, 0 deletions
diff --git a/debian/patches/fixes/Allow-.js-preference-files-to-set-locked-prefs-with-lockP.patch b/debian/patches/fixes/Allow-.js-preference-files-to-set-locked-prefs-with-lockP.patch
new file mode 100644
index 0000000000..b77465002b
--- /dev/null
+++ b/debian/patches/fixes/Allow-.js-preference-files-to-set-locked-prefs-with-lockP.patch
@@ -0,0 +1,77 @@
+From: Mike Hommey <glandium@debian.org>
+Date: Sat, 21 Jun 2008 02:48:46 +0200
+Subject: Allow .js preference files to set locked prefs with lockPref()
+
+---
+ modules/libpref/parser/src/lib.rs | 23 ++++++++++++-----------
+ 1 file changed, 12 insertions(+), 11 deletions(-)
+
+diff --git a/modules/libpref/parser/src/lib.rs b/modules/libpref/parser/src/lib.rs
+index 3a0ad2c..ae884a6 100644
+--- a/modules/libpref/parser/src/lib.rs
++++ b/modules/libpref/parser/src/lib.rs
+@@ -11,7 +11,7 @@
+ //! ```text
+ //! <pref-file> = <pref>*
+ //! <pref> = <pref-spec> "(" <pref-name> "," <pref-value> <pref-attrs> ")" ";"
+-//! <pref-spec> = "user_pref" | "pref" | "sticky_pref" // in default pref files
++//! <pref-spec> = "user_pref" | "pref" | "sticky_pref | lockPref" // in default pref files
+ //! <pref-spec> = "user_pref" // in user pref files
+ //! <pref-name> = <string-literal>
+ //! <pref-value> = <string-literal> | "true" | "false" | <int-value>
+@@ -169,6 +169,7 @@ enum Token {
+ // Keywords
+ Pref, // pref
+ StickyPref, // sticky_pref
++ LockPref, // lockPref
+ UserPref, // user_pref
+ True, // true
+ False, // false
+@@ -291,7 +292,7 @@ struct KeywordInfo {
+ token: Token,
+ }
+
+-const KEYWORD_INFOS: [KeywordInfo; 7] = [
++const KEYWORD_INFOS: [KeywordInfo; 8] = [
+ // These are ordered by frequency.
+ KeywordInfo {
+ string: b"pref",
+@@ -321,6 +322,10 @@ const KEYWORD_INFOS: [KeywordInfo; 7] = [
+ string: b"sticky_pref",
+ token: Token::StickyPref,
+ },
++ KeywordInfo {
++ string: b"lock_pref",
++ token: Token::LockPref,
++ },
+ ];
+
+ struct Parser<'t> {
+@@ -373,14 +378,11 @@ impl<'t> Parser<'t> {
+ // this will be either the first token of a new pref, or EOF.
+ loop {
+ // <pref-spec>
+- let (pref_value_kind, mut is_sticky) = match token {
+- Token::Pref if self.kind == PrefValueKind::Default => {
+- (PrefValueKind::Default, false)
+- }
+- Token::StickyPref if self.kind == PrefValueKind::Default => {
+- (PrefValueKind::Default, true)
+- }
+- Token::UserPref => (PrefValueKind::User, false),
++ let (pref_value_kind, mut is_sticky, mut is_locked) = match token {
++ Token::Pref => (PrefValueKind::Default, false, false),
++ Token::StickyPref => (PrefValueKind::Default, true, false),
++ Token::LockPref => (PrefValueKind::Default, false, true),
++ Token::UserPref => (PrefValueKind::User, false, false),
+ Token::SingleChar(EOF) => return !self.has_errors,
+ _ => {
+ token = self.error_and_recover(
+@@ -490,7 +492,6 @@ impl<'t> Parser<'t> {
+ };
+
+ // ("," <pref-attr>)* // default pref files only
+- let mut is_locked = false;
+ let mut has_attrs = false;
+ if self.kind == PrefValueKind::Default {
+ let ok = loop {
diff --git a/debian/patches/fixes/Appdata-Adding-some-German-translations.patch b/debian/patches/fixes/Appdata-Adding-some-German-translations.patch
new file mode 100644
index 0000000000..13088078d8
--- /dev/null
+++ b/debian/patches/fixes/Appdata-Adding-some-German-translations.patch
@@ -0,0 +1,48 @@
+From: Carsten Schoenert <c.schoenert@t-online.de>
+Date: Sun, 18 Oct 2020 08:38:29 +0200
+Subject: Appdata: Adding some German translations
+
+---
+ .../thunderbird/net.thunderbird.Thunderbird.appdata.xml | 17 +++++++++++++++++
+ 1 file changed, 17 insertions(+)
+
+diff --git a/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml b/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml
+index 30397d1..d31e2dd 100644
+--- a/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml
++++ b/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml
+@@ -3,7 +3,9 @@
+ <id>net.thunderbird.Thunderbird</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Thunderbird</name>
++ <name xml:lang="de">Thunderbird</name>
+ <summary>Thunderbird is a free and open source email, newsfeed, chat, and calendaring client</summary>
++ <summary xml:lang="de">Thunderbird ist ein freier und Quelloffener Klient für E-Mail-, Newsfeed-, Chat- und Kalender</summary>
+ <description>
+ <!-- From https://www.thunderbird.net/en-US/about/ -->
+ <p>
+@@ -14,10 +16,25 @@
+ that can’t communicate with each other. We want our users to have freedom
+ and choice in how they communicate.
+ </p>
++ <!-- Von https://www.thunderbird.net/de/about/ -->
++ <p xml:lang="de">
++ Thunderbird ist ein kostenloses E-Mail-, Newsfeed-, Chat- und
++ Kalender-Programm, das einfach einzurichten und anzupassen ist. Eines
++ der Kernprinzipien von Thunderbird ist die Verwendung und Förderung
++ offener Standards – durch diesen Fokus lehnen wir die geschlossenen
++ Plattformen und Dienste unserer Welt ab, die nicht miteinander
++ kommunizieren können. Wir möchten, dass unsere Benutzer die Freiheit
++ und Wahl haben, wie sie kommunizieren.
++ </p>
++
+ <p>
+ Thunderbird is an open source project, which means anyone can contribute
+ ideas, designs, code, and time helping fellow users.
+ </p>
++ <p xml:lang="de">
++ Thunderbird ist ein Freies Softwareprojekt, jede Person kann Ideen,
++ Designs, Code und Zeit einbringen um anderen Benutzern zu helfen.
++ </p>
+ </description>
+ <categories>
+ <category>Calendar</category>
diff --git a/debian/patches/fixes/Appdata-Fix-up-AppStream-error-by-adding-missing-field.patch b/debian/patches/fixes/Appdata-Fix-up-AppStream-error-by-adding-missing-field.patch
new file mode 100644
index 0000000000..0472ed9173
--- /dev/null
+++ b/debian/patches/fixes/Appdata-Fix-up-AppStream-error-by-adding-missing-field.patch
@@ -0,0 +1,21 @@
+From: Carsten Schoenert <c.schoenert@t-online.de>
+Date: Sun, 18 Oct 2020 08:39:44 +0200
+Subject: Appdata: Fix up AppStream error by adding missing field
+
+The AppStream data is missing the lauchable element.
+---
+ comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml b/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml
+index d31e2dd..1f20e06 100644
+--- a/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml
++++ b/comm/mail/branding/thunderbird/net.thunderbird.Thunderbird.appdata.xml
+@@ -2,6 +2,7 @@
+ <component type="desktop-application">
+ <id>net.thunderbird.Thunderbird</id>
+ <metadata_license>CC0-1.0</metadata_license>
++ <launchable type="desktop-id">thunderbird.desktop</launchable>
+ <name>Thunderbird</name>
+ <name xml:lang="de">Thunderbird</name>
+ <summary>Thunderbird is a free and open source email, newsfeed, chat, and calendaring client</summary>
diff --git a/debian/patches/fixes/Fix-math_private.h-for-i386-FTBFS.patch b/debian/patches/fixes/Fix-math_private.h-for-i386-FTBFS.patch
new file mode 100644
index 0000000000..ff53126401
--- /dev/null
+++ b/debian/patches/fixes/Fix-math_private.h-for-i386-FTBFS.patch
@@ -0,0 +1,25 @@
+From: Mike Hommey <mh@glandium.org>
+Date: Sat, 27 Nov 2021 06:49:44 +0900
+Subject: Fix math_private.h for i386 FTBFS
+
+Cherry picked from firefox.
+---
+ modules/fdlibm/src/math_private.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h
+index f4373f2..632d2c4 100644
+--- a/modules/fdlibm/src/math_private.h
++++ b/modules/fdlibm/src/math_private.h
+@@ -30,7 +30,11 @@
+ * Adapted from https://github.com/freebsd/freebsd-src/search?q=__double_t
+ */
+
++#if defined __FLT_EVAL_METHOD__ && (__FLT_EVAL_METHOD__ == 2)
++typedef long double __double_t;
++#else
+ typedef double __double_t;
++#endif
+ typedef __double_t double_t;
+ typedef float __float_t;
+
diff --git a/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch b/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch
new file mode 100644
index 0000000000..088c79b0b8
--- /dev/null
+++ b/debian/patches/fixes/Load-dependent-libraries-with-their-real-path.patch
@@ -0,0 +1,22 @@
+From: Christoph Goehre <chris@sigxcpu.org>
+Date: Mon, 16 Sep 2013 20:40:57 +0200
+Subject: Load dependent libraries with their real path
+
+---
+ xpcom/glue/standalone/nsXPCOMGlue.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/xpcom/glue/standalone/nsXPCOMGlue.cpp b/xpcom/glue/standalone/nsXPCOMGlue.cpp
+index 09edef1..6930417 100644
+--- a/xpcom/glue/standalone/nsXPCOMGlue.cpp
++++ b/xpcom/glue/standalone/nsXPCOMGlue.cpp
+@@ -140,6 +140,9 @@ static ReadDependentCBResult ReadDependentCB(
+ ReadAheadLib(aDependentLib);
+ }
+ #endif
++ char lib[MAXPATHLEN];
++ if (realpath(aDependentLib, lib))
++ aDependentLib = lib;
+ LibHandleType libHandle;
+ MOZ_TRY_VAR(libHandle, GetLibHandle(aDependentLib));
+
diff --git a/debian/patches/fixes/Properly-launch-applications-set-in-HOME-.mailcap.patch b/debian/patches/fixes/Properly-launch-applications-set-in-HOME-.mailcap.patch
new file mode 100644
index 0000000000..0b05f7adc9
--- /dev/null
+++ b/debian/patches/fixes/Properly-launch-applications-set-in-HOME-.mailcap.patch
@@ -0,0 +1,24 @@
+From: Mike Hommey <glandium@debian.org>
+Date: Sat, 22 Nov 2008 09:35:23 +0100
+Subject: Properly launch applications set in $HOME/.mailcap
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=444440
+---
+ uriloader/exthandler/unix/nsMIMEInfoUnix.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
+index 330c441..ff9d78b 100644
+--- a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
++++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp
+@@ -57,6 +57,10 @@ nsresult nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile* aFile) {
+ }
+
+ nsAutoCString nativePath;
++/* the name of the function has changed
++ * the old was the following:
++ nsCAutoString nativePath;
++ */
+ aFile->GetNativePath(nativePath);
+
+ nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
diff --git a/debian/patches/fixes/skia-Cast-SkEndian_SwapBE32-n-to-uint32_t-on-big-endian.patch b/debian/patches/fixes/skia-Cast-SkEndian_SwapBE32-n-to-uint32_t-on-big-endian.patch
new file mode 100644
index 0000000000..1afb5dab63
--- /dev/null
+++ b/debian/patches/fixes/skia-Cast-SkEndian_SwapBE32-n-to-uint32_t-on-big-endian.patch
@@ -0,0 +1,25 @@
+From: Carsten Schoenert <c.schoenert@t-online.de>
+Date: Tue, 18 Jul 2023 16:02:48 +0200
+Subject: skia: Cast SkEndian_SwapBE32(n) to uint32_t on big-endian
+
+On BE the byte-swapping needs to be unint32_t so cast that to that.
+We have ppc64 and s390x which are Big Endian platforms.
+
+Based on https://cgit.freebsd.org/ports/commit/?id=3110f3a0dcfdf1d5be165bbbb1ff08d720c63c48
+---
+ gfx/skia/skia/src/base/SkEndian.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gfx/skia/skia/src/base/SkEndian.h b/gfx/skia/skia/src/base/SkEndian.h
+index 732c248..ea35557 100644
+--- a/gfx/skia/skia/src/base/SkEndian.h
++++ b/gfx/skia/skia/src/base/SkEndian.h
+@@ -131,7 +131,7 @@ static inline void SkEndianSwap64s(uint64_t array[], int count) {
+ #define SkTEndian_SwapLE64(n) (n)
+ #else // SK_CPU_BENDIAN
+ #define SkEndian_SwapBE16(n) (n)
+- #define SkEndian_SwapBE32(n) (n)
++ #define SkEndian_SwapBE32(n) uint32_t(n)
+ #define SkEndian_SwapBE64(n) (n)
+ #define SkEndian_SwapLE16(n) SkEndianSwap16(n)
+ #define SkEndian_SwapLE32(n) SkEndianSwap32(n)