Fedora Account System
Red Hat Associate
Red Hat Customer
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
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.