[Buildroot] [PATCH v1 2/2] dhcp: disable isc assertions (reproducible builds)
Peter Korsgaard
peter at korsgaard.com
Sun Feb 4 21:50:49 UTC 2018
>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
> Peter, All,
> On 2018-02-03 22:54 +0100, Peter Korsgaard spake thusly:
>> >>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
> [--SNIP--]
>> > Now, about reproducibility... We could at least pass -DFILE=\"\" and so
>> > on from inside our gcc-wrapper, like we already do for __DATE__ and
>> > __TIME__. Yes, that would give an empty filename in assertions and the
>> > likes, but do we care in the end?
>>
>> It would be nicer if we could pass basename($file), but that would break
>> with compilations with multiple source files passed to gcc or header
>> files, so yeah, perhaps that is the best way forward.
>>
>> How does E.G. Debian handle it?
> I could not find an authoritative source for this, but from what I could
> hint from [0] (see the part about "Qt tests and __FILE__"), they do have
> a patched gcc and a special dpkg which use the BUILD_PATH_PREFIX_MAP
> environment variable as specified iby reproducible-builds.org [1].
> Also, upstream gcc has an "in-progress" upstream solution being worked
> on, based on BUILD_PATH_PREFIX_MAP, but they did not like it [2]...
> [0] https://reproducible.alioth.debian.org/blog/posts/134/
> [1] https://reproducible-builds.org/specs/build-path-prefix-map/
> [2] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00232.html
Thanks - Looks interesting. I wasn't aware of this
BUILD_PATH_PREFIX_MAP.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list