- Add pygtk2-c99.patch to fix C99 violations that prevent building of
the package with GCC 14 [boo#1225916]. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gtk?expand=0&rev=8
This commit is contained in:
parent
1170131273
commit
d5dc6d05db
17
pygtk2-c99.patch
Normal file
17
pygtk2-c99.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/pango.override b/pango.override
|
||||
index afe43aba3a6ebe81..3e33e1b598322096 100644
|
||||
--- a/pango.override
|
||||
+++ b/pango.override
|
||||
@@ -27,6 +27,12 @@ headers
|
||||
#include <pygobject.h>
|
||||
#include <pango/pango.h>
|
||||
|
||||
+/* These internal functions are still exported, so just declare them
|
||||
+ here. There does not seem to be a simple way to ween pygtk2 off
|
||||
+ them. */
|
||||
+PangoFontMetrics *pango_font_metrics_new (void);
|
||||
+const char *pango_font_map_get_shape_engine_type (PangoFontMap *);
|
||||
+
|
||||
typedef struct {
|
||||
PyObject *func, *data;
|
||||
} PyGtkCustomNotify;
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 19 14:26:15 UTC 2024 - Martin Jambor <mjambor@suse.com>
|
||||
|
||||
- Add pygtk2-c99.patch to fix C99 violations that prevent building of
|
||||
the package with GCC 14 [boo#1225916].
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 27 14:34:35 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-gtk
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -31,6 +31,9 @@ Source: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-%{versio
|
||||
Patch0: pygtk-2.22.0-capsule.patch
|
||||
# PATCH-FIX-UPSTREAM pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch dimstar@opensuse.org -- Drop the PangoFont find_shaper virtual method
|
||||
Patch1: https://raw.githubusercontent.com/flathub/org.glimpse_editor.Glimpse/master/patches/pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
|
||||
# Patch to fix C99 violations [boo#1225916]
|
||||
# originally from https://bugzilla.redhat.com/show_bug.cgi?id=2190017
|
||||
Patch2: pygtk2-c99.patch
|
||||
BuildRequires: fdupes
|
||||
# Only for directory ownership:
|
||||
BuildRequires: gtk-doc
|
||||
|
Loading…
x
Reference in New Issue
Block a user