Page MenuHomeFreeBSD

editors/emacs: Add upstream patch for check-declare-directory
ClosedPublic

Authored by yasu on May 12 2023, 12:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 25 2024, 4:44 PM
Unknown Object (File)
Feb 21 2024, 12:26 AM
Unknown Object (File)
Feb 21 2024, 12:26 AM
Unknown Object (File)
Feb 21 2024, 12:25 AM
Unknown Object (File)
Feb 21 2024, 12:11 AM
Unknown Object (File)
Jan 17 2024, 3:57 AM
Unknown Object (File)
Dec 20 2023, 5:33 AM
Unknown Object (File)
Dec 8 2023, 2:43 PM
Subscribers

Details

Summary

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.

make: stopped in /usr/ports/devel/git-modes

Test Plan

Build of all flavors succeeds with poudriere and 13.2-RELEASE amd64 jail.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable