commit: bb04b47145e309e8f7950900cd0c378d4ba66771 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Mar 17 16:02:07 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Mar 17 16:03:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb04b471
app-office/gnucash: drop -Werror Closes: https://bugs.gentoo.org/901485 Signed-off-by: Sam James <sam <AT> gentoo.org> .../gnucash/files/gnucash-4.13-no-werror.patch | 20 ++++++++++++++++++++ app-office/gnucash/gnucash-4.13.ebuild | 1 + 2 files changed, 21 insertions(+) diff --git a/app-office/gnucash/files/gnucash-4.13-no-werror.patch b/app-office/gnucash/files/gnucash-4.13-no-werror.patch new file mode 100644 index 000000000000..5b45898eacc1 --- /dev/null +++ b/app-office/gnucash/files/gnucash-4.13-no-werror.patch @@ -0,0 +1,20 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -578,14 +578,14 @@ set(CMAKE_C_STANDARD_REQUIRED ON) + set(CMAKE_C_EXTENSIONS ON) + + if (UNIX) +- set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused ${CMAKE_C_FLAGS}") ++ set( CMAKE_C_FLAGS "-Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-unused ${CMAKE_C_FLAGS}") + set( CMAKE_C_FLAGS "-Wno-error=deprecated-declarations -Wno-error=parentheses ${CMAKE_C_FLAGS}") +- set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}") ++ set( CMAKE_CXX_FLAGS "-Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses ${CMAKE_CXX_FLAGS}") + set( CMAKE_CXX_FLAGS "-Wno-error=deprecated-declarations ${REGISTER_CXXFLAG} ${CMAKE_CXX_FLAGS}") + set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}") + endif() + if (MINGW) +- set( CMAKE_C_FLAGS "-Werror -Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -Wno-error=deprecated-declarations ${CMAKE_C_FLAGS}") ++ set( CMAKE_C_FLAGS "-Wdeclaration-after-statement -Wno-pointer-sign -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -Wno-error=deprecated-declarations ${CMAKE_C_FLAGS}") + set( CMAKE_CXX_FLAGS "-DWINVER=0x0500 -D_EMULATE_GLIBC=0 ${CMAKE_CXX_FLAGS}") # Workaround for bug in gtest on mingw, see https://github.com/google/googletest/issues/893 and https://github.com/google/googletest/issues/920 + endif() + diff --git a/app-office/gnucash/gnucash-4.13.ebuild b/app-office/gnucash/gnucash-4.13.ebuild index f1335eb5330f..42de933a3330 100644 --- a/app-office/gnucash/gnucash-4.13.ebuild +++ b/app-office/gnucash/gnucash-4.13.ebuild @@ -101,6 +101,7 @@ PDEPEND=" PATCHES=( "${FILESDIR}/${PN}-3.8-exclude-license.patch" "${FILESDIR}/${PN}-4.12-drop-broken-test.patch" + "${FILESDIR}/${PN}-4.13-no-werror.patch" # This is only to prevent webkit2gtk-4 from being selected. # https://bugs.gentoo.org/893676
