gnu: gdk-pixbuf: Update to 2.36.10.
* gnu/packages/gtk.scm (gdk-pixbuf, gdk-pixbuf+svg): Update to 2.36.10. [replacement]: Remove field. [source]: Remove patch. (gdk-pixbuf-2.36.10, gdk-pixbuf+svg-2.36.10): Remove variables. * gnu/packages/patches/gdk-pixbuf-list-dir.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it.
This commit is contained in:
		
							parent
							
								
									7067414bcc
								
							
						
					
					
						commit
						60bf81541c
					
				
					 3 changed files with 3 additions and 62 deletions
				
			
		| 
						 | 
					@ -636,7 +636,6 @@ dist_patch_DATA =						\
 | 
				
			||||||
  %D%/packages/patches/gcc-6-cross-environment-variables.patch	\
 | 
					  %D%/packages/patches/gcc-6-cross-environment-variables.patch	\
 | 
				
			||||||
  %D%/packages/patches/gcr-disable-failing-tests.patch		\
 | 
					  %D%/packages/patches/gcr-disable-failing-tests.patch		\
 | 
				
			||||||
  %D%/packages/patches/gcr-fix-collection-tests-to-work-with-gpg-21.patch	\
 | 
					  %D%/packages/patches/gcr-fix-collection-tests-to-work-with-gpg-21.patch	\
 | 
				
			||||||
  %D%/packages/patches/gdk-pixbuf-list-dir.patch		\
 | 
					 | 
				
			||||||
  %D%/packages/patches/gd-fix-tests-on-i686.patch		\
 | 
					  %D%/packages/patches/gd-fix-tests-on-i686.patch		\
 | 
				
			||||||
  %D%/packages/patches/gd-freetype-test-failure.patch		\
 | 
					  %D%/packages/patches/gd-freetype-test-failure.patch		\
 | 
				
			||||||
  %D%/packages/patches/gegl-CVE-2012-4433.patch			\
 | 
					  %D%/packages/patches/gegl-CVE-2012-4433.patch			\
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
 | 
					;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
 | 
				
			||||||
;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
 | 
					;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
 | 
				
			||||||
;;; Coypright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
 | 
					;;; Coypright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
 | 
				
			||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 | 
					;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
 | 
				
			||||||
;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
 | 
					;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
 | 
				
			||||||
;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
 | 
					;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
 | 
				
			||||||
;;; Copyright © 2016 Patrick Hetu <patrick.hetu@auf.org>
 | 
					;;; Copyright © 2016 Patrick Hetu <patrick.hetu@auf.org>
 | 
				
			||||||
| 
						 | 
					@ -427,8 +427,7 @@ highlighting and other features typical of a source code editor.")
 | 
				
			||||||
