Bug 2535610
| Summary: | Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/cmake-init.el" | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stephan Bergmann <sberg.fun> | |
| Component: | cmake | Assignee: | Björn Esser (besser82) <besser82> | |
| Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 45 | CC: | besser82, dorin.lazar, eggert, mattias.ellert, mavit, michal.jnn, rds1944, sagitterghostproton.me, suraj.ghimire7, tfujiwar | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | --- | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2576585 (view as bug list) | Environment: | ||
| Last Closed: | Type: | --- | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2545603 | |||
|
Description
Stephan Bergmann
2026-09-16 18:56:13 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. *** Bug 2545728 has been marked as a duplicate of this bug. *** 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? (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. (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. (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. |