4bbea19a31
The Dockerfile is problematic since we can't update it atomically. I also really dislike reliance on the Hub. Further, I think rather than caching our build deps as built containers, we should be caching RPMs in CI. And we should be using rpm-ostree at some point to assemble filesystem trees faster. Also, consolidate the clang to be serial with gcc, since while we lose a tiny bit of parallelism, it's not really worth its own context right now. Closes: #759 Approved by: jlebon
29 lines
507 B
Bash
29 lines
507 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='-fsanitize=undefined'
|
|
build
|
|
}
|
|
|
|
install_builddeps() {
|
|
pkg=$1
|
|
dnf -y install dnf-plugins-core
|
|
dnf install -y @buildsys-build
|
|
dnf install -y 'dnf-command(builddep)'
|
|
|
|
# builddeps+runtime deps
|
|
dnf builddep -y $pkg
|
|
dnf install -y $pkg
|
|
rpm -e $pkg
|
|
}
|