mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-libs/gtksourceview: fix compilation of 2.10.5 with gcc-14
Also use consistent patch names. Closes: https://bugs.gentoo.org/937626 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/38579 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
committed by
Pacho Ramos
parent
05481fab17
commit
4f79cdcc9f
21
x11-libs/gtksourceview/files/2.10.5-gcc14.patch
Normal file
21
x11-libs/gtksourceview/files/2.10.5-gcc14.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
Fix build with gcc-14.
|
||||
|
||||
Backported version of patch from:
|
||||
https://gitlab.gnome.org/GNOME/gtksourceview/-/commit/b25e71c57fc934a7ce36e51826af9fa7c2cf9a80
|
||||
|
||||
Bug: https://bugs.gentoo.org/937626
|
||||
|
||||
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
|
||||
|
||||
--- gtksourceview-2.10.5/gtksourceview/gtksourceview.c 2010-08-22 13:45:05.000000000 +0200
|
||||
+++ gtksourceview-2.10.5-gcc14/gtksourceview/gtksourceview.c 2024-08-09 16:11:37.319493797 +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 = g_object_ref (GTK_SOURCE_BUFFER (buffer));
|
||||
|
||||
g_signal_connect (buffer,
|
||||
"highlight_updated",
|
||||
@@ -31,7 +31,10 @@ BDEPEND="
|
||||
DOCS=( AUTHORS ChangeLog HACKING MAINTAINERS NEWS README )
|
||||
|
||||
# Patch from 3.x for bug #394925
|
||||
PATCHES=( "${FILESDIR}/${P}-G_CONST_RETURN.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/2.10.5-G_CONST_RETURN.patch"
|
||||
"${FILESDIR}/2.10.5-gcc14.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
gnome2_src_prepare
|
||||
|
||||
Reference in New Issue
Block a user