Split elf dependency extraction out of librpmbuild to external helper
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 10 Feb 2010 08:52:40 +0000 (10:52 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 10 Feb 2010 09:20:51 +0000 (11:20 +0200)
commit87c237bebfc792a8b439fa2c5a2b78328b139d50
tree6f4368c590cff4f3c2e60bb3510ebe10e67db77c
parenta79822f382c2e9e5002e7b411fa556c999fdc331
Split elf dependency extraction out of librpmbuild to external helper
- Elf dependency extraction code code lifted from rpmfcELF() and refactored
  to saner pieces. Having it in separate executable also frees librpmbuild
  of libelf dependency, clean up the unnecessary linkage etc from
  autofoo
- This lets internal dependency generator for elf files be
  overridden without losing file coloring (which is required for
  correct multilib handling). It also permits non-native elf files
  (eg when cross-building) to be handled by providing a custom
  elf dependency helper
- On the flip side, this inevitably slows down builds somewhat as
  two fork-exec's are needed for every elf file, but unlike invoking
  something like the python interpreter, this is a slim helper...
- All dependency extractors of the internal dependency generator are now
  external helpers (how twisted is that, huh? :) and thus can be customized
  and filtered through %__foo_provides|requires macros
Makefile.am
build/Makefile.am
build/rpmfc.c
configure.ac
macros.in
rpmio/Makefile.am
tools/elfdeps.c [new file with mode: 0644]