From dbc2fd6f229f5655bef8091c9cb732c8a6d40644 Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Wed, 11 Jan 2023 19:28:21 +0100 Subject: [PATCH] rpmbuild-librsvg2: Get deps from srpm instead spec file to generate the dynamic dependencies --- tests/Sanity/rpmbuild-librsvg2/runtest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Sanity/rpmbuild-librsvg2/runtest.sh b/tests/Sanity/rpmbuild-librsvg2/runtest.sh index 8965c9e..470ecb5 100755 --- a/tests/Sanity/rpmbuild-librsvg2/runtest.sh +++ b/tests/Sanity/rpmbuild-librsvg2/runtest.sh @@ -48,7 +48,10 @@ rlJournalStart rlRun "rpm -ivh $SRPM" rlRun SPECDIR="$(rpm -E '%{_specdir}')" - rlRun "yum-builddep -y ${SPECDIR}/${PKG_TO_BUILD}.spec ${YUM_SWITCHES}" + # librsvg2 contains dynamic dependencies. builddep needs to be run + # from the srpm (not the spec file) to be able to generate them: + # https://fedoraproject.org/wiki/Changes/DynamicBuildRequires#rpmbuild + rlRun "yum-builddep -y ${SRPM} ${YUM_SWITCHES}" rlPhaseEnd rlPhaseStartTest