[arch-dev-public] [idea] global link database for all packages

Pierre Schmitz pierre at archlinux.de
Sun Jun 28 12:13:54 EDT 2009


On Wednesday 24 June 2009 23:00:02 Daenyth Blank wrote:
> On Wed, Jun 24, 2009 at 15:36, Pierre Schmitz<pierre at archlinux.de> wrote:
> > * check if a file is an elf file
> > * extract the header
> > * move to next file
>
> I think `file` and `readelf` would help.

file is several times slower than readelf. But I have found some other 
optimization:
* Only extract files from /opt /lib /sbin /bin /usr/lib /usr/sbin /usr/bin
* run the script for both arches in parallel
* treat links to libs and executables as files (this way we can check for
  exact so names)
* The script uses results from previous runs and as a result should be fast
  enough to be run on gerolde (I can provide an inital data set)

The resultsing db files are quite small: 20 KB for core and 320 KB for extra.

So, what do you think about adding this to our cron jobs? We could run it on a 
daily base and update the db files.

It should be easy to write clients which check for possible rebuild candidates 
and do all kinds of integrity checks.

-- 

Pierre Schmitz, http://users.archlinux.de/~pierre


More information about the arch-dev-public mailing list