gitlab-ci: skip valgrind on Debian/sid with glib2.0 (2.66.4-2)

See-also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1902#note_1018573
This commit is contained in:
Thomas Haller 2021-01-28 13:44:05 +01:00
parent d446cde260
commit 7869aacf61
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -118,6 +118,10 @@ _with_valgrind() {
if rpm -q glib2 | grep -q glib2-2.61.0-2.fc31 ; then
WITH_VALGRIND=0
fi
elif grep -q '^PRETTY_NAME="Debian.*sid"$' /etc/os-release; then
if dpkg -s libglib2.0-bin | grep -q '^Version: 2.66.4-2$' ; then
WITH_VALGRIND=0
fi
fi
if [ "$WITH_VALGRIND" == 0 ]; then
echo "Don't use valgrind due to known issues in other packages."