Bug 2535610 - Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/cmake-init.el"
Summary: Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: cmake
Version: 45
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Björn Esser (besser82)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2545728 (view as bug list)
Depends On:
Blocks: 2545603
TreeView+ depends on / blocked
 
Reported: 2026-09-16 18:56 UTC by Stephan Bergmann
Modified: 2026-12-05 00:37 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
: 2576585 (view as bug list)
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources cmake pull-request 61 0 None None None 2026-11-16 14:30:13 UTC

Description Stephan Bergmann 2026-09-16 18:56:13 UTC
When starting `emacs` from `emacs-pgtk-31.1-2.fc45.x86_64` it now shows a `*Warnings*` buffer with
```
⛔ Warning (files): Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/cmake-init.el".
You can add one with ‘M-x elisp-enable-lexical-binding RET’.
See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’
for more information.
```

Reproducible: Always

Comment 1 Dorin Lazăr 2026-11-13 06:34:16 UTC
When I start emacs I get the following warnings:

 ■  Warning (files): Missing `lexical-binding' cookie in "/usr/share/emacs/site-lisp/site-start.d/cmake-init.el".
You can add one with `M-x elisp-enable-lexical-binding RET'.
See `(elisp)Selecting Lisp Dialect' and `(elisp)Converting to Lexical Binding'
for more information.
 ■  Warning (files): Missing `lexical-binding' cookie in "/usr/share/emacs/site-lisp/site-start.d/mercurial-site-start.el".
You can add one with `M-x elisp-enable-lexical-binding RET'.
See `(elisp)Selecting Lisp Dialect' and `(elisp)Converting to Lexical Binding'
for more information.
 ■  Warning (files): Missing `lexical-binding' cookie in "/usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el".
You can add one with `M-x elisp-enable-lexical-binding RET'.
See `(elisp)Selecting Lisp Dialect' and `(elisp)Converting to Lexical Binding'
for more information.
 ■  Warning (files): Missing `lexical-binding' cookie in "/usr/share/emacs/site-lisp/site-start.d/systemtap-init.el".
You can add one with `M-x elisp-enable-lexical-binding RET'.
See `(elisp)Selecting Lisp Dialect' and `(elisp)Converting to Lexical Binding'
for more information.


The fix would be to add in the first line the comment:
;;; ... -*- lexical-binding: t; -*-

for these files. The affected packages installed on my machine are cmake-data-4.3.0-5.fc45.noarch (this one), mercurial-7.2.4-1.fc45.x86_64, rpmdevtools-9.6-15.fc45.noarch and systemtap-devel-5.6-2.fc45.x86_64. Other packages might be affected as well.

I am not sure where is the proper spot to contribute this change. I see that cmake-init.el is not in the cmake git tree, and I'm not sure how to start tracking the source for the cmake-data package.

Comment 2 Peter Oliver 2026-11-16 14:28:46 UTC
*** Bug 2545728 has been marked as a duplicate of this bug. ***

Comment 3 Michal Jaegermann 2026-12-03 17:32:38 UTC
On my freshly updated system at least the following files are affected as above:

/usr/share/emacs/site-lisp/bbdb/bbdb-loaddefs.el
/usr/share/emacs/site-lisp/magit/magit-version.el
/usr/share/emacs/site-lisp/site-start.d/anthy-init.el
/usr/share/emacs/site-lisp/site-start.d/bbdb-init.el
/usr/share/emacs/site-lisp/site-start.d/cmake-init.el
/usr/share/emacs/site-lisp/site-start.d/dash-init.el
/usr/share/emacs/site-lisp/site-start.d/magit-init.el
/usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el
/usr/share/emacs/site-lisp/site-start.d/w3m-init.el

coming from the following packages:

anthy-9100h-62.fc45.x86_64
emacs-bbdb-3.2.2b-13.20220729git1b121e9.fc45.noarch
cmake-data-4.3.0-7.fc45.noarch
emacs-dash-2.20.0-4.fc45.noarch
emacs-magit-4.2.0-5.fc45.noarch
rpmdevtools-9.6-15.fc45.noarch
emacs-w3m-1.4.632~0.e3b87d61-8.fc45.noarch

Does this have to be chased package-by-package?

Comment 4 Paul Eggert 2026-12-03 20:52:53 UTC
(In reply to Michal Jaegermann from comment #3)
> Does this have to be chased package-by-package?

Apparently so. See bug 2545603, which this bug blocks.

Comment 5 Michal Jaegermann 2026-12-04 21:49:14 UTC
(In reply to Paul Eggert from comment #4)
> (In reply to Michal Jaegermann from comment #3)
> > Does this have to be chased package-by-package?
> 
> Apparently so. See bug 2545603, which this bug blocks.

Hm, how to add, say, 2535612 to a blocking list of 2545603? I failed to figure it out.

Comment 6 Paul Eggert 2026-12-05 00:37:03 UTC
(In reply to Michal Jaegermann from comment #5)
> Hm, how to add, say, 2535612 to a blocking list of 2545603? I failed to
> figure it out.

Press the "Show advanced fields" button on the web page. Yes, it's a bit out of the way. I added that blocker, so this info is for the next time you run into the issue.


Note You need to log in before you can comment on or make changes to this bug.