dpkg: use homebrew gtar in C programs

dpkg will call tar with options like --warning=no-timestamp, which OSX's
tar does not support.  We should specify TAR=gtar to ./configure so
things like dpkg-scanpackages use the correct tar.

Signed-off-by: Drew Fisher <zarvox@zarvox.org>

Closes Homebrew/homebrew#29074.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
Drew Fisher 2014-05-08 17:09:44 -07:00 committed by Misty De Meo
parent f7fd6dba41
commit 94f3a3c743

View file

@ -12,6 +12,9 @@ class Dpkg < Formula
patch :DATA
def install
# We need to specify a recent gnutar, otherwise various dpkg C programs will
# use the system 'tar', which will fail because it lacks certain switches.
ENV["TAR"] = Formula["gnu-tar"].opt_bin/"gtar"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-dselect",