Re: Reproducible builds: genbki.pl vs schemapg.h

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Reproducible builds: genbki.pl vs schemapg.h
Дата
Msg-id
5525.1513381145@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Reproducible builds: genbki.pl vs schemapg.h Christoph Berg <christoph.berg@credativ.de>
Re: Reproducible builds: genbki.pl vs schemapg.h Tom Lane <tgl@sss.pgh.pa.us>
Re: Reproducible builds: genbki.pl vs schemapg.h Christoph Berg <christoph.berg@credativ.de>
Re: Reproducible builds: genbki.pl vs schemapg.h Michael Paquier <michael.paquier@gmail.com>
Re: Reproducible builds: genbki.pl vs schemapg.h Andres Freund <andres@anarazel.de>
Re: Reproducible builds: genbki.pl vs schemapg.h Tom Lane <tgl@sss.pgh.pa.us>
Re: Reproducible builds: genbki.pl vs schemapg.h Christoph Berg <christoph.berg@credativ.de>
Re: Reproducible builds: genbki.pl vs schemapg.h Tom Lane <tgl@sss.pgh.pa.us>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Christoph Berg <christoph.berg@credativ.de>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Tom Lane <tgl@sss.pgh.pa.us>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl David Fetter <david@fetter.org>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Tom Lane <tgl@sss.pgh.pa.us>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Tom Lane <tgl@sss.pgh.pa.us>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Michael Paquier <michael.paquier@gmail.com>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Michael Paquier <michael.paquier@gmail.com>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Christoph Berg <christoph.berg@credativ.de>
Re: Reproducible builds: genbki.pl and Gen_fmgrtab.pl Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Reproducible builds: genbki.pl vs schemapg.h Peter Geoghegan <pg@bowt.ie>
Andres Freund  writes:
> On 2017-12-16 07:52:41 +0900, Michael Paquier wrote:
>> On Sat, Dec 16, 2017 at 3:13 AM, Christoph Berg
>>  wrote:
>>> Re: Tom Lane 2017-12-15 <9616.1513351766@sss.pgh.pa.us>
>>>> genbki.pl is hardly our only script that prints its $0 ...

>>> As per
>>> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/postgresql-10.html,
>>> that's the only place that makes it into the resulting binary.

I'm fairly confused by this claim.  Since the string in question is in a
comment, it really shouldn't affect built binaries at all.  I can believe
that it would affect the non-binary contents of the finished package,
because we include schemapg.h as one of the installed headers.  However,
we also include fmgroids.h, which also has an expanded version of $0
in it.  So if schemapg.h is affected by build path, why isn't fmgroids.h?

In my build, neither one of these files contains any path information;
I speculate that you need to use a VPATH build to have an issue, or
maybe Debian's build environment does something even weirder.  But
I feel confident in saying that if indeed fmgroids.h is invariant for
you today, that's a phase-of-the-moon behavior that will break someday
if we don't make a similar change in Gen_fmgrtab.pl.  Or else we should
propagate what's preventing it back to genbki.pl.

plperl's text2macro.pl is also emitting $0, and there may be other places
I missed (I grepped for 'DO NOT EDIT', not for $0 per se).  We seem not
to install the output file of that one, perlchunks.h, but that's a
decision that somebody might change too.

> It's not like $0 instead of a hardcoded name in the header actually buys
> us anything afaict.

Agreed so far as the script name goes.  However, two out of three of these
scripts also print their input file names, and I'm suspicious that that
output is also gonna change in a VPATH build.  I'm a little less inclined
to buy the claim that we're not losing anything if we suppress that :-(

			regards, tom lane

В списке pgsql-hackers по дате отправления
От: Peter Geoghegan
Дата:
От: Jeremy Finzel
Дата:
FAQ