From 6c4bb8f858c28744d80c913cb75eb4864a00eda9 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sun, 3 Jul 2016 03:29:08 +0000 Subject: [PATCH] Added firefox-47.0.1-gcc6-1.patch to fix issues with GCC-6.1. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17546 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- general.ent | 4 ++-- introduction/welcome/changelog.xml | 13 ++++++++++-- xsoft/graphweb/firefox.xml | 32 ++++++++++++++++++++---------- 3 files changed, 34 insertions(+), 15 deletions(-) diff --git a/general.ent b/general.ent index 1d2fa6d95a..602fea7772 100644 --- a/general.ent +++ b/general.ent @@ -1,12 +1,12 @@ - + - + diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index bd52066d20..4234654c31 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -43,12 +43,21 @@ --> + + July 3rd, 2016 + + + [dj] - Added firefox-47.0.1-gcc6-1.patch. Fixes + #8015. + + + + July 2nd, 2016 - [dj] - Update to Firefox-47.0.1. Fixes - #8015. + [dj] - Update to Firefox-47.0.1. [dj] - Update to Thunderbird-45.2.0. Fixes diff --git a/xsoft/graphweb/firefox.xml b/xsoft/graphweb/firefox.xml index a1235a170f..58533f2349 100644 --- a/xsoft/graphweb/firefox.xml +++ b/xsoft/graphweb/firefox.xml @@ -72,6 +72,12 @@ Additional Downloads + + + Required patch if using gcc-6 or later + + + Required patch if using gtk+-3.20 or later (do not use with earlier versions) @@ -275,6 +281,12 @@ EOF commands: + + Fix an issue with GCC-6.0 and higher: + + +patch -Np1 -i ../firefox-&firefox-version;-gcc6-1.patch + If you are using gtk+-3.20 or later, apply a patch to restore the slider on scrollbars: @@ -297,16 +309,10 @@ EOF SHELL=/bin/sh. -sed -e '/#include/i\ - print OUT "#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS\\n"\;' \ - -i nsprpub/config/make-system-wrappers.pl - -sed -e '/#include/a\ - print OUT "#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS\\n"\;' \ - -i nsprpub/config/make-system-wrappers.pl - -CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" -CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" +export CFLAGS_HOLD=$CFLAGS && +export CXXFLAGS_HOLD=$CXXFLAGS && +export CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" && +export CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" && make -f client.mk @@ -322,7 +328,11 @@ make -f client.mk chown -R 0:0 /usr/lib/firefox-&firefox-version; && mkdir -pv /usr/lib/mozilla/plugins && -ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser +ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser && + +export CFLAGS=$CFLAGS_HOLD && +export CXXFLAGS=$CXXFLAGS_HOLD && +unset CFLAGS_HOLD CXXFLAGS_HOLD