summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-12-12 21:46:17 +0100
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-12-12 21:46:17 +0100
commit364a2fa6eeac1b06baf33ec742aa311bfef5f7e6 (patch)
tree49c6d0e194aa4c26955a0531797acf271b333390 /bashrc
parentUse the same style for all warnings. (diff)
downloadflameeyes-tinderbox-364a2fa6eeac1b06baf33ec742aa311bfef5f7e6.tar.gz
flameeyes-tinderbox-364a2fa6eeac1b06baf33ec742aa311bfef5f7e6.tar.bz2
flameeyes-tinderbox-364a2fa6eeac1b06baf33ec742aa311bfef5f7e6.zip
Reorder tests so that all output is in the same place and the scanelf calls
are all at the top.
Diffstat (limited to 'bashrc')
-rwxr-xr-xbashrc17
1 files 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}"