From e0edcd930c9983d51c8f91ea859964cedc77c6a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 18 Mar 2017 21:24:59 +0100 Subject: [PATCH] - added gcc bug workaround, still does not work --- mozilla-1245783.patch | 17 +++++++++++++++++ thunderbird.spec | 7 ++----- 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 mozilla-1245783.patch diff --git a/mozilla-1245783.patch b/mozilla-1245783.patch new file mode 100644 index 0000000..b0bd9ee --- /dev/null +++ b/mozilla-1245783.patch @@ -0,0 +1,17 @@ +# Remove when mozbz#1269319 lands + +--- firefox-45.0.1-orig/mozilla/js/src/Makefile.in 2016-05-17 14:53:58.753178403 +0200 ++++ firefox-45.0.1/mozilla/js/src/Makefile.in 2016-05-17 14:53:28.432817862 +0200 +@@ -144,6 +144,11 @@ distclean:: + + CFLAGS += $(MOZ_ZLIB_CFLAGS) + ++# Avoid GNU gcc bug #70526 ++# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70526#c14 ++CFLAGS += -fno-schedule-insns2 ++CXXFLAGS += -fno-schedule-insns2 ++ + # Silence warnings on AIX/HP-UX from non-GNU compilers + ifndef GNU_CC + ifeq ($(OS_ARCH),AIX) + diff --git a/thunderbird.spec b/thunderbird.spec index f5a4ab9..334db1e 100644 --- a/thunderbird.spec +++ b/thunderbird.spec @@ -35,6 +35,7 @@ Patch0: prefs.patch Patch1: no-subshell.patch Patch2: enable-addons.patch Patch3: mozilla-1269171-badalloc.patch +Patch4: mozilla-1245783.patch URL: http://www.mozilla.org/projects/thunderbird/ BuildRequires: GConf2-devel >= 1.2.1 BuildRequires: alsa-lib-devel @@ -134,14 +135,12 @@ funkcjonalność kalendarza. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build cat << EOF > .mozconfig mk_add_options MOZ_OBJDIR=%{objdir} -export CFLAGS="%{rpmcflags}" -export CXXFLAGS="%{rpmcflags}" - %if %{with crashreporter} export MOZ_DEBUG_SYMBOLS=1 %endif @@ -168,8 +167,6 @@ ac_add_options --enable-debugger-info-modules ac_add_options --enable-crash-on-assert %else ac_add_options --disable-debug -ac_add_options --disable-debug-modules -ac_add_options --disable-logging ac_add_options --enable-optimize="%{rpmcflags} -Os" %endif ac_add_options --disable-strip -- 2.44.0