From 12225ae41588481b53458f36bf24ba3dd89dd18711a53eff1e00b6e35e4effed Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Fri, 24 Jun 2016 14:11:32 +0000 Subject: [PATCH] - mozilla-binutils-visibility.patch to fix build issues with gcc/binutils combination used in Leap 42.2 (boo#984637) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=325 --- MozillaThunderbird.changes | 6 ++++++ MozillaThunderbird.spec | 2 ++ mozilla-binutils-visibility.patch | 30 ++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 mozilla-binutils-visibility.patch diff --git a/MozillaThunderbird.changes b/MozillaThunderbird.changes index 6a9a586..665166d 100644 --- a/MozillaThunderbird.changes +++ b/MozillaThunderbird.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 24 14:10:58 UTC 2016 - wr@rosenauer.org + +- mozilla-binutils-visibility.patch to fix build issues with + gcc/binutils combination used in Leap 42.2 (boo#984637) + ------------------------------------------------------------------- Thu Jun 23 10:15:51 UTC 2016 - wr@rosenauer.org diff --git a/MozillaThunderbird.spec b/MozillaThunderbird.spec index 1c80776..efa82c3 100644 --- a/MozillaThunderbird.spec +++ b/MozillaThunderbird.spec @@ -106,6 +106,7 @@ Patch5: mozilla-no-stdcxx-check.patch Patch6: mozilla-gcc6.patch Patch7: mozilla-flexible-array-member-in-union.patch Patch8: mozilla-aarch64-48bit-va.patch +Patch9: mozilla-binutils-visibility.patch # Thunderbird/mail Patch20: tb-ssldap.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -204,6 +205,7 @@ pushd mozilla %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 popd # comm-central patches %patch20 -p1 diff --git a/mozilla-binutils-visibility.patch b/mozilla-binutils-visibility.patch new file mode 100644 index 0000000..6cb168c --- /dev/null +++ b/mozilla-binutils-visibility.patch @@ -0,0 +1,30 @@ +# HG changeset patch +# User Wolfgang Rosenauer +# Parent 83bc32d997c714b607db1ffa71f02b30e1484a75 +From: NetBSD +Subject: Workaround for gcc/binutils combination in Leap 42.2 +References: +https://bugzilla.opensuse.org/show_bug.cgi?id=984637 + +diff --git a/xpcom/components/Module.h b/xpcom/components/Module.h +--- a/xpcom/components/Module.h ++++ b/xpcom/components/Module.h +@@ -120,17 +120,17 @@ struct Module + #if defined(MOZILLA_INTERNAL_API) + # define NSMODULE_NAME(_name) _name##_NSModule + # if defined(_MSC_VER) + # pragma section(".kPStaticModules$M", read) + # pragma comment(linker, "/merge:.kPStaticModules=.rdata") + # define NSMODULE_SECTION __declspec(allocate(".kPStaticModules$M"), dllexport) + # elif defined(__GNUC__) + # if defined(__ELF__) +-# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("protected"))) ++# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("default"))) + # elif defined(__MACH__) + # define NSMODULE_SECTION __attribute__((section("__DATA, .kPStaticModules"), visibility("default"))) + # elif defined (_WIN32) + # define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), dllexport)) + # endif + # endif + # if !defined(NSMODULE_SECTION) + # error Do not know how to define sections.