Subject: Re: 31.0.50; Error when installing/activating packages due to emacs-version mismatch

From: Tassilo Horn <[email-masked]>
Date: Fri, 07 Mar 2025 20:37:45 +0100

Stefan Kangas <[email-masked]> writes:

Hi Stefan,

>> When I start emacs with the current master (2dea3a0d34859852d3577), I
>> get errors like this one when activating, installing, or updating
>> packages.  Obviously, I'm using emacs 31 so I shouldn't get errors
>> that a package requires (at least) emacs 27.1.
>>
>> --8<---------------cut here---------------start------------->8---
>> Debugger entered--Lisp error: (error "This package requires Emacs
>> version 27.1")
>
> I unfortunately can't seem to reproduce this in some casual testing.
>
> You wouldn't happen to have a convenient recipe starting from emacs
> -Q, do you?  :-)

I do.

- emacs -Q
- M-x list-packages RET
- mark ef-themes version 1.9.0 from gnu for (i)nstall
- e(x)ecute

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "This package requires Emacs version 27.1")
  signal(error ("This package requires Emacs version 27.1"))
  error("This package requires Emacs version %s" "27.1")
  package-compute-transaction((#s(package-desc :name ef-themes :version (1 9 0) :summary "Colorful and legible themes" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil $
  package-install(#s(package-desc :name ef-themes :version (1 9 0) :summary "Colorful and legible themes" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:ur$
  package-menu--perform-transaction((#s(package-desc :name ef-themes :version (1 9 0) :summary "Colorful and legible themes" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :di$
  package-menu-execute()
  funcall-interactively(package-menu-execute)
  call-interactively(package-menu-execute nil nil)
  command-execute(package-menu-execute)
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo