[packages/gtksourceview2] Rel 2; fix build

arekm arekm at pld-linux.org
Sat Aug 2 12:09:07 CEST 2025


commit ae6ce4d16d5d91638402c9ac4910384855dc8184
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Aug 2 12:09:03 2025 +0200

    Rel 2; fix build

 build.patch         | 11 +++++++++++
 gtksourceview2.spec |  9 +++++----
 2 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview2.spec b/gtksourceview2.spec
index a25bba4..19a3ff7 100644
--- a/gtksourceview2.spec
+++ b/gtksourceview2.spec
@@ -2,11 +2,12 @@ Summary:	Text widget that extends the standard GTK+ 2.x
 Summary(pl.UTF-8):	Widget tekstowy rozszerzający standardowy z GTK+ 2.x
 Name:		gtksourceview2
 Version:	2.10.5
-Release:	7
+Release:	8
 License:	GPL v2+ and LGPL v2+
 Group:		X11/Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.10/gtksourceview-%{version}.tar.bz2
 # Source0-md5:	1219ad1694df136f126507466aeb41aa
+Patch0:		build.patch
 URL:		https://wiki.gnome.org/Projects/GtkSourceView
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake >= 1:1.10.3
@@ -14,7 +15,6 @@ BuildRequires:	docbook-dtd412-xml
 BuildRequires:	gettext-tools >= 0.17
 BuildRequires:	gnome-common >= 2.24.0
 BuildRequires:	gtk+2-devel >= 2:2.14.0
-BuildRequires:	gtk-doc >= 1.11
 BuildRequires:	intltool >= 0.40
 BuildRequires:	libtool >= 2:2.2.6
 BuildRequires:	libxml2-devel >= 1:2.6.31
@@ -78,18 +78,19 @@ Statyczna biblioteka GtkSourceView.
 
 %prep
 %setup -q -n gtksourceview-%{version}
+%patch -P0 -p1
 
 %build
+%{__autopoint}
 %{__gtkdocize}
 %{__intltoolize}
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
 	--disable-silent-rules \
-	--enable-gtk-doc \
 	--enable-static \
 	--with-html-dir=%{_gtkdocdir}
 %{__make}
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..6e50d4e
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,11 @@
+--- gtksourceview-2.10.5/gtksourceview/gtksourceview.c~	2010-08-22 13:45:05.000000000 +0200
++++ gtksourceview-2.10.5/gtksourceview/gtksourceview.c	2025-08-02 12:06:56.036364220 +0200
+@@ -1766,7 +1766,7 @@ set_source_buffer (GtkSourceView *view,
+ 
+ 	if (buffer && GTK_IS_SOURCE_BUFFER (buffer))
+ 	{
+-		view->priv->source_buffer = g_object_ref (buffer);
++		view->priv->source_buffer = (GtkSourceBuffer *)g_object_ref (buffer);
+ 
+ 		g_signal_connect (buffer,
+ 				  "highlight_updated",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtksourceview2.git/commitdiff/ae6ce4d16d5d91638402c9ac4910384855dc8184



More information about the pld-cvs-commit mailing list