mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
8afb0fcbeb
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
diff -Naur AFLplusplus-4.04c/qemu_mode/build_qemu_support.sh AFLplusplus-4.04c.patched/qemu_mode/build_qemu_support.sh
|
|
--- AFLplusplus-4.04c/qemu_mode/build_qemu_support.sh 2022-10-11 09:40:55.000000000 -0400
|
|
+++ AFLplusplus-4.04c.patched/qemu_mode/build_qemu_support.sh 2022-12-29 17:08:26.492717555 -0500
|
|
@@ -70,35 +70,7 @@
|
|
|
|
echo "[*] Making sure qemuafl is checked out"
|
|
|
|
-git status 1>/dev/null 2>/dev/null
|
|
-if [ $? -eq 0 ]; then
|
|
- echo "[*] initializing qemuafl submodule"
|
|
- git submodule init || exit 1
|
|
- git submodule update ./qemuafl 2>/dev/null # ignore errors
|
|
-else
|
|
- echo "[*] cloning qemuafl"
|
|
- test -d qemuafl/.git || {
|
|
- CNT=1
|
|
- while [ '!' -d qemuafl/.git -a "$CNT" -lt 4 ]; do
|
|
- echo "Trying to clone qemuafl (attempt $CNT/3)"
|
|
- git clone --depth 1 https://github.com/AFLplusplus/qemuafl
|
|
- CNT=`expr "$CNT" + 1`
|
|
- done
|
|
- }
|
|
-fi
|
|
-
|
|
-test -e qemuafl/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
|
|
-echo "[+] Got qemuafl."
|
|
-
|
|
cd "qemuafl" || exit 1
|
|
-if [ -n "$NO_CHECKOUT" ]; then
|
|
- echo "[*] Skipping checkout to $QEMUAFL_VERSION"
|
|
-else
|
|
- echo "[*] Checking out $QEMUAFL_VERSION"
|
|
- sh -c 'git stash' 1>/dev/null 2>/dev/null
|
|
- git pull
|
|
- git checkout "$QEMUAFL_VERSION" || echo Warning: could not check out to commit $QEMUAFL_VERSION
|
|
-fi
|
|
|
|
echo "[*] Making sure imported headers matches"
|
|
cp "../../include/config.h" "./qemuafl/imported/" || exit 1
|
|
@@ -239,7 +211,6 @@
|
|
--enable-debug-stack-usage \
|
|
--enable-debug-tcg \
|
|
--enable-qom-cast-debug \
|
|
- --enable-werror \
|
|
"
|
|
|
|
else
|