Skip to content

Commit

Permalink
Install builddeps and fix entering builddir
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaarreell committed Oct 31, 2024
1 parent e3117dd commit 238e91d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ rlJournalStart
rlLogInfo "Will use agent sources from SRPM"
rlFetchSrcForInstalled keylime-agent-rust
rlRun "rpm -i keylime-agent-rust*.src.rpm"
rlRun "dnf -y builddep ~/rpmbuild/SPECS/keylime-agent-rust.spec"
rlRun "rpmbuild -bp ~/rpmbuild/SPECS/keylime-agent-rust.spec --nodeps --define '_builddir $PWD'" 0,1
rlRun "pushd keylime-agent-rust*build/rust-keylime*"
if ls -d keylime-agent-rust*build; then
rlRun "pushd keylime-agent-rust*build/rust-keylime*"
else
rlRun "rm -rf rust-keylime-*SPECPARTS"
rlRun "pushd rust-keylime*"
fi
else
rlLogInfo "Will use agent sources from upstream repo"
rlRun "git clone ${RUST_KEYLIME_UPSTREAM_URL} ${WORKDIR}/rust-keylime"
Expand Down

0 comments on commit 238e91d

Please sign in to comment.