(define-public gdk-pixbuf
 | 
					(define-public gdk-pixbuf
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
   (name "gdk-pixbuf")
 | 
					   (name "gdk-pixbuf")
 | 
				
			||||||
   (replacement gdk-pixbuf-2.36.10)
 | 
					   (version "2.36.10")
 | 
				
			||||||
   (version "2.36.6")
 | 
					 | 
				
			||||||
   (source (origin
 | 
					   (source (origin
 | 
				
			||||||
            (method url-fetch)
 | 
					            (method url-fetch)
 | 
				
			||||||
            (uri (string-append "mirror://gnome/sources/" name "/"
 | 
					            (uri (string-append "mirror://gnome/sources/" name "/"
 | 
				
			||||||
| 
						 | 
					@ -436,8 +435,7 @@ highlighting and other features typical of a source code editor.")
 | 
				
			||||||
                                name "-" version ".tar.xz"))
 | 
					                                name "-" version ".tar.xz"))
 | 
				
			||||||
            (sha256
 | 
					            (sha256
 | 
				
			||||||
             (base32
 | 
					             (base32
 | 
				
			||||||
              "034279k49ydawnagqd7b1rz741n20k4y3grybzwp26zd146bjpj5"))
 | 
					              "1klsjkdbashd8yb8xjsc9ff3bz32n2id5s79nrrmqiw9df4zmxpq"))))
 | 
				
			||||||
            (patches (search-patches "gdk-pixbuf-list-dir.patch"))))
 | 
					 | 
				
			||||||
   (build-system gnu-build-system)
 | 
					   (build-system gnu-build-system)
 | 
				
			||||||
   (arguments
 | 
					   (arguments
 | 
				
			||||||
    '(#:configure-flags '("--with-x11")
 | 
					    '(#:configure-flags '("--with-x11")
 | 
				
			||||||
| 
						 | 
					@ -484,7 +482,6 @@ in the GNOME project.")
 | 
				
			||||||
(define-public gdk-pixbuf+svg
 | 
					(define-public gdk-pixbuf+svg
 | 
				
			||||||
  (package (inherit gdk-pixbuf)
 | 
					  (package (inherit gdk-pixbuf)
 | 
				
			||||||
    (name "gdk-pixbuf+svg")
 | 
					    (name "gdk-pixbuf+svg")
 | 
				
			||||||
    (replacement gdk-pixbuf+svg-2.36.10)
 | 
					 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("librsvg" ,librsvg)
 | 
					     `(("librsvg" ,librsvg)
 | 
				
			||||||
       ,@(package-inputs gdk-pixbuf)))
 | 
					       ,@(package-inputs gdk-pixbuf)))
 | 
				
			||||||
| 
						 | 
					@ -508,26 +505,6 @@ in the GNOME project.")
 | 
				
			||||||
    (synopsis
 | 
					    (synopsis
 | 
				
			||||||
     "GNOME image loading and manipulation library, with SVG support")))
 | 
					     "GNOME image loading and manipulation library, with SVG support")))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
;; Graft replacement packages to fix these vulnerabilities.
 | 
					 | 
				
			||||||
;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-2862
 | 
					 | 
				
			||||||
;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-2870
 | 
					 | 
				
			||||||
;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-6311
 | 
					 | 
				
			||||||
(define-public gdk-pixbuf-2.36.10
 | 
					 | 
				
			||||||
  (package (inherit gdk-pixbuf)
 | 
					 | 
				
			||||||
           (version "2.36.A")
 | 
					 | 
				
			||||||
           (source (origin
 | 
					 | 
				
			||||||
                     (method url-fetch)
 | 
					 | 
				
			||||||
                     (uri (string-append "mirror://gnome/sources/gdk-pixbuf/2.36/"
 | 
					 | 
				
			||||||
                                         "gdk-pixbuf-2.36.10.tar.xz"))
 | 
					 | 
				
			||||||
                     (sha256
 | 
					 | 
				
			||||||
                      (base32
 | 
					 | 
				
			||||||
                       "1klsjkdbashd8yb8xjsc9ff3bz32n2id5s79nrrmqiw9df4zmxpq"))))))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(define-public gdk-pixbuf+svg-2.36.10
 | 
					 | 
				
			||||||
  (package (inherit gdk-pixbuf+svg)
 | 
					 | 
				
			||||||
           (version "2.36.A")
 | 
					 | 
				
			||||||
           (source (origin (inherit (package-source gdk-pixbuf-2.36.10))))))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
(define-public at-spi2-core
 | 
					(define-public at-spi2-core
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
   (name "at-spi2-core")
 | 
					   (name "at-spi2-core")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,35 +0,0 @@
 | 
				
			||||||
Sort directory entries so that the output of
 | 
					 | 
				
			||||||
‘gdk-pixbuf-query-loaders’ is deterministic.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
See: https://bugzilla.gnome.org/show_bug.cgi?id=777332
 | 
					 | 
				
			||||||
--- gdk-pixbuf-2.34.0/gdk-pixbuf/queryloaders.c.orig	2017-01-11 00:17:32.865843062 +0100
 | 
					 | 
				
			||||||
+++ gdk-pixbuf-2.34.0/gdk-pixbuf/queryloaders.c	2017-01-16 16:12:03.420667874 +0100
 | 
					 | 
				
			||||||
@@ -354,16 +354,27 @@
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
                 dir = g_dir_open (path, 0, NULL);
 | 
					 | 
				
			||||||
                 if (dir) {
 | 
					 | 
				
			||||||
+                        GList *entries = NULL;
 | 
					 | 
				
			||||||
                         const char *dent;
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
                         while ((dent = g_dir_read_name (dir))) {
 | 
					 | 
				
			||||||
                                 gint len = strlen (dent);
 | 
					 | 
				
			||||||
                                 if (len > SOEXT_LEN &&
 | 
					 | 
				
			||||||
                                     strcmp (dent + len - SOEXT_LEN, SOEXT) == 0) {
 | 
					 | 
				
			||||||
-                                        query_module (contents, path, dent);
 | 
					 | 
				
			||||||
+                                        entries = g_list_append (entries, g_strdup (dent));
 | 
					 | 
				
			||||||
                                 }
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         g_dir_close (dir);
 | 
					 | 
				
			||||||
+                        /* Sort directory entries so that the output of
 | 
					 | 
				
			||||||
+                           ‘gdk-pixbuf-query-loaders’ is deterministic. */
 | 
					 | 
				
			||||||
+                        entries = g_list_sort (entries, (GCompareFunc) strcmp);
 | 
					 | 
				
			||||||
+                        GList *xentries;
 | 
					 | 
				
			||||||
+                        for (xentries = entries; xentries; xentries = g_list_next (xentries)) {
 | 
					 | 
				
			||||||
+                                dent = xentries->data;
 | 
					 | 
				
			||||||
+                                query_module (contents, path, dent);
 | 
					 | 
				
			||||||
+                                g_free (xentries->data);
 | 
					 | 
				
			||||||
+                        }
 | 
					 | 
				
			||||||
+                        g_list_free (entries);
 | 
					 | 
				
			||||||
                 }
 | 
					 | 
				
			||||||
 #else
 | 
					 | 
				
			||||||
                 g_string_append_printf (contents, "# dynamic loading of modules not supported\n");
 | 
					 | 
				
			||||||
		Reference in a new issue