Skip to content

Commit 97fa0ce

Browse files
authored
fix for project instructions (#677)
Fix the instructions to install the copr repo in order to be able to install compat packages.
1 parent e93cddd commit 97fa0ce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

project-instructions.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
For instructions on how to use this repository, consult the [official docs](https://docs.pagure.org/copr.copr/how_to_enable_repo.html#how-to-enable-repo).
22

3-
It should be enough to enable the copr repository for this project using the following command:
3+
We need a bit of post-configuration after enabling the copr repository for this project:
44

55
```
6-
$ dnf install 'dnf-command(copr)'
7-
$ dnf copr enable -y @fedora-llvm-team/llvm-snapshots
6+
$ dnf -y install jq envsubst
7+
$ dnf -y install --skip-broken 'dnf-command(copr)' 'dnf5-command(copr)'
8+
$ dnf -y copr enable @fedora-llvm-team/llvm-snapshots
9+
$ repo_file=$(dnf repoinfo --json *llvm-snapshots* | jq -r ".[0].repo_file_path")
10+
$ distname=$(rpm --eval "%{?fedora:fedora}%{?rhel:rhel}") envsubst '$distname' < $repo_file > /tmp/new_repo_file
11+
$ cat /tmp/new_repo_file > $repo_file
812
```
913

1014
Then install `clang` or some of the other packages.

0 commit comments

Comments
 (0)