unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
blob d1427cc38daac2ab32125d39d7adb4907c8ab6f3 1508 bytes (raw)
name: gnu/packages/patches/gdk-pixbuf-list-dir.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
--- 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-11 00:31:29.428372177 +0100
@@ -354,16 +354,25 @@
 
                 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);
+                        entries = g_list_sort (entries, 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");

debug log:

solving d1427cc38 ...
found d1427cc38 in https://yhetil.org/guix-bugs/20170115012207.2604-1-dannym__12142.5037425526$1484443409$gmane$org@scratchpost.org/

applying [1/1] https://yhetil.org/guix-bugs/20170115012207.2604-1-dannym__12142.5037425526$1484443409$gmane$org@scratchpost.org/
diff --git a/gnu/packages/patches/gdk-pixbuf-list-dir.patch b/gnu/packages/patches/gdk-pixbuf-list-dir.patch
new file mode 100644
index 000000000..d1427cc38

1:10: trailing whitespace.
 
1:15: trailing whitespace.
 
Checking patch gnu/packages/patches/gdk-pixbuf-list-dir.patch...
Applied patch gnu/packages/patches/gdk-pixbuf-list-dir.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 d1427cc38daac2ab32125d39d7adb4907c8ab6f3	gnu/packages/patches/gdk-pixbuf-list-dir.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).