Reproducible builds: genbki.pl vs schemapg.h - Mailing list pgsql-hackers

From Christoph Berg
Subject Reproducible builds: genbki.pl vs schemapg.h
Date
Msg-id 20171215102223.GB31812@msg.df7cb.de
Whole thread Raw
Responses Re: Reproducible builds: genbki.pl vs schemapg.h  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

Debian's reproducible builds project has revealed that the full build
path gets embedded into server/catalog/schemapg.h:

/*-------------------------------------------------------------------------
 *
 * schemapg.h
 *    Schema_pg_xxx macros for use by relcache.c
 *
 * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * NOTES
 *  ******************************
 *  *** DO NOT EDIT THIS FILE! ***
 *  ******************************
 *
 *  It has been GENERATED by /build/postgresql-11-05gRdu/build/../src/backend/catalog/genbki.pl
 *
 *-------------------------------------------------------------------------
 */

This information will vary on rebuilding the binaries, needlessly
causing different checksums.

I'm proposing to strip that down to "It has been GENERATED genbki.pl".
Patch attached.

Christoph

Attachment

pgsql-hackers by date:

Previous
From: Stefan Keller
Date:
Subject: Re: GSoC 2018
Next
From: Christoph Berg
Date:
Subject: Package version in PG_VERSION and version()