Bug 986539 - rpmbuild fails in %setup because of missing tar
Summary: rpmbuild fails in %setup because of missing tar
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 19
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: 2013-07-20 11:51 UTC by Matthew Farrellee
Modified: 2013-09-11 02:06 UTC (History)
6 users (show)

Fixed In Version: rpm-4.11.1-3.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 02:06:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matthew Farrellee 2013-07-20 11:51:49 UTC
Description of problem:

A base Fedora 19 install does not include tar. %setup requires tar.


Version-Release number of selected component (if applicable):

rpm-build-4.11.1-1.fc19.x86_64


How reproducible:

100%


Steps to Reproduce:
1. rpmbuild --rebuild <a src.rpm with a tarball source>

Actual results:

# rpmbuild --rebuild savanna-0.2-1.fc19.src.rpm
Installing savanna-0.2-1.fc19.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GrEWy4
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf savanna-0.2
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/savanna-0.2.tar.gz
+ /usr/bin/tar -xf -
/var/tmp/rpm-tmp.GrEWy4: line 30: /usr/bin/tar: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.GrEWy4 (%prep)


Additional info:

Workaround is to manually install tar.

Comment 1 Panu Matilainen 2013-07-23 18:40:05 UTC
(In reply to Matthew Farrellee from comment #0)
> A base Fedora 19 install does not include tar. %setup requires tar.

WTF? Who would ever expect tar to be always available on a unix-like system...

Regardless of Fedora's defaults which keep getting stranger and stranger, obviously a missing dependency is a bug, thanks for reporting.

Comment 2 Fedora Update System 2013-09-09 13:13:17 UTC
rpm-4.11.1-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/rpm-4.11.1-3.fc19

Comment 3 Fedora Update System 2013-09-09 23:58:57 UTC
Package rpm-4.11.1-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpm-4.11.1-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-16239/rpm-4.11.1-3.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-09-11 02:06:13 UTC
rpm-4.11.1-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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