From 0455f808b12e587dbf7700a8468fb984b2c78b3e Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 4 Jun 2024 14:10:01 -0400 Subject: [PATCH] build: Fetch latest spec from Fedora To get `zstd-devel`. Signed-off-by: Colin Walters --- hack/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/build.sh b/hack/build.sh index 91231a4a..d9e626d1 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -5,4 +5,8 @@ case $ID in centos|rhel) dnf config-manager --set-enabled crb;; fedora) dnf -y install dnf-utils ;; esac -dnf -y builddep bootc +# Fetch the latest spec from fedora to ensure we've got the latest build deps +t=$(mktemp --suffix .spec) +curl -L -o ${t} https://src.fedoraproject.org/rpms/bootc/raw/rawhide/f/bootc.spec +dnf -y builddep "${t}" +rm -f "${t}"