From 3b0216e13313369866426ddf82c3f0d81dedf91c Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 7 Sep 2020 21:45:36 +0200 Subject: [PATCH] pango: update to 1.46.1 --- srcpkgs/pango/patches/CVE-2019-1010238.patch | 33 ------------ .../pango/patches/pangoattribute-boxed.patch | 50 ------------------- srcpkgs/pango/template | 12 ++--- 3 files changed, 5 insertions(+), 90 deletions(-) delete mode 100644 srcpkgs/pango/patches/CVE-2019-1010238.patch delete mode 100644 srcpkgs/pango/patches/pangoattribute-boxed.patch diff --git a/srcpkgs/pango/patches/CVE-2019-1010238.patch b/srcpkgs/pango/patches/CVE-2019-1010238.patch deleted file mode 100644 index afb832e0cfc2f7..00000000000000 --- a/srcpkgs/pango/patches/CVE-2019-1010238.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 490f8979a260c16b1df055eab386345da18a2d54 Mon Sep 17 00:00:00 2001 -From: Matthias Clasen -Date: Wed, 10 Jul 2019 20:26:23 -0400 -Subject: [PATCH] bidi: Be safer against bad input - -Don't run off the end of an array that we -allocated to certain length. - -Closes: https://gitlab.gnome.org/GNOME/pango/issues/342 ---- - pango/pango-bidi-type.c | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/pango/pango-bidi-type.c b/pango/pango-bidi-type.c -index 3e46b66c..5c02dbbb 100644 ---- a/pango/pango-bidi-type.c -+++ b/pango/pango-bidi-type.c -@@ -181,8 +181,11 @@ pango_log2vis_get_embedding_levels (const gchar *text, - for (i = 0, p = text; p < text + length; p = g_utf8_next_char(p), i++) - { - gunichar ch = g_utf8_get_char (p); -- FriBidiCharType char_type; -- char_type = fribidi_get_bidi_type (ch); -+ FriBidiCharType char_type = fribidi_get_bidi_type (ch); -+ -+ if (i == n_chars) -+ break; -+ - bidi_types[i] = char_type; - ored_types |= char_type; - if (FRIBIDI_IS_STRONG (char_type)) --- -2.22.0 diff --git a/srcpkgs/pango/patches/pangoattribute-boxed.patch b/srcpkgs/pango/patches/pangoattribute-boxed.patch deleted file mode 100644 index 071d82aa9df88b..00000000000000 --- a/srcpkgs/pango/patches/pangoattribute-boxed.patch +++ /dev/null @@ -1,50 +0,0 @@ -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 1a4f74fb0a3fe0..b5eb7ea3648c0a 100644 --- a/srcpkgs/pango/template +++ b/srcpkgs/pango/template @@ -1,10 +1,9 @@ # Template file for 'pango' pkgname=pango -reverts="1.44.5_1 1.44.7_1" -version=1.42.4 -revision=8 -build_style=gnu-configure -build_helper="gir" +version=1.46.1 +revision=1 +build_style=meson +build_helper=gir hostmakedepends="glib-devel help2man pkg-config" makedepends="fribidi-devel harfbuzz-devel libXft-devel libthai-devel" short_desc="Library for layout and rendering of text" @@ -12,8 +11,7 @@ maintainer="Orphaned " license="LGPL-2.1-or-later" homepage="https://www.pango.org/" distfiles="${GNOME_SITE}/pango/${version%.*}/${pkgname}-${version}.tar.xz" -checksum=1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d -patch_args="-Np1" +checksum=fe516b10711bbb6fd75011d66dd08fabfce18f7931aed7415136d53c4aadf1c5 post_install() { rm -rf -- ${DESTDIR}/usr/share/installed-tests