Bug 120702 - RPM does not honor the tar program
RPM does not honor the tar program
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-04-13 02:50 EDT by Anders F Björklund
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-13 11:24:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Anders F Björklund 2004-04-13 02:50:28 EDT
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):

How reproducible:

Steps to Reproduce:
rpmbuild something with a tarball

Actual Results:  + /usr/bin/gzip -dc
+ tar -xf -

Expected Results:  + /usr/bin/gzip -dc
+ /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 02:51:50 EDT
Created attachment 99353 [details]
patch to use %{__tar} macro
Comment 2 Jeff Johnson 2004-04-13 11:24:52 EDT
Yup, that's the legacy compatible behavior supported in rpm.
Comment 3 Anders F Björklund 2004-04-13 13:42:14 EDT
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.