Not sure I want to wait a few days for a new container, so let's
give this a shot now.
See https://bugzilla.redhat.com/show_bug.cgi?id=
1483553
Closes: #1143
Approved by: jlebon
container:
image: registry.fedoraproject.org/fedora:26
-packages:
- - git
env:
# Enable all the sanitizers for this primary build.
inherit: true
required: true
-packages:
-
host:
distro: centos/7/atomic
inherit: true
container:
image: registry.fedoraproject.org/fedora:26
-packages:
- - cargo
env:
CONFIGOPTS: '--enable-rust'
+ CI_PKGS: cargo
tests:
- ci/build.sh
dn=$(dirname $0)
. ${dn}/libbuild.sh
+pkg_upgrade
pkg_install_builddeps ostree
# Until this propagates farther
pkg_install 'pkgconfig(libcurl)' 'pkgconfig(openssl)'
pkg_install sudo which attr fuse \
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
# always fail on warnings; https://github.com/ostreedev/ostree/pull/971
# if running under PAPR, use the branch/PR HEAD actually
# being tested rather than the merge sha
HEAD=${PAPR_COMMIT:-HEAD}
+dn=$(dirname $0)
+. ${dn}/libbuild.sh
tmpd=$(mktemp -d)
touch ${tmpd}/.tmpdir
}
trap cleanup_tmp EXIT
+pkg_upgrade
+pkg_install git
+
gitdir=$(realpath $(pwd))
# Create a temporary copy of this (using cp not git clone) so git doesn't
# try to read the submodules from the Internet again. If we wanted to
set -xeuo pipefail
+dn=$(dirname $0)
+. ${dn}/libbuild.sh
+
build() {
env NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib64 "$@"
codedir=$(pwd)
+pkg_upgrade
# Core prep
yum -y install dnf-plugins-core @buildsys-build 'dnf-command(builddep)'
# build+install ostree, and build deps for both, so that our
#!/usr/bin/bash
+pkg_upgrade() {
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1483553
+ if ! yum -y upgrade 2>err.txt; then
+ ecode=$?
+ if grep -q -F -e "BDB1539 Build signature doesn't match environment" err.txt; then
+ rpm --rebuilddb
+ yum -y upgrade
+ else
+ cat err.txt
+ exit ${ecode}
+ fi
+ fi
+}
+
make() {
/usr/bin/make -j $(getconf _NPROCESSORS_ONLN) "$@"
}