Skip to content

Commit

Permalink
fix for project instructions (#677)
Browse files Browse the repository at this point in the history
Fix the instructions to install the copr repo in order to be able to install compat packages.
  • Loading branch information
kwk authored Aug 27, 2024
1 parent e93cddd commit 97fa0ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions project-instructions.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
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).

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

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

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

0 comments on commit 97fa0ce

Please sign in to comment.