From 3d85897ce3b3f29e5287ce9cd2613a17c203da0f Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Mon, 5 Jun 2017 18:16:53 +0200
Subject: sort input files

when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would usually differ.

See https://reproducible-builds.org/ for why this matters.
---
 gr-utils/python/modtool/modtool_makexml.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-utils/python/modtool/modtool_makexml.py')

diff --git a/gr-utils/python/modtool/modtool_makexml.py b/gr-utils/python/modtool/modtool_makexml.py
index 575d7eb873..9d047a67bc 100644
--- a/gr-utils/python/modtool/modtool_makexml.py
+++ b/gr-utils/python/modtool/modtool_makexml.py
@@ -79,7 +79,7 @@ class ModToolMakeXML(ModTool):
 
     def _search_files(self, path, path_glob):
         """ Search for files matching pattern in the given path. """
-        files = glob.glob("%s/%s"% (path, path_glob))
+        files = sorted(glob.glob("%s/%s"% (path, path_glob)))
         files_filt = []
         print "Searching for matching files in %s/:" % path
         for f in files:
-- 
cgit v1.2.3