mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-02-05 09:45:30 +01:00
tree: import changes from testing-devel at d972c54e3e
This commit is contained in:
1
ci/buildroot/buildroot-reqs-aarch64.txt
Normal file
1
ci/buildroot/buildroot-reqs-aarch64.txt
Normal file
@@ -0,0 +1 @@
|
||||
lld
|
||||
1
ci/buildroot/buildroot-reqs-ppc64le.txt
Normal file
1
ci/buildroot/buildroot-reqs-ppc64le.txt
Normal file
@@ -0,0 +1 @@
|
||||
lld
|
||||
1
ci/buildroot/buildroot-reqs-x86_64.txt
Normal file
1
ci/buildroot/buildroot-reqs-x86_64.txt
Normal file
@@ -0,0 +1 @@
|
||||
lld
|
||||
@@ -43,7 +43,7 @@ attr
|
||||
gjs
|
||||
|
||||
# Also, add clang since it's useful at least in CI for C/C++ projects
|
||||
clang lld
|
||||
clang
|
||||
# And the tools such as clang-format, used for style checking
|
||||
clang-tools-extra
|
||||
# All C/C++ projects should have CI that uses the sanitizers
|
||||
|
||||
@@ -6,14 +6,27 @@ set -euo pipefail
|
||||
dn=$(dirname "$0")
|
||||
tmpd=$(mktemp -d) && trap 'rm -rf ${tmpd}' EXIT
|
||||
|
||||
arch=$(arch)
|
||||
|
||||
echo "Installing base build requirements"
|
||||
dnf -y install /usr/bin/xargs 'dnf-command(builddep)'
|
||||
deps=$(grep -v '^#' "${dn}"/buildroot-reqs.txt)
|
||||
if [ -f "${dn}/buildroot-reqs-${arch}.txt" ]; then
|
||||
deps+=" "
|
||||
deps+=$(grep -v '^#' "${dn}/buildroot-reqs-${arch}.txt")
|
||||
fi
|
||||
echo "${deps}" | xargs dnf -y install
|
||||
|
||||
echo "Installing build dependencies of primary packages"
|
||||
brs=$(grep -v '^#' "${dn}"/buildroot-buildreqs.txt)
|
||||
echo "${brs}" | xargs dnf -y builddep
|
||||
(cd "${tmpd}" && mkdir rpmbuild
|
||||
echo "${brs}" | xargs dnf download --source
|
||||
# rebuild the SRPM for this arch; see
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1402784#c6
|
||||
find . -name '*.src.rpm' -print0 | xargs -0n 1 rpmbuild -rs --nodeps \
|
||||
-D "%_topdir $PWD/rpmbuild" -D "%_tmppath %{_topdir}/tmp"
|
||||
dnf builddep -y rpmbuild/SRPMS/*.src.rpm)
|
||||
rm -rf "${tmpd:?}"/*
|
||||
|
||||
echo "Installing build dependencies from canonical spec files"
|
||||
specs=$(grep -v '^#' "${dn}"/buildroot-specs.txt)
|
||||
|
||||
Reference in New Issue
Block a user