From 4e05204f06126ddd388ccbc806090f8a1c11af18 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 22 Apr 2018 02:39:10 -0700 Subject: [PATCH] libfaketime: depend on coreutils The `faketime` wrapper needs GNU `gdate` to support relative date syntax such as "3 weeks ago," which is not supported by the BSD `date` command. Fixes #26568. Closes #26944. Signed-off-by: ilovezfs --- Formula/libfaketime.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/libfaketime.rb b/Formula/libfaketime.rb index e9c0f81ebd..3dda79e400 100644 --- a/Formula/libfaketime.rb +++ b/Formula/libfaketime.rb @@ -3,6 +3,7 @@ class Libfaketime < Formula homepage "https://github.com/wolfcw/libfaketime" url "https://github.com/wolfcw/libfaketime/archive/v0.9.7.tar.gz" sha256 "4d65f368b2d53ee2f93a25d5e9541ce27357f2b95e5e5afff210e0805042811e" + revision 1 head "https://github.com/wolfcw/libfaketime.git" bottle do @@ -11,6 +12,11 @@ class Libfaketime < Formula sha256 "0b792c716c6e8ba9db928b0c4dc4ab2dc474eb12da529186ba4475f5fba73169" => :el_capitan end + # The `faketime` command needs GNU `gdate` not BSD `date`. + # See https://github.com/wolfcw/libfaketime/issues/158 and + # https://github.com/Homebrew/homebrew-core/issues/26568 + depends_on "coreutils" + depends_on :macos => :lion def install