aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorPeter Eisentraut2013-10-17 12:05:38 -0400
committerAdam Vandenberg2013-10-26 10:22:20 -0700
commite5679fd85f60fdd70ebb946ccf0e7a39e0fb3690 (patch)
treeba34f3787c54d824a221c04b8f9151cb4fa1e30c /Library/Formula
parentbf630cda10d0120f7260ef6b54ca2fede0458e51 (diff)
downloadhomebrew-e5679fd85f60fdd70ebb946ccf0e7a39e0fb3690.tar.bz2
dpkg: Patch to use gtar in more places
Closes #23335. Signed-off-by: Peter Eisentraut <peter@eisentraut.org> Closes #23335. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dpkg.rb22
1 files changed, 22 insertions, 0 deletions
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();