As part of my weekly Gentoo system upgrade, I updated app-editors/emacs from version 26.2 to 26.3. But now emacs-updater doesn't want to re-emerge any package: # emacs-updater * Searching for byte-compiled elisp files ... * Currently selected GNU Emacs version: 26.3 Skipping autotest-mode.elc (compiled by Emacs 26.2) Skipping autoconf-mode.elc (compiled by Emacs 26.2) Skipping cmake-mode.elc (compiled by Emacs 26.2) Skipping cython-mode.elc (compiled by Emacs 26.2) Skipping desktop-entry-mode.elc (compiled by Emacs 26.2) Skipping ebuild-mode.elc (compiled by Emacs 26.2) Skipping gentoo-newsitem-mode.elc (compiled by Emacs 26.2) Skipping glep-mode.elc (compiled by Emacs 26.2) Skipping eselect-mode.elc (compiled by Emacs 26.2) Skipping git.elc (compiled by Emacs 26.2) Skipping git-blame.elc (compiled by Emacs 26.2) Skipping idna.elc (compiled by Emacs 26.2) Skipping punycode.elc (compiled by Emacs 26.2) Skipping lua-mode.elc (compiled by Emacs 26.2) Skipping ninja-mode.elc (compiled by Emacs 26.2) Skipping po-compat.elc (compiled by Emacs 26.2) Skipping po-mode.elc (compiled by Emacs 26.2) Skipping protobuf-mode.elc (compiled by Emacs 26.2) * No files to update, quitting. Of course I could run emacs-updater --action=all and force it to emerge them all, but I wonder why it doesn't do that on its own. I have app-admin/emacs-updater-1.15.
Created attachment 588542 [details] info.txt emerge --info
The problem is that starting with version 26, Emacs dropped the last version component (i.e. the build number): $ emacs-25 -batch -q --no-site-file --eval "(princ emacs-version)" 25.3.1 but $ emacs-26 -batch -q --no-site-file -"(princ emacs-version)" 26.1 Since the build number shouldn't matter for the byte compiler version, emacs-updater drops the last number, i.e., compares versions like this: [[ ${version%.*} != "${active%.*}" ]] Of course, this is no longer feasible from version 26.1 onwards.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1494a489641e916d6d23b57d738c82251580c71d commit 1494a489641e916d6d23b57d738c82251580c71d Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2019-08-30 22:10:15 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2019-08-30 22:10:15 +0000 app-admin/emacs-updater: Bump to version 1.16. Closes: https://bugs.gentoo.org/631132 Closes: https://bugs.gentoo.org/693140 Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-admin/emacs-updater/Manifest | 1 + app-admin/emacs-updater/emacs-updater-1.16.ebuild | 37 +++++++++++++++++++++++ 2 files changed, 38 insertions(+)
Thanks for reporting!
Link to "upstream" commit: https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?h=emacs-updater&id=e67308394f12801aae8b004f2753a55c26f59635