Skip to content

Commit

Permalink
HACKING: Update installation of build dependencies
Browse files Browse the repository at this point in the history
`yum-builddep` and `dnf builddep` stumble over the unresolved
`%{npm-version:*}` macros (which are only filled in at release time).
Document how to filter them out while installing build dependencies in a
fresh git clone.

Less than ideal, but this at least gives working instructions until
someone has a better idea how to fix this.

Fixes cockpit-project#10755 
Closes cockpit-project#10774
  • Loading branch information
martinpitt authored and larskarlitski committed Dec 6, 2018
1 parent 8799ba2 commit 91ab285
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ To actually build the Cockpit binaries themselves from source
(including to run the integration tests locally), you will need
additional header files and other components. Check
`tools/cockpit.spec` for the concrete Fedora build dependencies.

Note that `tools/cockpit.spec` is a template filled in by
`tools/gen-spec-dependencies`, and cannot be directly parsed by yum/dnf.
The following should work in a fresh Git clone:

$ sudo yum install yum-utils
$ sudo yum-builddep tools/cockpit.spec
$ sed 's/%{npm-version:.*}/0/' tools/cockpit.spec | sudo yum-builddep --spec /dev/stdin

In addition, for testing, the following dependencies are required:

Expand Down

0 comments on commit 91ab285

Please sign in to comment.