Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Print all dependencies at once in install script instead of one at a time. #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

novafacing
Copy link

I've installed AFL a few times in the last couple days and have been mildly annoyed by the fact that there is an exit 1 in the qemu build script after each failed dependency. In practice, this means that I (a person who forgot the dependencies) need to run the script several times and install dependencies each time until I have them all. This is a super small patch, but it fixes the issue and just gives you the full list of missing dependencies. I just tested on a fresh Ubuntu 20.04 docker:

root@1c3eaa577e21:/AFL/qemu_mode# ./build_qemu_support.sh 
=================================================
AFL binary-only instrumentation QEMU build script
=================================================

[*] Performing basic sanity checks...
[-] Error: 'libtool' not found, please install first.
[-] Error: 'wget' not found, please install first.
[-] Error: 'python' not found, please install first.
[-] Error: 'automake' not found, please install first.
[-] Error: 'autoconf' not found, please install first.
[-] Error: 'bison' not found, please install first.
[-] Error: devel version of 'glib2' not found, please install first.
[-] Error: dependencies missing. Please install them and try again!
root@1c3eaa577e21:/AFL/qemu_mode# apt-get install libtool-bin wget python automake autoconf bison libglib2.0-dev

Hopefully this 5 minute fix makes life a little easier for folks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant