From c325e98cb3f470cffe524a8fcea341567547ed2d Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Tue, 16 Apr 2024 19:12:21 +0000
Subject: [PATCH] autoconf: remove obsolete patch detection

This commit removes obsolete deletection logic of the patch command
from autoconf scripts, given we no longer need to patch anything in
the GHC build process.

(cherry picked from commit 71f28958454872db9c21c7d974dd0f0a7c7e8f3d)
(cherry picked from commit 1e77ded14cac81998f211d2990b37b9ecded2fa7)
(cherry picked from commit e5506d09fd480ce42417be7a8ee63fbc43ad35e3)
---
 configure.ac                 | 4 ----
 hadrian/cfg/system.config.in | 1 -
 2 files changed, 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 808421a78b8..ece2118b7b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -764,10 +764,6 @@ dnl ** check for tar
 dnl   if GNU tar is named gtar, look for it first.
 AC_PATH_PROGS(TarCmd,gnutar gtar tar,tar)
 
-dnl ** check for patch
-dnl if GNU patch is named gpatch, look for it first
-AC_PATH_PROGS(PatchCmd,gpatch patch, patch)
-
 dnl ** check for autoreconf
 AC_PATH_PROG(AutoreconfCmd, autoreconf, autoreconf)
 
diff --git a/hadrian/cfg/system.config.in b/hadrian/cfg/system.config.in
index 609ca46ea5f..d432fc529ec 100644
--- a/hadrian/cfg/system.config.in
+++ b/hadrian/cfg/system.config.in
@@ -24,7 +24,6 @@ system-cc      = @CC_STAGE0@
 system-ghc     = @WithGhc@
 system-ghc-pkg = @GhcPkgCmd@
 tar            = @TarCmd@
-patch          = @PatchCmd@
 xelatex        = @XELATEX@
 makeindex      = @MAKEINDEX@
 makeinfo       = @MAKEINFO@
-- 
GitLab