From 3ec66166d579c3081b3d4b08edad63f1650e8f82 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Fri, 14 Aug 2020 16:45:09 +0200 Subject: [PATCH] pango: make PangoAttribute a boxed type This is necessary so we can update gnome-music later without a 1.44 bump. https://gitlab.gnome.org/GNOME/pygobject/-/issues/312 --- .../pango/patches/pangoattribute-boxed.patch | 50 +++++++++++++++++++ srcpkgs/pango/template | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/pango/patches/pangoattribute-boxed.patch diff --git a/srcpkgs/pango/patches/pangoattribute-boxed.patch b/srcpkgs/pango/patches/pangoattribute-boxed.patch new file mode 100644 index 0000000000..071d82aa9d --- /dev/null +++ b/srcpkgs/pango/patches/pangoattribute-boxed.patch @@ -0,0 +1,50 @@ +This is necessary so some updates can be done on things using +Pango without updating Pango to 1.44, e.g. gnome-music. + +https://gitlab.gnome.org/GNOME/pygobject/-/issues/312 + +From 3d5b7c10fbe63c069af4c140126c2295d1b75016 Mon Sep 17 00:00:00 2001 +From: Matthias Clasen +Date: Thu, 11 Jul 2019 00:37:24 -0400 +Subject: [PATCH] Make PangoAttribute a boxed type + +Based on a patch by Matijs van Zuijlen . + +Closes https://gitlab.gnome.org/GNOME/pango/issues/259 +--- + pango/pango-attributes.c | 4 ++++ + pango/pango-attributes.h | 3 +++ + 2 files changed, 7 insertions(+) + +diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c +index df3104f0c..85e5a240e 100644 +--- a/pango/pango-attributes.c ++++ b/pango/pango-attributes.c +@@ -192,6 +192,10 @@ pango_attribute_destroy (PangoAttribute *attr) + attr->klass->destroy (attr); + } + ++G_DEFINE_BOXED_TYPE (PangoAttribute, pango_attribute, ++ pango_attribute_copy, ++ pango_attribute_destroy); ++ + /** + * pango_attribute_equal: + * @attr1: a #PangoAttribute +diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h +index e9b195713..cff495b25 100644 +--- a/pango/pango-attributes.h ++++ b/pango/pango-attributes.h +@@ -56,6 +56,9 @@ struct _PangoColor + PANGO_AVAILABLE_IN_ALL + GType pango_color_get_type (void) G_GNUC_CONST; + ++PANGO_AVAILABLE_IN_ALL ++GType pango_attribute_get_type (void) G_GNUC_CONST; ++ + PANGO_AVAILABLE_IN_ALL + PangoColor *pango_color_copy (const PangoColor *src); + PANGO_AVAILABLE_IN_ALL +-- +GitLab + diff --git a/srcpkgs/pango/template b/srcpkgs/pango/template index e27b2cc512..1a4f74fb0a 100644 --- a/srcpkgs/pango/template +++ b/srcpkgs/pango/template @@ -2,7 +2,7 @@ pkgname=pango reverts="1.44.5_1 1.44.7_1" version=1.42.4 -revision=7 +revision=8 build_style=gnu-configure build_helper="gir" hostmakedepends="glib-devel help2man pkg-config"