Skip to content

Commit 09f3137

Browse files
committed
beaker-tests: Temporarily build hello from F43
The `main` variant (Rawhide) uses a locally created `make dist` tarball, to work-around the current FTBFS against the newest GCC: https://src.fedoraproject.org/rpms/hello/c/af27df4609302190668b8db4cb85380aab4f7795?branch=rawhide Waiting for a new GNU Hello release: https://savannah.gnu.org/bugs/?67961
1 parent d4467b2 commit 09f3137

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

beaker-tests/Sanity/copr-cli-basic-operations/runtest-coprdir.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,18 @@ rlJournalStart
4949
# be something like `python-copr` or `python-copr-common`, and the
5050
# second package would be something like `copr-cli` or `copr-backend`.
5151

52+
# We need a package with well-structured Source statements so they can
53+
# be downloaded easily. GNU Hello RPM is a great example; it is
54+
# intentionally a textbook example of how RPMs should be structured.
55+
spec_url=https://src.fedoraproject.org/rpms/hello/raw/f43/f/hello.spec
56+
5257
# This is the dependency (e.g. python-copr)
53-
rlRun "curl https://src.fedoraproject.org/rpms/hello/raw/rawhide/f/hello.spec > $tmp/hello-1.spec"
58+
rlRun "curl $spec_url > $tmp/hello-1.spec"
5459
rlRun "sed -i '1s/^/Epoch: 6\n/' $tmp/hello-1.spec"
5560
rlRun "copr-cli build $PROJECT:custom:foo $tmp/hello-1.spec"
5661

5762
# And this is the package that builds on top of it (e.g. copr-cli)
58-
rlRun "curl https://src.fedoraproject.org/rpms/hello/raw/rawhide/f/hello.spec > $tmp/hello-2.spec"
63+
rlRun "curl $spec_url > $tmp/hello-2.spec"
5964
rlRun "sed -i '1s/^/BuildRequires: hello >= 6:\n/' $tmp/hello-2.spec"
6065
rlRun "copr-cli build $PROJECT:custom:foo $tmp/hello-2.spec"
6166
rlPhaseEnd

0 commit comments

Comments
 (0)