HACKING: Fix intructions for installing cockpit build dependences

Since we use /dev/stdin for the spec file the command aborts before we
are able to confirm the transaction.
Workaround this problem by creating a temporary spec file that we pass
to dnf builddep command.

Fixes #11378
Closes #11408
This commit is contained in:
Katerina Koukiou 2019-03-16 18:11:34 +01:00 committed by Martin Pitt
parent 1d557372c6
commit 95ce821b01
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ Note that `tools/cockpit.spec` is a template filled in by
The following should work in a fresh Git clone:
$ sudo dnf install dnf-utils
$ sed 's/%{npm-version:.*}/0/' tools/cockpit.spec | sudo dnf builddep --spec /dev/stdin
$ TEMPFILE=$(mktemp -u --suffix=.spec) && \
sed 's/%{npm-version:.*}/0/' tools/cockpit.spec >$TEMPFILE && \
sudo dnf builddep --spec $TEMPFILE && \
rm $TEMPFILE
In addition, for testing, the following dependencies are required: