From 9bc8b5530044ed9598cd220921a5f5a868da16c2 Mon Sep 17 00:00:00 2001 From: zhangxianting Date: Fri, 26 Jul 2024 15:58:50 +0800 Subject: [PATCH] fix build error (cherry picked from commit 3de6de102d785bd7f55f16f297d371e49912778b) --- fix-build-error-TRUE-ture.patch | 34 +++++++++++++++++++++++++++++++++ vala.spec | 6 +++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 fix-build-error-TRUE-ture.patch diff --git a/fix-build-error-TRUE-ture.patch b/fix-build-error-TRUE-ture.patch new file mode 100644 index 0000000..411db3c --- /dev/null +++ b/fix-build-error-TRUE-ture.patch @@ -0,0 +1,34 @@ +From 0e2b0c6b6d9bc63cd7ff9c07e0a28955d2aeee22 Mon Sep 17 00:00:00 2001 +From: zhangxianting +Date: Fri, 26 Jul 2024 15:56:44 +0800 +Subject: [PATCH] fix build error TRUE ture + +--- + libvaladoc/gvc-compat.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libvaladoc/gvc-compat.c b/libvaladoc/gvc-compat.c +index 5846334..2131ecd 100644 +--- a/libvaladoc/gvc-compat.c ++++ b/libvaladoc/gvc-compat.c +@@ -48,7 +48,7 @@ Agnode_t* + valadoc_compat_gvc_graph_create_node (Agraph_t* graph, const char *name) + { + #ifdef WITH_CGRAPH +- return agnode (graph, (char*) name, TRUE); ++ return agnode (graph, (char*) name, true); + #else + return agnode (graph, (char*) name); + #endif +@@ -68,7 +68,7 @@ Agedge_t* + valadoc_compat_gvc_graph_create_edge (Agraph_t* graph, Agnode_t* from, Agnode_t* to) + { + #ifdef WITH_CGRAPH +- return agedge (graph, from, to, NULL, TRUE); ++ return agedge (graph, from, to, NULL, true); + #else + return agedge (graph, from, to); + #endif +-- +2.33.0 + diff --git a/vala.spec b/vala.spec index e5b8722..ed8d4b9 100644 --- a/vala.spec +++ b/vala.spec @@ -5,11 +5,12 @@ Name: vala Version: 0.56.14 -Release: 1 +Release: 2 Summary: Compiler Using the GObject Type System License: LGPLv2+ and BSD URL: https://wiki.gnome.org/Projects/Vala Source0: https://download.gnome.org/sources/vala/0.56/vala-%{version}.tar.xz +Patch0: fix-build-error-TRUE-ture.patch BuildRequires: flex bison glib2-devel gobject-introspection-devel BuildRequires: graphviz-devel libxslt dbus-x11 make @@ -128,6 +129,9 @@ make check %doc %{_datadir}/devhelp/books/vala-%{api_ver} %changelog +* Fri Jul 26 2024 zhangxianting - 0.56.14-2 +- fix build error + * Mon Nov 20 2023 lwg - 0.56.14-1 - update to version 0.56.14 -- Gitee