Fix 32-bit builds

This commit is contained in:
Amanda Graven 2022-01-04 11:14:08 +01:00
parent 1becf9ec4f
commit dba94d353d
No known key found for this signature in database
GPG Key ID: 45C461CDC9286390
2 changed files with 15 additions and 0 deletions

13
32-bit-int-fix.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/gtksourceview/implregex.c b/gtksourceview/implregex.c
index 7cb9a18a..b8eb8137 100644
--- a/gtksourceview/implregex.c
+++ b/gtksourceview/implregex.c
@@ -236,7 +236,7 @@ impl_regex_new (const char *pattern,
#ifdef GTK_SOURCE_PROFILER_ENABLED
if (GTK_SOURCE_PROFILER_ACTIVE)
- message = g_strdup_printf ("compile=%lx match=%lx pattern=%s",
+ message = g_strdup_printf ("compile=%"G_GSIZE_MODIFIER"x match=%"G_GSIZE_MODIFIER"x pattern=%s",
regex->compile_flags,
regex->match_flags,
regex->pattern);

View File

@ -11,6 +11,7 @@ Summary: Source code editing widget
License: LGPLv2+
URL: https://wiki.gnome.org/Projects/GtkSourceView
Source0: https://download.gnome.org/sources/gtksourceview/%{api_ver}.2/gtksourceview-%{version}.tar.xz
Patch0: 32-bit-int-fix.patch
BuildRequires: gcc
BuildRequires: gettext
@ -60,6 +61,7 @@ the functionality of the installed %{name} package.
%prep
%autosetup -n gtksourceview-%{version}
%patch0 -p1
%build
%meson -Dgtk_doc=true -Dsysprof=true -Dinstall_tests=true