Created
September 30, 2018 10:37
-
-
Save z3ntu/3053feec82008aa2b71da9acb111f35f to your computer and use it in GitHub Desktop.
Mir alpine bisect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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