Add following upstream patch for check-declare-directory.
commit ed1a24b4b2e39498e4c4448365e1d5f0149e5fc6
Author: Lars Ingebrigtsen <larsi@gnus.org>
AuthorDate: Wed May 11 14:18:27 2022 +0200
Commit: Lars Ingebrigtsen <larsi@gnus.org>
CommitDate: Wed May 11 14:18:27 2022 +0200
Don't signal errors in check-declare-directory * lisp/emacs-lisp/check-declare.el (check-declare-directory): Don't bug out if we don't find any files with declare-function:(bug#55354) because this is a predicate function, and that's inconvenient.
This fixes build error with upcoming update of devel/git-modes to
1.4.1 as following.
<phase: build >
> Building for git-modes-1.4.1,1
gmake[1]: Entering directory '/wrkdirs/usr/ports/devel/git-modes/work-full/git-modes-1.4.1'
Compiling git-modes.el
Compiling gitattributes-mode.el
Compiling gitconfig-mode.el
Compiling gitignore-mode.el
Creating git-modes-autoloads.el
Checking function declarations
Debugger entered--Lisp error: (error "find exited with status 1")
signal(error ("find exited with status 1")) error("%s exited with status %s" "find" 1) process-lines-handling-status("find" nil "." "-name" "*.el" "-exec" "grep" "-l" "^[ \11]*(declare-function" "{}" "+") apply(process-lines-handling-status "find" nil ("." "-name" "*.el" "-exec" "grep" "-l" "^[ \11]*(declare-function" "{}" "+")) process-lines("find" "." "-name" "*.el" "-exec" "grep" "-l" "^[ \11]*(declare-function" "{}" "+") check-declare-directory("~/git-modes-1.4.1/") eval((check-declare-directory default-directory) t) command-line-1(("-L" "/usr/local/share/emacs/28.2/site-lisp/compat" "-L" "." "--eval" "(check-declare-directory default-directory)")) command-line() normal-top-level()
gmake[1]: *** [Makefile:37: check-declare] Error 255
gmake[1]: Leaving directory '/wrkdirs/usr/ports/devel/git-modes/work-full/git-modes-1.4.1'
- Error code 1
Stop.