[Buildroot] [PATCH] pkg-infra: log current message
Jérôme Pouiller
jezz at sysmic.org
Mon Oct 7 20:53:34 UTC 2013
On Monday 07 October 2013 18:59:56 Yann E. MORIN wrote:
[...]
> I have another interesting idea about such a script: detect whether a
> package overwrites or otherwise modifies a file already existing in
> staging/ and/or target/ to assess for the sanity of the packaging.
I wrote something like this. It is able to track owner of each files of
target/ and host/. It generates list of owners[1][2]. These list may be
usefull to generate binary packages.
I am also able to generate list of overwritten files[3][4].
Once I have list of owners in host/, I can track which files are
accessed during build and compute dependencies between packages[5].
As you notice, it is only a proof of concept. There is plenty of false
positives and I noticed many problems. Especially, current script is not
very reliable when I launch compilation from a dirty directory.
It is currently done by launching a daemon which watch target and host
(using inotify) during each step a built. This daemon log access to
files and another script post-process it. (I think, I would have far
better results if I maintain in real time a database of owners of all
installed files). I may send patches if you are interested (but they are
a little ugly).
[1] http://sysmic.org/~jezz/instrument/host_owners.gz
[2] http://sysmic.org/~jezz/instrument/target_owners.gz
[3] http://sysmic.org/~jezz/instrument/host_owners.err.gz
[4] http://sysmic.org/~jezz/instrument/target_owners.err.gz
[5] http://sysmic.org/~jezz/instrument/depends
--
Jérôme Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
More information about the buildroot
mailing list