Bug 1902844 - Manual rebuild of package failed when there is a tape drive in the system
Summary: Manual rebuild of package failed when there is a tape drive in the system
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-30 19:32 UTC by Paweł
Modified: 2021-05-20 11:54 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-20 11:54:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paweł 2020-11-30 19:32:00 UTC
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)

Comment 1 Florian Festi 2021-02-05 14:44:23 UTC
Upstream fix: https://github.com/rpm-software-management/rpm/pull/1529

Comment 2 Panu Matilainen 2021-05-20 11:54:11 UTC
Fixed in rawhide as of rpm 4.17 alpha. F33-34 might get the fix later via an upstream rebase, can't promise though.


Note You need to log in before you can comment on or make changes to this bug.