Fix 32-bit builds
This commit is contained in:
parent
1becf9ec4f
commit
dba94d353d
13
32-bit-int-fix.patch
Normal file
13
32-bit-int-fix.patch
Normal 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);
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user