diff --git a/appstream.spec b/appstream.spec index a3927e7..888a8ec 100644 --- a/appstream.spec +++ b/appstream.spec @@ -3,12 +3,15 @@ Name: appstream Version: 0.16.1 -Release: 1 +Release: 2 Summary: Utilities to generate, maintain and access the AppStream database License: GPLv2+ and LGPLv2+ URL: https://github.com/ximion/appstream Source0: https://github.com/ximion/appstream/archive/refs/tags/v%{version}.tar.gz +# https://github.com/ximion/appstream/pull/546/ +Patch0: backport-fix-a-function-declaration-without-prototype-issue.patch + BuildRequires: cmake meson gettext gperf gtk-doc intltool itstool BuildRequires: libstemmer-devel sed BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0) @@ -182,6 +185,9 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \ %{_libdir}/libAppStreamQt.so %changelog +* Wed Dec 11 2024 jchzhou - 0.16.1-2 +- Backport a patch for fixing a function declaration without prototype issue + * Mon Oct 16 2023 misaka00251 - 0.16.1-1 - Upgrade to 0.16.1 diff --git a/backport-fix-a-function-declaration-without-prototype-issue.patch b/backport-fix-a-function-declaration-without-prototype-issue.patch new file mode 100644 index 0000000..a3525fc --- /dev/null +++ b/backport-fix-a-function-declaration-without-prototype-issue.patch @@ -0,0 +1,26 @@ +From 82dc772ab6d0beeccf5ae9156016f794ebe26663 Mon Sep 17 00:00:00 2001 +From: Gleb Popov <6yearold@gmail.com> +Date: Tue, 31 Oct 2023 10:12:22 +0300 +Subject: [PATCH] fix a function declaration without prototype issue + +Tested-by: jchzhou +--- + compose/asc-globals.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/compose/asc-globals.c b/compose/asc-globals.c +index 314f75c..0bf221e 100644 +--- a/compose/asc-globals.c ++++ b/compose/asc-globals.c +@@ -455,7 +455,7 @@ asc_globals_get_hint_tag_details (const gchar *tag) + * Returns: (transfer full): A list of valid hint tags. Free with %g_strfreev + */ + gchar** +-asc_globals_get_hint_tags () ++asc_globals_get_hint_tags (void) + { + AscGlobalsPrivate *priv = asc_globals_get_priv (); + GHashTableIter iter; +-- +2.47.1 +