mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
9defac5b8c
This is used by our OpenShift Prow job; we use the cosa buildroot container: https://github.com/coreos/coreos-assembler/pull/730 And using `yum` at all means we can flake on fetching rpm metadata.
32 lines
870 B
Bash
Executable File
32 lines
870 B
Bash
Executable File
#!/usr/bin/bash
|
|
# Install build dependencies.
|
|
|
|
set -xeuo pipefail
|
|
|
|
# This is used by our OpenShift Prow job; we use the
|
|
# cosa buildroot container
|
|
# https://github.com/coreos/coreos-assembler/pull/730
|
|
# And using `yum` at all means we can flake on fetching rpm metadata
|
|
if [ -n "${SKIP_INSTALLDEPS:-}" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
dn=$(dirname $0)
|
|
. ${dn}/libpaprci/libbuild.sh
|
|
|
|
pkg_upgrade
|
|
pkg_install_buildroot
|
|
pkg_builddep ostree
|
|
pkg_install sudo which attr fuse strace \
|
|
libubsan libasan libtsan PyYAML redhat-rpm-config \
|
|
elfutils
|
|
if test -n "${CI_PKGS:-}"; then
|
|
pkg_install ${CI_PKGS}
|
|
fi
|
|
pkg_install_if_os fedora gjs gnome-desktop-testing parallel coccinelle clang \
|
|
python3-PyYAML
|
|
if test "${OS_ID}" = "centos"; then
|
|
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
pkg_install python34{,-PyYAML}
|
|
fi
|