Description of problem: Rebuilding rpm package fails at testing stage Version-Release number of selected component (if applicable): rpm-4.16.0-5.fc33 Steps to Reproduce: 1. rpmbuild -ba rpm.spec Additional info: The main problem seems to be the use of the tape drive (/dev/nst0) during the test. And yes I have a tape drive. ## ---------------------- ## ## Detailed failed tests. ## ## ---------------------- ## # -*- compilation -*- 6. rpmgeneral.at:317: testing rpm2archive ... ./rpmgeneral.at:319: runroot_other rpm2archive - < "${RPMTEST}"/data/RPMS/hello-2.0-1.x86_64.rpm | tar tz runroot_other rpm2archive - < "${RPMTEST}"/data/SRPMS/hello-1.0-1.src.rpm | tar tz --- /dev/null┆ 2020-11-26 12:29:32.542914477 +0000 +++ /home/pawel/rpmbuild/BUILD/rpm-4.16.0/tests/rpmtests.dir/at-groups/6/stderr┆2020-11-30 16:50:22.865422023 +0000 @@ -0,0 +1,12 @@ +tar (child): /dev/nst0: Cannot open: No medium found +tar (child): Error is not recoverable: exiting now + +gzip: stdin: unexpected end of file +tar: Child returned status 2 +tar: Error is not recoverable: exiting now +tar (child): /dev/nst0: Cannot open: No medium found +tar (child): Error is not recoverable: exiting now + +gzip: stdin: unexpected end of file +tar: Child returned status 2 +tar: Error is not recoverable: exiting now --- -┆ 2020-11-30 16:50:22.870870713 +0000 +++ /home/pawel/rpmbuild/BUILD/rpm-4.16.0/tests/rpmtests.dir/at-groups/6/stdout┆2020-11-30 16:50:22.867422014 +0000 @@ -1,8 +1 @@ -./usr/bin/hello -./usr/share/doc/hello-2.0/ -./usr/share/doc/hello-2.0/COPYING -./usr/share/doc/hello-2.0/FAQ -./usr/share/doc/hello-2.0/README -./hello-1.0.tar.gz -./hello.spec ./rpmgeneral.at:319: exit code was 2, expected 0 6. rpmgeneral.at:317: 6. rpm2archive (rpmgeneral.at:317): FAILED (rpmgeneral.at:319)
Upstream fix: https://github.com/rpm-software-management/rpm/pull/1529
Fixed in rawhide as of rpm 4.17 alpha. F33-34 might get the fix later via an upstream rebase, can't promise though.