coreutils: remove obsolete fix for El Capitan

The fix made building v8.31 fail with the following error:
    Error: An exception occurred within a child process:
      Errno::ENOENT: No such file or directory @ rb_sysopen - lib/renameat2.c

Closes #37963.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Leon Klingele 2019-03-16 09:05:00 +01:00 committed by Chongyu Zhu
parent 7b0008e87e
commit 0c27ead93d
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -32,20 +32,6 @@ class Coreutils < Formula
conflicts_with "truncate", :because => "both install `truncate` binaries"
def install
if MacOS.version == :el_capitan
# Work around unremovable, nested dirs bug that affects lots of
# GNU projects. See:
# https://github.com/Homebrew/homebrew/issues/45273
# https://github.com/Homebrew/homebrew/issues/44993
# This is thought to be an el_capitan bug:
# https://lists.gnu.org/archive/html/bug-tar/2015-10/msg00017.html
ENV["gl_cv_func_getcwd_abort_bug"] = "no"
# renameatx_np and RENAME_EXCL are available at compile time from Xcode 8
# (10.12 SDK), but the former is not available at runtime.
inreplace "lib/renameat2.c", "defined RENAME_EXCL", "defined UNDEFINED_GIBBERISH"
end
system "./bootstrap" if build.head?
args = %W[