From c24dd2a68c739ba29a578cf76ee95422138adf65 Mon Sep 17 00:00:00 2001 From: cherry530 <707078654@qq.com> Date: Wed, 20 Dec 2023 10:35:02 +0800 Subject: [PATCH] fix build error Signed-off-by: cherry530 <707078654@qq.com> --- create-lists-of-nullable-types.patch | 33 ++++++++++++++++++++++++++++ pdfpc.spec | 7 +++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 create-lists-of-nullable-types.patch diff --git a/create-lists-of-nullable-types.patch b/create-lists-of-nullable-types.patch new file mode 100644 index 0000000..62fe29d --- /dev/null +++ b/create-lists-of-nullable-types.patch @@ -0,0 +1,33 @@ +From 18beaecbbcc066e0d4c889b3aa3ecaa7351f7768 Mon Sep 17 00:00:00 2001 +From: Evgeny Stambulchik +Date: Tue, 25 Apr 2023 16:11:25 +0300 +Subject: [PATCH] Create Lists of nullable types + +--- + src/classes/drawings/drawing_commands.vala | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/classes/drawings/drawing_commands.vala b/src/classes/drawings/drawing_commands.vala +index 77e56e6d..c305a8c5 100644 +--- a/src/classes/drawings/drawing_commands.vala ++++ b/src/classes/drawings/drawing_commands.vala +@@ -54,8 +54,8 @@ namespace pdfpc { + } + + public void clear() { +- this.drawing_commands = new List(); +- this.redo_commands = new List(); ++ this.drawing_commands = new List(); ++ this.redo_commands = new List(); + } + + public void add_line(bool is_eraser, +@@ -70,7 +70,7 @@ namespace pdfpc { + + // After adding a new line you can no longer redo the old + // path. +- this.redo_commands = new List(); // clear ++ this.redo_commands = new List(); // clear + + bool new_path = true; + double epsilon = 1e-4; // Less than 0.1 pixel for a 1000x1000 img diff --git a/pdfpc.spec b/pdfpc.spec index d532135..b4e9f96 100644 --- a/pdfpc.spec +++ b/pdfpc.spec @@ -1,12 +1,14 @@ Name: pdfpc Version: 4.6.0 -Release: 1 +Release: 2 Summary: A GTK based presentation viewer application for GNU/Linux License: GPL-3.0-or-later URL: https://%{name}.github.io/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz +Patch0001: create-lists-of-nullable-types.patch + BuildRequires: cmake BuildRequires: gcc BuildRequires: gtk3-devel @@ -55,6 +57,9 @@ software. %changelog +* Wed Sep 20 2023 xu_ping <707078654@qq.com> - 4.6.0-2 +- fix build error due to vala upgrade. + * Wed Apr 12 2023 chenchen - 4.6.0-1 - Upgrade pdfpc to 4.6.0