1
0
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:
CoreOS Bot
2023-10-10 20:18:57 +00:00
parent 6d8f1eefea
commit c3a151fbf8
5 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1 @@
lld

View File

@@ -0,0 +1 @@
lld

View File

@@ -0,0 +1 @@
lld

View File

@@ -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

View File

@@ -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)