From 94f3a3c743af5b64a3d6b9a4f079ecb8b1b92a86 Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Thu, 8 May 2014 17:09:44 -0700 Subject: [PATCH] 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 Closes Homebrew/homebrew#29074. Signed-off-by: Misty De Meo --- Formula/dpkg.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/dpkg.rb b/Formula/dpkg.rb index e1dd6b4c46..0d9ac9466c 100644 --- a/Formula/dpkg.rb +++ b/Formula/dpkg.rb @@ -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",