[Buildroot] Build reproducibility

Jérôme Pouiller jezz at sysmic.org
Fri Aug 30 12:44:01 UTC 2013


On 2013-08-30 13:59, Thomas De Schampheleire wrote:
> Op 30-aug.-2013 10:32 schreef "Jérôme Pouiller" <jezz at sysmic.org> het 
> volgende:
>  >
>  > Hello,
>  >
>  > I noticed a problem with reproducibility of build. If I list 
> targets
>  > (using make show-targets) on Fedora and on Ubuntu, targets are on
>  > sorted on same orders. Indeed, result of $(wildcard *.mk) are not
>  > the same on these systems.
>  >
>  > It seems Make does not sort anymore result of wildcard since 3.82:
>  > http://comments.gmane.org/gmane.comp.gnu.make.bugs/4260 [1].
>  >
>  > Following patch should fix problem.
>
> In one of the previous buildroot developer days we discussed this.
> IIRC, the conclusion was that this change in order shouldn't matter,
> because all dependencies should be expressed in make. Hence, the end
> result should be the same, even though build order was not.
>
> Have you come across a scenario where there actually was a problem?

Some packages may detect installed library during ./configure run. 
Buildroot
should be aware of this and fix dependencies with that library. 
Although, it
is not always the case and Buildroot should at guarantee 
reproducibility of
build.

Without that, we cannot guarantee to reproduce a build done by 
Autobuilder.



-- 
Jérôme Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr



More information about the buildroot mailing list