From a668ee8fe9b82606c6bec450ae40eed1d81aebe4 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 14 Mar 2016 13:21:54 +0000 Subject: [PATCH] giotypefuncs.c: Sort _get_type functions in the 'C' locale MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures that the generated file is always the same (not dependent on the build machine's environment), making the build reproducible. Thanks to Jérémy Bobbio for the Debian bug report and patch. https://bugzilla.gnome.org/show_bug.cgi?id=763617 --- gio/tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am index 0553fdfc6..29c7e47c3 100644 --- a/gio/tests/Makefile.am +++ b/gio/tests/Makefile.am @@ -559,7 +559,7 @@ giotypefuncs.c: Makefile ${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \ $(GREP) -o '\bg_[A-Za-z0-9_]*_get_type\b' | \ $(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \ - sort | uniq | \ + LC_ALL=C sort | uniq | \ $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \ cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c