[glib] glib-mkenums: Sort input files for more deterministic output
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib-mkenums: Sort input files for more deterministic output
- Date: Sat, 4 Mar 2017 22:06:18 +0000 (UTC)
commit 8686e43058765dce487a217736a970ac5643bddb
Author: Simon McVittie <smcv debian org>
Date: Sat Mar 4 15:15:50 2017 +0000
glib-mkenums: Sort input files for more deterministic output
This should be helpful for reproducible builds
<https://reproducible-builds.org/>.
Perl's sorting is not locale-sensitive unless the lexical scope has
'use locale', which this one does not, so we do not need to force
locale-agnostic sorting.
Signed-off-by: Simon McVittie <smcv debian org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=769983
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809152
gobject/glib-mkenums.in | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index f7da975..219a166 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -290,6 +290,8 @@ if (length($fhead)) {
print "$prod\n";
}
+@ARGV = sort @ARGV;
+
while (<>) {
if (eof) {
close (ARGV); # reset line numbering
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]