ci: Hackaround Fedora rpm/libdb/glibc issue
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
This commit is contained in:
parent
0fb8686ccc
commit
5cf128052f
|
|
@ -8,8 +8,6 @@ context: f26-primary
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: registry.fedoraproject.org/fedora:26
|
image: registry.fedoraproject.org/fedora:26
|
||||||
packages:
|
|
||||||
- git
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Enable all the sanitizers for this primary build.
|
# Enable all the sanitizers for this primary build.
|
||||||
|
|
@ -36,8 +34,6 @@ context: c7-primary
|
||||||
inherit: true
|
inherit: true
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
packages:
|
|
||||||
|
|
||||||
host:
|
host:
|
||||||
distro: centos/7/atomic
|
distro: centos/7/atomic
|
||||||
|
|
||||||
|
|
@ -55,10 +51,9 @@ context: f26-rust
|
||||||
inherit: true
|
inherit: true
|
||||||
container:
|
container:
|
||||||
image: registry.fedoraproject.org/fedora:26
|
image: registry.fedoraproject.org/fedora:26
|
||||||
packages:
|
|
||||||
- cargo
|
|
||||||
env:
|
env:
|
||||||
CONFIGOPTS: '--enable-rust'
|
CONFIGOPTS: '--enable-rust'
|
||||||
|
CI_PKGS: cargo
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
- ci/build.sh
|
- ci/build.sh
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,16 @@ set -xeuo pipefail
|
||||||
dn=$(dirname $0)
|
dn=$(dirname $0)
|
||||||
. ${dn}/libbuild.sh
|
. ${dn}/libbuild.sh
|
||||||
|
|
||||||
|
pkg_upgrade
|
||||||
pkg_install_builddeps ostree
|
pkg_install_builddeps ostree
|
||||||
# Until this propagates farther
|
# Until this propagates farther
|
||||||
pkg_install 'pkgconfig(libcurl)' 'pkgconfig(openssl)'
|
pkg_install 'pkgconfig(libcurl)' 'pkgconfig(openssl)'
|
||||||
pkg_install sudo which attr fuse \
|
pkg_install sudo which attr fuse \
|
||||||
libubsan libasan libtsan PyYAML redhat-rpm-config \
|
libubsan libasan libtsan PyYAML redhat-rpm-config \
|
||||||
elfutils
|
elfutils
|
||||||
|
if test -n "${CI_PKGS:-}"; then
|
||||||
|
pkg_install ${CI_PKGS}
|
||||||
|
fi
|
||||||
pkg_install_if_os fedora gjs gnome-desktop-testing parallel coccinelle clang
|
pkg_install_if_os fedora gjs gnome-desktop-testing parallel coccinelle clang
|
||||||
|
|
||||||
# always fail on warnings; https://github.com/ostreedev/ostree/pull/971
|
# always fail on warnings; https://github.com/ostreedev/ostree/pull/971
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@ set -euo pipefail
|
||||||
# if running under PAPR, use the branch/PR HEAD actually
|
# if running under PAPR, use the branch/PR HEAD actually
|
||||||
# being tested rather than the merge sha
|
# being tested rather than the merge sha
|
||||||
HEAD=${PAPR_COMMIT:-HEAD}
|
HEAD=${PAPR_COMMIT:-HEAD}
|
||||||
|
dn=$(dirname $0)
|
||||||
|
. ${dn}/libbuild.sh
|
||||||
|
|
||||||
tmpd=$(mktemp -d)
|
tmpd=$(mktemp -d)
|
||||||
touch ${tmpd}/.tmpdir
|
touch ${tmpd}/.tmpdir
|
||||||
|
|
@ -27,6 +29,9 @@ cleanup_tmp() {
|
||||||
}
|
}
|
||||||
trap cleanup_tmp EXIT
|
trap cleanup_tmp EXIT
|
||||||
|
|
||||||
|
pkg_upgrade
|
||||||
|
pkg_install git
|
||||||
|
|
||||||
gitdir=$(realpath $(pwd))
|
gitdir=$(realpath $(pwd))
|
||||||
# Create a temporary copy of this (using cp not git clone) so git doesn't
|
# 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
|
# try to read the submodules from the Internet again. If we wanted to
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
|
dn=$(dirname $0)
|
||||||
|
. ${dn}/libbuild.sh
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
env NOCONFIGURE=1 ./autogen.sh
|
env NOCONFIGURE=1 ./autogen.sh
|
||||||
./configure --prefix=/usr --libdir=/usr/lib64 "$@"
|
./configure --prefix=/usr --libdir=/usr/lib64 "$@"
|
||||||
|
|
@ -11,6 +14,7 @@ build() {
|
||||||
|
|
||||||
codedir=$(pwd)
|
codedir=$(pwd)
|
||||||
|
|
||||||
|
pkg_upgrade
|
||||||
# Core prep
|
# Core prep
|
||||||
yum -y install dnf-plugins-core @buildsys-build 'dnf-command(builddep)'
|
yum -y install dnf-plugins-core @buildsys-build 'dnf-command(builddep)'
|
||||||
# build+install ostree, and build deps for both, so that our
|
# build+install ostree, and build deps for both, so that our
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,19 @@
|
||||||
#!/usr/bin/bash
|
#!/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() {
|
make() {
|
||||||
/usr/bin/make -j $(getconf _NPROCESSORS_ONLN) "$@"
|
/usr/bin/make -j $(getconf _NPROCESSORS_ONLN) "$@"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue