mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
Try to lock llvm* and clang* packages so that we don't install LLVM from a previous copr build
This commit is contained in:
parent
e8dead8794
commit
072ee8575f
1 changed files with 6 additions and 1 deletions
|
@ -3,9 +3,14 @@
|
||||||
# https://pagure.io/copr/copr/issue/184
|
# https://pagure.io/copr/copr/issue/184
|
||||||
.PHONY: srpm
|
.PHONY: srpm
|
||||||
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 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
|
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 \
|
rpmbuild \
|
||||||
--define "_srcrpmdir $(outdir)" \
|
--define "_srcrpmdir $(outdir)" \
|
||||||
--define "_sourcedir $(shell pwd)" \
|
--define "_sourcedir $(shell pwd)" \
|
||||||
|
|
Loading…
Reference in a new issue