Sort $(wildcard) output where needed for reproducible build output.
authorTom Lane
Tue, 5 Jan 2016 20:47:05 +0000 (15:47 -0500)
committerTom Lane
Tue, 5 Jan 2016 20:47:05 +0000 (15:47 -0500)
The order of inclusion of .o files makes a difference in linker output;
not a functional difference, but still a bitwise difference, which annoys
some packagers who would like reproducible builds.

Report and patch by Christoph Berg

contrib/pg_xlogdump/Makefile

index ada261c4dd00111ad7d2c7bdc08244302defa3ce..c226fa260007f2bbd31dce498abb464be76f7b1c 100644 (file)
@@ -7,7 +7,7 @@ PROGRAM = pg_xlogdump
 OBJS = pg_xlogdump.o compat.o xlogreader.o rmgrdesc.o \
    $(RMGRDESCOBJS) $(WIN32RES)
 
-RMGRDESCSOURCES = $(notdir $(wildcard $(top_srcdir)/src/backend/access/rmgrdesc/*desc.c))
+RMGRDESCSOURCES = $(sort $(notdir $(wildcard $(top_srcdir)/src/backend/access/rmgrdesc/*desc.c)))
 RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
 
 EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c