From e9e623d92b65ec06dc007bb9d85915d8aa064044 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 30 Apr 2019 16:06:36 -0400 Subject: palemoon on fc30 disable -Wformat-overflow The problem lies with gcc 9 which changes how it searches printf parameters when using -Wformat-overflow. Gcc 9 is not released yet and causes problems when compiling the palemoon codebase. This commit still fails on rawhide but works in fc30 which is good enough for now. --- palemoon/palemoon-stackrpms.spec | 3 +++ palemoon/palemoon.spec | 3 +++ 2 files changed, 6 insertions(+) (limited to 'palemoon') diff --git a/palemoon/palemoon-stackrpms.spec b/palemoon/palemoon-stackrpms.spec index c814daf..f493919 100644 --- a/palemoon/palemoon-stackrpms.spec +++ b/palemoon/palemoon-stackrpms.spec @@ -106,6 +106,9 @@ and themes to make the browser truly your own. %prep %setup -q -n %{tarballdir} %{__cp} %{SOURCE1} ./.mozconfig +%if 0%{?fedora} >= 30 +sed -i -r -e '/enable-optimize/s/"\s*$/ -Wno-format-overflow"/' ./.mozconfig +%endif %if 0%{stackrpms_custom} %patch0 -p1 diff --git a/palemoon/palemoon.spec b/palemoon/palemoon.spec index 6e08fb3..5bf1fdb 100644 --- a/palemoon/palemoon.spec +++ b/palemoon/palemoon.spec @@ -106,6 +106,9 @@ and themes to make the browser truly your own. %prep %setup -q -n %{tarballdir} %{__cp} %{SOURCE1} ./.mozconfig +%if 0%{?fedora} >= 30 +sed -i -r -e '/enable-optimize/s/"\s*$/ -Wno-format-overflow"/' ./.mozconfig +%endif %if 0%{stackrpms_custom} %patch0 -p1 -- cgit