This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository liblucy-perl.

commit d78678fe181f5f91719ccb6b5b42e8090cea9ddd
Author: intrigeri <intrig...@boum.org>
Date:   Tue Jul 5 12:10:39 2016 +0000

    reproducible2.patch: added. Thanks to Reiner Herrmann <rei...@reiner-h.de> 
for the patch! Closes: #828766
---
 debian/patches/reproducible2.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series              |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/reproducible2.patch 
b/debian/patches/reproducible2.patch
new file mode 100644
index 0000000..12f8866
--- /dev/null
+++ b/debian/patches/reproducible2.patch
@@ -0,0 +1,30 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Sort list of files searched by S_find_cfh in readdir order
+
+--- a/clownfish/src/CFCHierarchy.c
++++ b/clownfish/src/CFCHierarchy.c
+@@ -115,6 +115,16 @@
+     }
+ }
+ 
++/* From qsort(3) */
++static int cmpstringp(const void *p1, const void *p2)
++{
++    /* The actual arguments to this function are "pointers to
++     * pointers to char", but strcmp(3) arguments are "pointers
++     * to char", hence the following cast plus dereference */
++
++    return strcmp(* (char * const *) p1, * (char * const *) p2);
++}
++
+ static char**
+ S_find_cfh(char *dir, char **cfh_list, size_t num_cfh) {
+     void *dirhandle = CFCUtil_opendir(dir);
+@@ -152,6 +162,7 @@
+         }
+     }
+ 
++    qsort(cfh_list, num_cfh, sizeof(char*), cmpstringp);
+     FREEMEM(full_path);
+     CFCUtil_closedir(dirhandle, dir);
+     return cfh_list;
diff --git a/debian/patches/series b/debian/patches/series
index 4818597..c968218 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 mips-unaligned-access.patch
 reproducible.patch
+reproducible2.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/liblucy-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to