Skip to content

Commit 7d21cd4

Browse files
author
Release Manager
committed
gh-40688: check for presense of the patch utility some systems might have no `patch` installed, and then the build fails at the 1st spkg to be patched. As reported on https://groups.google.com/g/sage- devel/c/hmIBRrkdecw/m/aQpIcWwXAgAJ ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #40688 Reported by: Dima Pasechnik Reviewer(s): Michael Orlitzky
2 parents 0fe4c81 + f433c4e commit 7d21cd4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ then
220220
AC_MSG_ERROR([Exiting, as the archiver 'ar' can not be found.])
221221
fi
222222

223+
AC_CHECK_PROG(found_patch, patch, yes, no)
224+
if test x$found_patch != xyes
225+
then
226+
AC_MSG_NOTICE([Sorry, the 'patch' command must be in the path to build AC_PACKAGE_NAME])
227+
AC_MSG_NOTICE([See e.g. https://www.gnu.org/software/patch/])
228+
AC_MSG_ERROR([Exiting, as the utility 'patch' can not be found.])
229+
fi
230+
223231
AC_CHECK_PROG(found_m4, m4, yes, no)
224232
if test x$found_m4 != xyes
225233
then

0 commit comments

Comments
 (0)