rpm-ostree/ci/libbuild.sh
Jonathan Lebon a2878de382 ci: no longer install polkit-devel
This should get pulled in automatically now.

Closes: #896
Approved by: cgwalters
2017-07-26 19:22:51 +00:00

35 lines
663 B
Bash

#!/usr/bin/bash
make() {
/usr/bin/make -j $(getconf _NPROCESSORS_ONLN) "$@"
}
build() {
env NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --libdir=/usr/lib64 "$@"
make
}
build_default() {
export CFLAGS="${CFLAGS:-} -fsanitize=undefined"
build
}
install_builddeps() {
pkg=$1
if [ -x /usr/bin/dnf ]; then
dnf -y install dnf-plugins-core
dnf install -y @buildsys-build
dnf install -y 'dnf-command(builddep)'
dnf builddep -y $pkg
else
yum install -y make rpm-build
yum-builddep -y rpm-ostree
fi
# builddeps+runtime deps
yum install -y $pkg
rpm -e $pkg
}