Skip to content

Remove Focal #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions setup_sbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ else
disttype="debian"
fi

if [ "$dist" = "focal" ]; then
ubuntu_ports="/ubuntu-ports"
fi
# Determine base apt repository URL based on type of distribution and architecture.
case "$disttype" in
ubuntu)
Expand Down Expand Up @@ -90,23 +87,8 @@ fi
schroot -c source:${dist}-${arch}-sbuild -d / -- apt-get update
schroot -c source:${dist}-${arch}-sbuild -d / -- apt-get install -y build-essential python3 python3-pip python3-venv python3-dev g++ clang

if [ "$dist" = "focal" ]; then
# Install gcc-10 and g++-10 which are required in case of Ubuntu Focal to support Ranges library, introduced in C++20
schroot -c source:${dist}-${arch}-sbuild -d / -- bash -c "apt update && apt remove -y gcc-9 g++-9 gcc-9-base && apt upgrade -yqq && apt install -y gcc build-essential gcc-10 g++-10 clang-format clang lcov openssl"
schroot -c source:${dist}-${arch}-sbuild -d / -- bash -c "[ -f /usr/bin/gcc-10 ] && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10|| echo 'gcc-10 installation failed'"

# Install newer version of debhelper
# Required because of a bug: https://bugs-devel.debian.org/cgi-bin/bugreport.cgi?bug=959731
INSTALL_DEBHELPER_FROM_BULLSEYE="apt install -y wget \
&& wget http://ftp.de.debian.org/debian/pool/main/d/debhelper/libdebhelper-perl_13.3.4_all.deb \
http://ftp.de.debian.org/debian/pool/main/d/debhelper/debhelper_13.3.4_all.deb \
&& dpkg -i libdebhelper-perl_13.3.4_all.deb debhelper_13.3.4_all.deb \
|| apt-get -yf install"
schroot -c source:${dist}-${arch}-sbuild -d / -- bash -c "$INSTALL_DEBHELPER_FROM_BULLSEYE"
fi

# Install latest CMake version for Focal, Jammy and Bullseye
if [ "$dist" = "focal" ] || [ "$dist" = "jammy" ] || [ "$dist" = "bullseye" ]; then
# Install latest CMake version for Jammy and Bullseye
if [ "$dist" = "jammy" ] || [ "$dist" = "bullseye" ]; then
schroot -c source:${dist}-${arch}-sbuild -d / -- bash -c "apt install -y python3-pip && \
python3 -m pip install --upgrade pip && \
python3 -m pip install cmake==3.31.6 && \
Expand Down