Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693140 - app-admin/emacs-updater doesn't reinstall any package after upgrading emacs
Summary: app-admin/emacs-updater doesn't reinstall any package after upgrading emacs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-30 16:51 UTC by Francesco Turco
Modified: 2019-08-30 22:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
info.txt (info.txt,5.74 KB, text/plain)
2019-08-30 16:51 UTC, Francesco Turco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2019-08-30 16:51:38 UTC
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.
Comment 1 Francesco Turco 2019-08-30 16:51:59 UTC
Created attachment 588542 [details]
info.txt

emerge --info
Comment 2 Ulrich Müller gentoo-dev 2019-08-30 20:08:49 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2019-08-30 22:10:57 UTC
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(+)
Comment 4 Ulrich Müller gentoo-dev 2019-08-30 22:11:29 UTC
Thanks for reporting!