[packages/tinysparql] - added types patch (fixes libunistring module with 64-bit size_t)
qboosh
qboosh at pld-linux.org
Wed Sep 18 21:01:41 CEST 2024
commit 9af47784207f6b0f3962f0b6a99502311ab2d334
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Sep 18 21:04:41 2024 +0200
- added types patch (fixes libunistring module with 64-bit size_t)
tinysparql-types.patch | 20 ++++++++++++++++++++
tinysparql.spec | 2 ++
2 files changed, 22 insertions(+)
---
diff --git a/tinysparql.spec b/tinysparql.spec
index 5d0d950..3bb6021 100644
--- a/tinysparql.spec
+++ b/tinysparql.spec
@@ -15,6 +15,7 @@ License: GPL v2+
Group: Applications
Source0: https://download.gnome.org/sources/tinysparql/3.8/%{name}-%{version}.tar.xz
# Source0-md5: b265db81d1292d405945dbeb168a361b
+Patch0: %{name}-types.patch
URL: https://gnome.pages.gitlab.gnome.org/tinysparql/
BuildRequires: asciidoc
BuildRequires: dbus-devel >= 1.3.1
@@ -152,6 +153,7 @@ API TinySPARQL/TrackerSPARQL 3 dla języka Vala.
%prep
%setup -q
+%patch0 -p1
%build
CPPFLAGS="%{rpmcppflags} -I/usr/include/libstemmer"
diff --git a/tinysparql-types.patch b/tinysparql-types.patch
new file mode 100644
index 0000000..2903091
--- /dev/null
+++ b/tinysparql-types.patch
@@ -0,0 +1,20 @@
+--- tinysparql-3.8.0/src/libtracker-common/tracker-parser-libunistring.c.orig 2024-09-16 11:54:59.000000000 +0200
++++ tinysparql-3.8.0/src/libtracker-common/tracker-parser-libunistring.c 2024-09-18 20:17:03.496003832 +0200
+@@ -301,14 +301,15 @@ process_word_utf8 (TrackerParser
+
+ /* Stemming needed? */
+ if (parser->enable_stemmer) {
++ gint new_length = new_word_length;
+ tracker_language_stem_word (parser->language,
+ normalized,
+- &new_word_length,
++ &new_length,
+ new_word_length);
+
+ /* Log after stemming */
+ tracker_parser_message_hex (" After stemming",
+- normalized, new_word_length);
++ normalized, new_length);
+ }
+
+ /* It may be the case that no stripping and no stemming was needed, and
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tinysparql.git/commitdiff/9af47784207f6b0f3962f0b6a99502311ab2d334
More information about the pld-cvs-commit
mailing list