The list of objects used to link pg_xlogdump is coming from
$(wildcard *desc.c) which returns them in filesystem order. This makes
the build result depend on this ordering, yielding different
compilation results.

This patch fixes the reproducibility issue:

--- a/src/bin/pg_xlogdump/Makefile
+++ b/src/bin/pg_xlogdump/Makefile
@@ -12,7 +12,7 @@ OBJS = pg_xlogdump.o compat.o xlogreader
-RMGRDESCSOURCES = $(notdir $(wildcard 
+RMGRDESCSOURCES = $(sort $(notdir $(wildcard 
 RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))

Spotted by Debian's reproducible builds project:


Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to