From e5679fd85f60fdd70ebb946ccf0e7a39e0fb3690 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 17 Oct 2013 12:05:38 -0400 Subject: dpkg: Patch to use gtar in more places Closes #23335. Signed-off-by: Peter Eisentraut Closes #23335. Signed-off-by: Adam Vandenberg --- Library/Formula/dpkg.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/dpkg.rb b/Library/Formula/dpkg.rb index 3a7b535e9..d21946345 100644 --- a/Library/Formula/dpkg.rb +++ b/Library/Formula/dpkg.rb @@ -114,3 +114,25 @@ index 4a64fd1..bb19f59 100644 regex => qr/[0-9a-f]{64}/, }, }; +diff --git a/scripts/Dpkg/Source/Archive.pm b/scripts/Dpkg/Source/Archive.pm +index de30bf4..c97d421 100644 +--- a/scripts/Dpkg/Source/Archive.pm ++++ b/scripts/Dpkg/Source/Archive.pm +@@ -47,7 +47,7 @@ sub create { + $spawn_opts{from_pipe} = \*$self->{tar_input}; + # Call tar creation process + $spawn_opts{delete_env} = [ 'TAR_OPTIONS' ]; +- $spawn_opts{exec} = [ 'tar', '--null', '-T', '-', '--numeric-owner', ++ $spawn_opts{exec} = [ 'gtar', '--null', '-T', '-', '--numeric-owner', + '--owner', '0', '--group', '0', + @{$opts{options}}, '-cf', '-' ]; + *$self->{pid} = spawn(%spawn_opts); +@@ -123,7 +123,7 @@ sub extract { + + # Call tar extraction process + $spawn_opts{delete_env} = [ 'TAR_OPTIONS' ]; +- $spawn_opts{exec} = [ 'tar', '--no-same-owner', '--no-same-permissions', ++ $spawn_opts{exec} = [ 'gtar', '--no-same-owner', '--no-same-permissions', + @{$opts{options}}, '-xf', '-' ]; + spawn(%spawn_opts); + $self->close(); -- cgit v1.2.3