diff options
author | Vaporeon | 2015-10-14 14:41:01 +1300 |
---|---|---|
committer | Vaporeon | 2015-10-14 14:41:01 +1300 |
commit | b5d403b98f55e02681e7a6ff3f09e587bd8659e3 (patch) | |
tree | 00398da60297aad1c31dd87fcc040cc41a292935 | |
parent | 3e49ffafc33b730db1adac83dae1af5875c4d5f3 (diff) | |
download | aur-b5d403b98f55e02681e7a6ff3f09e587bd8659e3.tar.gz |
add another patch
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | 0001-Revert-list-store-Fix-a-parameter-check.patch | 74 | ||||
-rw-r--r-- | PKGBUILD | 13 |
3 files changed, 89 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = glib2-patched-thumbnailer pkgdesc = GLib2 patched with ahodesuka's thumbnailer patch. pkgver = 2.46.0 - pkgrel = 1 + pkgrel = 2 url = http://gist.github.com/ahodesuka/49c1d0eea4b64f24c4c7 arch = i686 arch = x86_64 @@ -12,7 +12,7 @@ pkgbase = glib2-patched-thumbnailer makedepends = docbook-xml makedepends = pcre makedepends = libffi - makedepends = elfutils + makedepends = libelf depends = pcre depends = libffi depends = tumbler @@ -23,9 +23,11 @@ pkgbase = glib2-patched-thumbnailer options = !docs options = !emptydirs source = http://ftp.gnome.org/pub/GNOME/sources/glib/2.46/glib-2.46.0.tar.xz + source = 0001-Revert-list-store-Fix-a-parameter-check.patch source = revert-warn-glib-compile-schemas.patch source = https://gist.githubusercontent.com/ahodesuka/49c1d0eea4b64f24c4c7/raw/d0edf118e1c27700300038c1d82b3ff775c0216b/glib-thumbnailer.patch sha256sums = b1cee83469ae7d80f17c267c37f090414e93960bd62d2b254a5a96fbc5baacb4 + sha256sums = 261ae2d2c7b94460f33ab569540313e21c9a50af38a7ebe8412e49f5b309af35 sha256sums = 049240975cd2f1c88fbe7deb28af14d4ec7d2640495f7ca8980d873bb710cc97 sha256sums = 1a4673380fbdf8e8e5de3367089de6c97025633e54010575de63c5ab6c8a044d diff --git a/0001-Revert-list-store-Fix-a-parameter-check.patch b/0001-Revert-list-store-Fix-a-parameter-check.patch new file mode 100644 index 000000000000..397ff93df0a8 --- /dev/null +++ b/0001-Revert-list-store-Fix-a-parameter-check.patch @@ -0,0 +1,74 @@ +From 19a560f9491c4964e7093e22cb3876fc53a442e6 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Wed, 23 Sep 2015 23:16:04 +0200 +Subject: [PATCH] Revert "list store: Fix a parameter check" + +This reverts commit d28639507db2029b8f184a5d93e9d8c28acc1955. + +Bogus commit changing the behavior of g_sequence_search in violation +of the documentation. Breaks GStreamer test suite. +--- + glib/gsequence.c | 18 +++++++----------- + 1 file changed, 7 insertions(+), 11 deletions(-) + +diff --git a/glib/gsequence.c b/glib/gsequence.c +index 75c1f76..76e24e7 100644 +--- a/glib/gsequence.c ++++ b/glib/gsequence.c +@@ -139,8 +139,7 @@ static GSequenceNode *node_find_closest (GSequenceNode *haystack, + GSequenceNode *needle, + GSequenceNode *end, + GSequenceIterCompareFunc cmp, +- gpointer user_data, +- gboolean return_match); ++ gpointer user_data); + static gint node_get_length (GSequenceNode *node); + static void node_free (GSequenceNode *node, + GSequence *seq); +@@ -1080,7 +1079,7 @@ g_sequence_search_iter (GSequence *seq, + dummy = g_sequence_append (tmp_seq, data); + + node = node_find_closest (seq->end_node, dummy, +- seq->end_node, iter_cmp, cmp_data, TRUE); ++ seq->end_node, iter_cmp, cmp_data); + + g_sequence_free (tmp_seq); + +@@ -1734,8 +1733,7 @@ node_find_closest (GSequenceNode *haystack, + GSequenceNode *needle, + GSequenceNode *end, + GSequenceIterCompareFunc iter_cmp, +- gpointer cmp_data, +- gboolean return_match) ++ gpointer cmp_data) + { + GSequenceNode *best; + gint c; +@@ -1765,12 +1763,10 @@ node_find_closest (GSequenceNode *haystack, + } + while (haystack != NULL); + +- /* If the best node is smaller than the data, then move one step +- * to the right to make sure the best one is strictly bigger than the data. +- * We do return the last exact match or the node after it, depending on +- * the return_match argument. ++ /* If the best node is smaller or equal to the data, then move one step ++ * to the right to make sure the best one is strictly bigger than the data + */ +- if (best != end && (c < 0 || (c == 0 && !return_match))) ++ if (best != end && c <= 0) + best = node_get_next (best); + + return best; +@@ -1992,7 +1988,7 @@ node_insert_sorted (GSequenceNode *node, + { + GSequenceNode *closest; + +- closest = node_find_closest (node, new, end, iter_cmp, cmp_data, FALSE); ++ closest = node_find_closest (node, new, end, iter_cmp, cmp_data); + + node_unlink (new); + +-- +2.5.3 + @@ -5,33 +5,42 @@ pkgbase=glib2-patched-thumbnailer pkgname=glib2-patched-thumbnailer pkgver=2.46.0 _patchver=d0edf118e1c27700300038c1d82b3ff775c0216b -pkgrel=1 +pkgrel=2 pkgdesc="GLib2 patched with ahodesuka's thumbnailer patch." url="http://gist.github.com/ahodesuka/49c1d0eea4b64f24c4c7" arch=(i686 x86_64) provides=(glib2) conflicts=(glib2) -makedepends=('pkg-config' 'python2' 'libxslt' 'docbook-xml' 'pcre' 'libffi' 'elfutils') +makedepends=('pkg-config' 'python2' 'libxslt' 'docbook-xml' 'pcre' 'libffi' 'libelf') depends=('pcre' 'libffi' 'tumbler') optdepends=('python2: for gdbus-codegen and gtester-report' 'elfutils: gresource inspection tool') options=('!docs' '!emptydirs') license=('LGPL') source=(http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver:0:4}/glib-$pkgver.tar.xz + 0001-Revert-list-store-Fix-a-parameter-check.patch revert-warn-glib-compile-schemas.patch https://gist.githubusercontent.com/ahodesuka/49c1d0eea4b64f24c4c7/raw/$_patchver/glib-thumbnailer.patch) sha256sums=('b1cee83469ae7d80f17c267c37f090414e93960bd62d2b254a5a96fbc5baacb4' + '261ae2d2c7b94460f33ab569540313e21c9a50af38a7ebe8412e49f5b309af35' '049240975cd2f1c88fbe7deb28af14d4ec7d2640495f7ca8980d873bb710cc97' '1a4673380fbdf8e8e5de3367089de6c97025633e54010575de63c5ab6c8a044d') prepare() { cd glib-$pkgver + patch -Np1 -i ../0001-Revert-list-store-Fix-a-parameter-check.patch patch -Rp1 -i ../revert-warn-glib-compile-schemas.patch patch -Np1 -i ${srcdir}/glib-thumbnailer.patch } build() { cd glib-$pkgver + + ## Prevent runtime unloading of glib + # https://bugs.archlinux.org/task/46619 + # https://bugzilla.gnome.org/show_bug.cgi?id=755609 + LDFLAGS+=" -Wl,-z,nodelete" + PYTHON=/usr/bin/python2 ./configure --prefix=/usr --libdir=/usr/lib \ --sysconfdir=/etc \ --with-pcre=system \ |