[gtk/wip/smcv/reproducible-resources] build: Generate gdk.gresource.xml in sorted order



commit b35cd705a752979e1a7ca0745b1a015326826c32
Author: Simon McVittie <smcv debian org>
Date:   Thu Apr 2 12:52:16 2020 +0100

    build: Generate gdk.gresource.xml in sorted order
    
    The order in which the resources get embedded matters for reproducible
    builds. In the Meson build system, gen-gdk-gresources-xml already sorts
    the list, but in the Autotools build system they were previously taken
    in readdir() order.
    
    Signed-off-by: Simon McVittie <smcv debian org>

 gdk/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index 479d6a1182..3635864fef 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -471,7 +471,7 @@ stamp-gc-h: $(top_builddir)/config.status
 # Resources
 #
 
-glsl_sources := $(wildcard $(srcdir)/resources/glsl/*.glsl)
+glsl_sources := $(sort $(wildcard $(srcdir)/resources/glsl/*.glsl))
 
 gdk.gresource.xml: Makefile.am
        $(AM_V_GEN) echo "<?xml version='1.0' encoding='UTF-8'?>" > $@; \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]