Building pg_xlogdump reproducibly

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема Building pg_xlogdump reproducibly
Дата
Msg-id 20160104145945.GD17503@dg-i.net
обсуждение исходный текст
Ответы Re: Building pg_xlogdump reproducibly  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
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 xlogreaderoverride CPPFLAGS := -DFRONTEND $(CPPFLAGS)
-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))
 

Spotted by Debian's reproducible builds project:
https://wiki.debian.org/ReproducibleBuilds
https://reproducible-builds.org/

Christoph



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Refactoring of LWLock tranches
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Rationalizing Query.withCheckOptions