diff --git a/vala-g_chdir.patch b/vala-g_chdir.patch new file mode 100644 index 0000000..1d64095 --- /dev/null +++ b/vala-g_chdir.patch @@ -0,0 +1,19 @@ +glib-2.0: g_chdir is declared in + +Not . Fixes an implicit function error when building deja-dup. + +Submitted upstream: + +diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi +index 497d6bb6c1714cae..9cfe8bd4c25afcfd 100644 +--- a/vapi/glib-2.0.vapi ++++ b/vapi/glib-2.0.vapi +@@ -3485,7 +3485,7 @@ namespace GLib { + [CCode (cname = "g_atexit")] + public static void atexit (VoidFunc func); + [Version (since = "2.8")] +- [CCode (cname = "g_chdir")] ++ [CCode (cname = "g_chdir", cheader_filename = "glib/gstdio.h")] + public static int set_current_dir (string path); + } + diff --git a/vala.spec b/vala.spec index da72349..9b0dd24 100644 --- a/vala.spec +++ b/vala.spec @@ -3,13 +3,14 @@ Name: vala Version: 0.56.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A modern programming language for GNOME # Most files are LGPLv2.1+, curses.vapi is 2-clause BSD License: LGPL-2.1-or-later AND BSD-2-Clause URL: https://wiki.gnome.org/Projects/Vala Source0: https://download.gnome.org/sources/%{name}/0.56/%{name}-%{version}.tar.xz +Patch0: vala-g_chdir.patch BuildRequires: bison BuildRequires: flex @@ -190,6 +191,9 @@ export -n VALAFLAGS %changelog +* Mon Apr 17 2023 Florian Weimer - 0.56.6-2 +- Fix C header for g_chdir, needed by deja-dup + * Fri Apr 07 2023 David King - 0.56.6-1 - Update to 0.56.6