From 1f8e55111de54c37c83e0731b33b9312ee1b3fc51cd56eea6636621aa72b2e58 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 15 Jun 2016 07:55:15 +0000 Subject: [PATCH] - mozilla-binutils-visibility.patch to fix build issues with gcc/binutils combination used in Leap 42.2 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=524 --- MozillaFirefox.changes | 6 ++++++ MozillaFirefox.spec | 2 ++ mozilla-binutils-visibility.patch | 30 ++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 mozilla-binutils-visibility.patch diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index acd8dfe..6a17f58 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 15 07:52:18 UTC 2016 - wr@rosenauer.org + +- mozilla-binutils-visibility.patch to fix build issues with + gcc/binutils combination used in Leap 42.2 + ------------------------------------------------------------------- Tue Jun 14 08:35:03 UTC 2016 - badshah400@gmail.com diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 336ede9..25feddf 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -149,6 +149,7 @@ Patch13: mozilla-check_return.patch Patch14: mozilla-gcc6.patch Patch15: mozilla-exclude-nametablecpp.patch Patch16: mozilla-aarch64-48bit-va.patch +Patch17: mozilla-binutils-visibility.patch # Firefox/browser Patch101: firefox-kde.patch Patch102: firefox-no-default-ualocale.patch @@ -264,6 +265,7 @@ cd $RPM_BUILD_DIR/mozilla %patch14 -p1 %patch15 -p1 %patch16 -p1 +%patch17 -p1 # Firefox %patch101 -p1 %patch102 -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.