View Issue Details

IDProjectCategoryView StatusLast Update
0009505Rocky-Linux-9emacspublic2025-05-19 19:04
ReporterScott Anderson Assigned ToLouis Abel  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Platformx86_64OSRockyOS Version9.5 (Blue Onyx)
Summary0009505: RPM for Emacs-common has a files.el that is missing defvar enable-dir-local-variables which breaks "dired" command
DescriptionOn Tuesday, May 13, I installed updates to Rocky Linux in the usual way. These updates included Emacs. However, my users quickly noticed that the Emacs "dired" command was broken. I tracked it down to a missing variable in files.el. I downloaded the source code from the Emacs website and compared it to the files.el that is in the RPM, and they differ. I think something is not right with the Rocky Linux RPM for Emacs.

The variable definition seems to have been caught up by mistake in a CVE patch:
https://git.rockylinux.org/staging/rpms/emacs/-/blob/r9/SOURCES/emacs-CVE-2024-53920.patch
Steps To ReproduceRun emacs and use the command M-x dired RET. instead of giving a directory listing, it will give an error:

Symbol’s value as variable is void: enable-dir-local-variables

The variable should be defined in files.el, but it is not.

Additional InformationThe variable is listed here:

https://emacsdocs.org/docs/elisp/Directory-Local-Variables#variable-enable-dir-local-variables

I downloaded the Emacs source code for 27.2 from https://ftpmirror.gnu.org/emacs/emacs-27.2.tar.gz and compared files.el with the version in the Rocky RPM, and indeed, the variable is missing:

> (defvar enable-dir-local-variables t
> "Non-nil means enable use of directory-local variables.
> Some modes may wish to set this to nil to prevent directory-local
> settings being applied, but still respect file-local ones.")

TagsNo tags attached.

Issue History

Date Modified Username Field Change
2025-05-19 18:35 Scott Anderson New Issue
2025-05-19 19:04 Louis Abel Assigned To => Louis Abel
2025-05-19 19:04 Louis Abel Status new => acknowledged
2025-05-19 19:04 Louis Abel Note Added: 0010198