Skip to content

Instantly share code, notes, and snippets.

@z3ntu
Created September 30, 2018 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z3ntu/3053feec82008aa2b71da9acb111f35f to your computer and use it in GitHub Desktop.
Save z3ntu/3053feec82008aa2b71da9acb111f35f to your computer and use it in GitHub Desktop.
Mir alpine bisect
#!/bin/bash
set -e
exitcode=0
patch -Np1 < ../disable-tests.patch
patch -Np1 < ../fix-musl-errors.patch
patch -Np1 < ../fix-musl-locale-crash.patch
patch -Np1 < ../replace-bash-for-env.patch
patch -Np1 < ../7c426ead336f5eab3ecac26ec9393eadea854d51.patch || true
mkdir build
pushd build
cmake ..
make -j6
set +e
OUTPUT=$(ldd lib/libmirserver.so.47 2>&1 | grep "symbol not found")
set -e
if test -z "$OUTPUT"; then
echo "REVISION GOOD!"
exitcode=0
else
echo "REVISION BAD!"
exitcode=1
fi
popd
# Revert changes
rm -rf build
git reset --hard
exit $exitcode
git bisect start
git bisect good v0.32.1
git bisect bad 0b7f873affec061aced9ace849cb994cf6380c80
git bisect run ../check_if_mirserver_so_broken.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment