Bug 120702 - RPM does not honor the tar program
Summary: RPM does not honor the tar program
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 1
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL: http://rpm4darwin.sourceforge.net
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-13 06:50 UTC by Anders F Björklund
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-04-13 15:24:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to use %{__tar} macro (1.01 KB, patch)
2004-04-13 06:51 UTC, Anders F Björklund
no flags Details | Diff

Description Anders F Björklund 2004-04-13 06:50:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.7a) Gecko/20040116 Camino/0.7+

Description of problem:
RPM uses a hard-coded "tar" program to do the
expansion, instead of using the %{__tar} macro.

This bad on platforms which puts the regular
tar in some odd location like "gnutar", and
provides a "different" version of tar.

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

How reproducible:
Always

Steps to Reproduce:
rpmbuild something with a tarball
    

Actual Results:  + /usr/bin/gzip -dc
/Users/afb/rpm/SOURCES/rpm-4.2.1.tar.gz
+ tar -xf -


Expected Results:  + /usr/bin/gzip -dc
/Users/afb/rpm/SOURCES/rpm-4.2.1.tar.gz
+ /usr/bin/gnutar -xf -


Additional info:

Hope I'm filing this in the right place.
I couldn't see a distro-agnostic RPM.

Comment 1 Anders F Björklund 2004-04-13 06:51:50 UTC
Created attachment 99353 [details]
patch to use %{__tar} macro

Comment 2 Jeff Johnson 2004-04-13 15:24:52 UTC
Yup, that's the legacy compatible behavior supported in rpm.

Comment 3 Anders F Björklund 2004-04-13 17:42:14 UTC
OK, will continue to patch downstream (if needed) then.

But it seems that they have switched "tar" back to regular
gnutar in the latest version, so it might not be needed...
(in earlier versions, tar was linked to the pax program)
And sh was really zsh, but it's been changed to bash now.
So the number of ugly workarounds needed are dropping...

(in case it wasn't obvious, this was running on Mac OS X.
OpenDarwin currently uses RPM as the binary package format)


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