Move ASAN-specific packages installation
No changes yet, just reorganize things to make upcoming changes simpler.
This commit is contained in:
@@ -9,6 +9,29 @@ SUDO=sudo
|
|||||||
case $(uname -s) in
|
case $(uname -s) in
|
||||||
Linux)
|
Linux)
|
||||||
if [ -f /etc/apt/sources.list ]; then
|
if [ -f /etc/apt/sources.list ]; then
|
||||||
|
if [ "$wxUSE_ASAN" = 1 ]; then
|
||||||
|
codename=$(lsb_release --codename --short)
|
||||||
|
# Enable the `-dbgsym` repositories.
|
||||||
|
echo "deb http://ddebs.ubuntu.com ${codename} main restricted universe multiverse
|
||||||
|
deb http://ddebs.ubuntu.com ${codename}-updates main restricted universe multiverse
|
||||||
|
deb http://ddebs.ubuntu.com ${codename}-proposed main restricted universe multiverse" | \
|
||||||
|
$SUDO tee --append /etc/apt/sources.list.d/ddebs.list
|
||||||
|
|
||||||
|
# Import the debug symbol archive signing key from the Ubuntu server.
|
||||||
|
# Note that this command works only on Ubuntu 18.04 LTS and newer.
|
||||||
|
$SUDO apt-get install -y ubuntu-dbgsym-keyring
|
||||||
|
|
||||||
|
# The key in the package above is currently (2021-03-22) out of
|
||||||
|
# date, so get the latest key manually (this is completely
|
||||||
|
# insecure, of course, but we don't care).
|
||||||
|
wget -O - http://ddebs.ubuntu.com/dbgsym-release-key.asc | $SUDO apt-key add -
|
||||||
|
|
||||||
|
$SUDO apt-get update
|
||||||
|
|
||||||
|
# Install the symbols to allow LSAN suppression list to work.
|
||||||
|
$SUDO apt-get install -y libfontconfig1-dbgsym libglib2.0-0-dbgsym libgtk-3-0-dbgsym libatk-bridge2.0-0-dbgsym
|
||||||
|
fi
|
||||||
|
|
||||||
$SUDO apt-get update
|
$SUDO apt-get update
|
||||||
|
|
||||||
case "$wxCONFIGURE_FLAGS" in
|
case "$wxCONFIGURE_FLAGS" in
|
||||||
@@ -45,29 +68,6 @@ case $(uname -s) in
|
|||||||
done
|
done
|
||||||
|
|
||||||
$SUDO apt-get install -y $libtoolkit_dev $pkg_install
|
$SUDO apt-get install -y $libtoolkit_dev $pkg_install
|
||||||
|
|
||||||
if [ "$wxUSE_ASAN" = 1 ]; then
|
|
||||||
codename=$(lsb_release --codename --short)
|
|
||||||
# Enable the `-dbgsym` repositories.
|
|
||||||
echo "deb http://ddebs.ubuntu.com ${codename} main restricted universe multiverse
|
|
||||||
deb http://ddebs.ubuntu.com ${codename}-updates main restricted universe multiverse
|
|
||||||
deb http://ddebs.ubuntu.com ${codename}-proposed main restricted universe multiverse" | \
|
|
||||||
$SUDO tee --append /etc/apt/sources.list.d/ddebs.list
|
|
||||||
|
|
||||||
# Import the debug symbol archive signing key from the Ubuntu server.
|
|
||||||
# Note that this command works only on Ubuntu 18.04 LTS and newer.
|
|
||||||
$SUDO apt-get install -y ubuntu-dbgsym-keyring
|
|
||||||
|
|
||||||
# The key in the package above is currently (2021-03-22) out of
|
|
||||||
# date, so get the latest key manually (this is completely
|
|
||||||
# insecure, of course, but we don't care).
|
|
||||||
wget -O - http://ddebs.ubuntu.com/dbgsym-release-key.asc | $SUDO apt-key add -
|
|
||||||
|
|
||||||
$SUDO apt-get update
|
|
||||||
|
|
||||||
# Install the symbols to allow LSAN suppression list to work.
|
|
||||||
$SUDO apt-get install -y libfontconfig1-dbgsym libglib2.0-0-dbgsym libgtk-3-0-dbgsym libatk-bridge2.0-0-dbgsym
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user