pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/thunderbird52 thunderbird52: Various fixes for gc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/df29d2549292
branches: trunk
changeset: 769674:df29d2549292
user: nia <nia%pkgsrc.org@localhost>
date: Thu Nov 18 15:33:16 2021 +0000
description:
thunderbird52: Various fixes for gcc>7 from firefox52
diffstat:
mail/thunderbird52/distinfo | 5 +-
mail/thunderbird52/patches/patch-mozilla_gfx_thebes_gfxFont.cpp | 27 ++++++++++
mail/thunderbird52/patches/patch-mozilla_js_xpconnect_src_XPCWrappedNative.cpp | 24 ++++++++
3 files changed, 54 insertions(+), 2 deletions(-)
diffs (85 lines):
diff -r 13bffad4bfed -r df29d2549292 mail/thunderbird52/distinfo
--- a/mail/thunderbird52/distinfo Thu Nov 18 14:45:37 2021 +0000
+++ b/mail/thunderbird52/distinfo Thu Nov 18 15:33:16 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 10:54:32 nia Exp $
+$NetBSD: distinfo,v 1.7 2021/11/18 15:33:16 nia Exp $
BLAKE2s (thunderbird-52.9.1.source.tar.xz) = bfd83c193ff48ad9f1e54125d19b7bab4060a898836645ac871159450ec153b9
SHA512 (thunderbird-52.9.1.source.tar.xz) = 0de80a5036b1e8a5a8549c546b4693cb285ee4d10f546f4b4aceed9e1d6c64b9dbafce7bacaaf057112130036f7b41fb2e0fa3343412140e6ac926dd94c27d23
@@ -51,6 +51,7 @@
SHA1 (patch-mozilla_gfx_moz.build) = ced2bc2e349cb4d58137ae64f4ec75b04239e854
SHA1 (patch-mozilla_gfx_skia_generate__mozbuild.py) = c85162fd7517a4e006512fef42a3c5124d2704aa
SHA1 (patch-mozilla_gfx_skia_moz.build) = 359b4f6fc45ec4fcc6376cc67ec3c2485cb15877
+SHA1 (patch-mozilla_gfx_thebes_gfxFont.cpp) = 2b360f66702411050741934d80b7bde554f69ce1
SHA1 (patch-mozilla_gfx_thebes_moz.build) = ba8f4af4ec885bee26949470682d2e48e240c7de
SHA1 (patch-mozilla_gfx_ycbcr_moz.build) = 84eab4220cbce9ad44a62b7ba64e838927382b13
SHA1 (patch-mozilla_gfx_ycbcr_yuv__row__arm.S) = b0a01fed529bbbea8e1ca06d8154f9cf331f844d
@@ -74,7 +75,7 @@
SHA1 (patch-mozilla_js_src_moz.build) = 9220c6c618b1db6f88fd58b27b9ae9f742d2602a
SHA1 (patch-mozilla_js_src_old-configure.in) = 8349fe3c700404c2c2d9512068edab9b097508c9
SHA1 (patch-mozilla_js_xpconnect_src_XPCConvert.cpp) = fb20844c866045677ce7b14099cf7a748d430f64
-SHA1 (patch-mozilla_js_xpconnect_src_XPCWrappedNative.cpp) = c188ceff949cfc83a1da047f3cdbc6fac506d57f
+SHA1 (patch-mozilla_js_xpconnect_src_XPCWrappedNative.cpp) = 9d9c20021e051183f28059f2f572ab375e96abde
SHA1 (patch-mozilla_js_xpconnect_src_xpcprivate.h) = 4dc5838b1fe482aca023ce992ebf414ee39d0aef
SHA1 (patch-mozilla_media_libcubeb_src_cubeb.c) = 993d921016d126a3fbd139b212c35a09606d184c
SHA1 (patch-mozilla_media_libcubeb_src_cubeb__alsa.c) = 8139652f4d101135efe6ec379cbf89e83061c488
diff -r 13bffad4bfed -r df29d2549292 mail/thunderbird52/patches/patch-mozilla_gfx_thebes_gfxFont.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird52/patches/patch-mozilla_gfx_thebes_gfxFont.cpp Thu Nov 18 15:33:16 2021 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-mozilla_gfx_thebes_gfxFont.cpp,v 1.1 2021/11/18 15:33:16 nia Exp $
+
+Add an explicit template instantiation to make it work
+with newer gcc (older gcc did not create specialized inline
+clones).
+
+--- mozilla/gfx/thebes/gfxFont.cpp.orig 2018-07-09 19:54:37.000000000 +0000
++++ mozilla/gfx/thebes/gfxFont.cpp
+@@ -2614,6 +2614,18 @@ gfxFont::GetShapedWord(DrawTarget *aDraw
+ return sw;
+ }
+
++template
++gfxShapedWord*
++gfxFont::GetShapedWord(DrawTarget *aDrawTarget,
++ const uint8_t *aText,
++ uint32_t aLength,
++ uint32_t aHash,
++ Script aRunScript,
++ bool aVertical,
++ int32_t aAppUnitsPerDevUnit,
++ uint32_t aFlags,
++ gfxTextPerfMetrics *aTextPerf GFX_MAYBE_UNUSED);
++
+ bool
+ gfxFont::CacheHashEntry::KeyEquals(const KeyTypePointer aKey) const
+ {
diff -r 13bffad4bfed -r df29d2549292 mail/thunderbird52/patches/patch-mozilla_js_xpconnect_src_XPCWrappedNative.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird52/patches/patch-mozilla_js_xpconnect_src_XPCWrappedNative.cpp Thu Nov 18 15:33:16 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-mozilla_js_xpconnect_src_XPCWrappedNative.cpp,v 1.1 2021/11/18 15:33:16 nia Exp $
+
+Avoid error when compiling with gcc 9:
+XPCWrappedNative.cpp:2221:41: error: '%s' directive argument is null [-Werror=format-overflow=]
+ 2221 | name = JS_sprintf_append(name, fmt,
+ | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
+ 2222 | array[i]->GetNameString());
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+--- mozilla/js/xpconnect/src/XPCWrappedNative.cpp.orig 2018-07-09 19:54:43.000000000 +0000
++++ mozilla/js/xpconnect/src/XPCWrappedNative.cpp
+@@ -2218,8 +2218,10 @@ XPCWrappedNative::ToString(XPCWrappedNat
+ const char* fmt = (i == 0) ?
+ "(%s" : (i == count-1) ?
+ ", %s)" : ", %s";
+- name = JS_sprintf_append(name, fmt,
+- array[i]->GetNameString());
++ const char *s = array[i]->GetNameString();
++ if (s == NULL)
++ s = "-";
++ name = JS_sprintf_append(name, fmt, s);
+ }
+ }
+ }
Home |
Main Index |
Thread Index |
Old Index