From 072ee8575fb1501b906d95d3a3749d22a695ef92 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Tue, 6 Sep 2022 14:23:15 +0200 Subject: [PATCH] Try to lock llvm* and clang* packages so that we don't install LLVM from a previous copr build --- .copr/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.copr/Makefile b/.copr/Makefile index be16732..eea92f6 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -3,9 +3,14 @@ # https://pagure.io/copr/copr/issue/184 .PHONY: srpm srpm: - dnf install -y dnf-plugins-core fedora-packager + dnf install -y dnf-plugins-core fedora-packager python3-dnf-plugin-versionlock dnf copr enable -y --setopt=reposdir=/tmp/yum.repos.d @fedora-llvm-team/llvm-snapshot-builder dnf install -y --setopt=reposdir=/tmp/yum.repos.d llvm-snapshot-builder + for p in $(dnf --setopt=reposdir=/tmp/yum.repos.d repoquery llvm* clang* 2>/dev/null); do \ + echo "Locking package: $p"; \ + dnf --setopt=reposdir=/tmp/yum.repos.d versionlock $p; \ + done + cat /etc/dnf/plugins/versionlock.list rpmbuild \ --define "_srcrpmdir $(outdir)" \ --define "_sourcedir $(shell pwd)" \