From 364a2fa6eeac1b06baf33ec742aa311bfef5f7e6 Mon Sep 17 00:00:00 2001 From: Diego Elio 'Flameeyes' Pettenò Date: Sat, 12 Dec 2009 21:46:17 +0100 Subject: Reorder tests so that all output is in the same place and the scanelf calls are all at the top. --- bashrc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/bashrc b/bashrc index 981fcdb..3a8cccf 100755 --- a/bashrc +++ b/bashrc @@ -40,13 +40,17 @@ post_src_install() { for symbol in adler32 BZ2_decompress jpeg_mem_init XML_Parse avcodec_init png_get_libpng_ver lt_dlopen GC_stdout; do scanelf -qRs +$symbol "${D}" >> "${T}"/tinderbox-scanelf-bundled.log done - tinderbox_if_file Warning tinderbox-scanelf-bundled.log "Possibly bundled libraries" rm -f "${T}"/tinderbox-scanelf-insecure.log for symbol in tmpnam tmpnam_r tempnam gets sigstack getpw getwd mktemp; do scanelf -qRs -$symbol "${D}" >> "${T}"/tinderbox-scanelf-insecure.log done - tinderbox_if_file Notice tinderbox-scanelf-insecure.log "Insecure functions used" + + scanelf -R "${D}"/usr/share > "${T}"/tinderbox-share-elfs.log + + if has binchecks ${RESTRICT}; then + scanelf -R "${D}" > "${T}"/tinderbox-elfs-bincheck.log + fi find "${D}" \ \( -name '._*' -fprintf "${T}"/tinderbox-osx-forkfile.log "%P\n" \) , \ @@ -69,17 +73,14 @@ post_src_install() { eqawarn "Tinderbox QA Warning: No locales installed (bug #264114)" fi - scanelf -R "${D}"/usr/share > "${T}"/tinderbox-share-elfs.log - - if has binchecks ${RESTRICT}; then - scanelf -R "${D}" > "${T}"/tinderbox-elfs-bincheck.log - fi - + tinderbox_if_file Warning tinderbox-scanelf-bundled.log "Possibly bundled libraries" tinderbox_if_file Warning tinderbox-invalid-directory.log "Invalid directories in image" tinderbox_if_file Warning tinderbox-osx-forkfile.log "OSX fork files found (._*)" tinderbox_if_file Warning tinderbox-share-elfs.log "ELF files in /usr/share" tinderbox_if_file Warning tinderbox-elfs-bincheck.log "ELF files in a binchecks-restricted package" tinderbox_if_file Warning tinderbox-pointless-la.log "Pointless libtool .la files found" + + tinderbox_if_file Notice tinderbox-scanelf-insecure.log "Insecure functions used" tinderbox_if_file Notice tinderbox-setXid-binaries.log "setXid files found" lafilefixer "${D}" -- cgit v1.2.3-65-gdbad