[Buildroot] [PATCH v3] core/pkg-generic: only save latest package list

Nicolas Cavallari nicolas.cavallari at green-communications.fr
Fri Jan 4 15:30:05 UTC 2019


On 04/01/2019 14:12, Yann E. MORIN wrote:
> John. All,
> 
> On 2018-05-01 13:28 +0100, John Keeping spake thusly:
>> When rebuilding a package, simply appending the package's file list to
>> the global list means that the package list grows for every rebuild, as
> 
> Is there a particular issue with those three files growing on rebuild?

The problem is that not only does this makes the file list grow, it also
adds loads of incorrect data: when rebuilding a package that was
compiled early, all files modified since the package was built will be
included. So the list will include files that have been installed by
this package and all packages compiled after it. For some core packages,
this usually means "almost everything".

> Compared to the rest of the build tree, those three files have very
> small sizes in fact, and if they eventually end up big enough to be a
> substantial part of the build tree, it's most probably time for a clean
> build from scratch anyway, no?

Having a big list would not a problem if nobody used the content of this
file, but some tools scans it and use it to check files. After many
recompiling, I remember having problems with one tool taking a
considerable amount of time for each build because of all the duplicates
in the list. But i don't remember which tool it was.



More information about the buildroot mailing list