[packages/gnucash] - disable -Werror to make python bindings build
baggins
baggins at pld-linux.org
Thu Nov 12 01:26:44 CET 2026
commit 223919cc748295a540d23e2288e9002639fe13eb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Nov 12 01:26:01 2026 +0100
- disable -Werror to make python bindings build
gnucash.spec | 2 ++
no-Werror.patch | 13 +++++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/gnucash.spec b/gnucash.spec
index 930cf2f..95db3e2 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -18,6 +18,7 @@ License: GPL v2+
Group: X11/Applications
Source0: https://sourceforge.net/projects/gnucash/files/gnucash%20%28stable%29/%{version}/%{name}-%{version}.tar.bz2
# Source0-md5: ccaa86414726894d6ac425777d745031
+Patch0: no-Werror.patch
URL: http://www.gnucash.org/
BuildRequires: boost-devel >= 1.60.0
BuildRequires: cmake >= 3.5
@@ -122,6 +123,7 @@ Pliki nagłówkowe bibliotek GnuCash.
%prep
%setup -q
+%patch -P0 -p1
%build
install -d build
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..2ee54a4
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,13 @@
+--- gnucash-5.17/CMakeLists.txt~ 2026-09-26 21:58:00.000000000 +0200
++++ gnucash-5.17/CMakeLists.txt 2026-11-12 01:25:07.091275671 +0100
+@@ -638,8 +638,8 @@
+ set(CMAKE_C_EXTENSIONS ON)
+
+ if (UNIX)
+- set( CMAKE_C_FLAGS "-Werror -Wall -Wmissing-prototypes -Wmissing-declarations ${CMAKE_C_FLAGS}")
+- set( CMAKE_CXX_FLAGS "-Werror -Wall -Wmissing-declarations ${CMAKE_CXX_FLAGS}")
++ set( CMAKE_C_FLAGS "-Wall -Wmissing-prototypes -Wmissing-declarations ${CMAKE_C_FLAGS}")
++ set( CMAKE_CXX_FLAGS "-Wall -Wmissing-declarations ${CMAKE_CXX_FLAGS}")
+ set( CMAKE_C_FLAGS_RELEASE "-O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 ${CMAKE_C_FLAGS}")
+ endif()
+ if (MINGW)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnucash.git/commitdiff/223919cc748295a540d23e2288e9002639fe13eb
More information about the pld-cvs-commit
mailing list