From 9900aece5d5295d2d976bb1f81591c9061080a33 Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Thu, 8 May 2014 17:09:44 -0700 Subject: 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 #29074. Signed-off-by: Misty De Meo --- Library/Formula/dpkg.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') diff --git a/Library/Formula/dpkg.rb b/Library/Formula/dpkg.rb index e1dd6b4c4..0d9ac9466 100644 --- a/Library/Formula/dpkg.rb +++ b/Library/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", -- cgit v1.2.3