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)
Sat, Nov 9, 12:06 PM
Unknown Object (File)
Oct 4 2024, 2:55 PM
Unknown Object (File)
Oct 1 2024, 9:51 AM
Unknown Object (File)
Sep 27 2024, 7:06 AM
Unknown Object (File)
Sep 21 2024, 9:55 AM
Unknown Object (File)
Sep 8 2024, 7:19 PM
Unknown Object (File)
Sep 8 2024, 5:16 PM
Unknown Object (File)
Sep 7 2024, 1:49 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
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 51467
Build 48358: arc lint + arc unit