mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 16:04:26 +01:00
The osbuilder scripts include a bunch of code for installing cmake, even though cmake is never invoked. versions.yaml claims it's needed to build grpc-rs, but that doesn't appear to be in our dependency graph. Presumably, we used to need this, but don't any more. So, remove all cmake references. Fixes #1309 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
50 lines
1.0 KiB
Bash
50 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2018 SUSE LLC
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
|
|
source config.sh
|
|
|
|
removeRepos=(repo-non-oss repo-update-non-oss repo-oss repo-update)
|
|
|
|
for r in ${removeRepos[@]}; do
|
|
zypper --non-interactive removerepo $r
|
|
done
|
|
|
|
zypper --non-interactive addrepo ${SUSE_FULLURL_OSS} osbuilder-oss
|
|
zypper --non-interactive addrepo ${SUSE_FULLURL_UPDATE} osbuilder-update
|
|
|
|
|
|
# Workaround for zypper slowdowns observed when running inside
|
|
# a container: see https://github.com/openSUSE/zypper/pull/209
|
|
# The fix is upstream but it will take a while before landing
|
|
# in Leap
|
|
ulimit -n 1024
|
|
zypper --non-interactive refresh
|
|
zypper --non-interactive install --no-recommends --force-resolution \
|
|
autoconf \
|
|
automake \
|
|
binutils \
|
|
coreutils \
|
|
curl \
|
|
gcc \
|
|
gcc-c++ \
|
|
git \
|
|
glibc-devel \
|
|
glibc-devel-static \
|
|
glibc-utils \
|
|
libstdc++-devel \
|
|
linux-glibc-devel \
|
|
m4 \
|
|
make \
|
|
python3-kiwi \
|
|
sed \
|
|
tar \
|
|
vim \
|
|
which
|
|
zypper --non-interactive clean --all
|
|
|