Work around error with libgstreamer1.0-dev under Ubuntu 22.04
Installing this package directly fails because of a conflict between one of its dependencies and the already installed libc++-dev which depends on another, incompatible, version of the same library. Work around this by installing libunwind-dev directly, which is enough to make apt uninstall libc++-dev and libunwind-14-dev that it depends on instead of just stopping with an error. It's not really clear how are we supposed to use clang with libc++ in this environment, but this at least allows to build with gcc.
This commit is contained in:
parent
8064abb0d6
commit
e3adac72ac
1 changed files with 13 additions and 1 deletions
|
|
@ -28,8 +28,8 @@ case $(uname -s) in
|
|||
return $rc
|
||||
}
|
||||
|
||||
codename=$(lsb_release --codename --short)
|
||||
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" | \
|
||||
|
|
@ -64,6 +64,18 @@ case $(uname -s) in
|
|||
;;
|
||||
esac
|
||||
|
||||
case "$codename" in
|
||||
jammy)
|
||||
# Under Ubuntu 22.04 installing libgstreamer1.0-dev
|
||||
# fails because it depends on libunwind-dev which
|
||||
# is not going to be installed because it conflicts
|
||||
# with the pre-installed (in GitHub Actions
|
||||
# environment) libc++-dev, so we need to install it
|
||||
# directly to avoid errors later.
|
||||
extra_deps="$extra_deps libunwind-dev"
|
||||
;;
|
||||
esac
|
||||
|
||||
extra_deps="$extra_deps \
|
||||
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
||||
libglu1-mesa-dev"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue