Bug 2277689
| Summary: | emacs alternatives reset to default (/usr/bin/emacs-29.3) after update | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sjoerd Mullender <sjoerd> |
| Component: | emacs | Assignee: | Daiki Ueno <dueno> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 40 | CC: | benson_muite, dan.cermak, dueno, gordon.messmer, loganjerry, marcandre.lureau, mavit, msekleta, noloader, phracek, swt |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | emacs-29.4-5.fc40 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-07-11 01:15:33 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sjoerd Mullender
2024-04-29 07:55:22 UTC
Add a mee too. When I try to run emacs over ssh, it just crashes. $ emacs .gitconfig (emacs:50018): Gtk-WARNING **: 11:53:44.641: cannot open display: (It is not clear to me how I installed emacs-nox several years ago, and now a Gtk version is installed.) See https://src.fedoraproject.org/rpms/emacs/pull-request/41 for a fix for this issue. It turns out that this bug was a known side-effect of the fix for bug #684447. From the changelog: * Tue Mar 15 2011 Karel Klic <kklic> - 1:23.3-2 - Another attempt to fix the handling of alternatives (rhbz#684447) The current process loses alternatives preference on every upgrade, but there seems to be no elegant way how to prevent this while having versioned binaries (/bin/emacs-%%{version}) at the same time. Ah, okay, now I understand. I'll bet the versioned binary thing can be dealt with, though. Let me take another crack at this, and do some testing with versioned upgrades to see if it can be made to work. I think https://src.fedoraproject.org/rpms/emacs/pull-request/42 should fix this? FEDORA-2024-cf40c8f40b (emacs-29.4-5.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-cf40c8f40b FEDORA-2024-cf40c8f40b has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-cf40c8f40b` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-cf40c8f40b See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-cf40c8f40b (emacs-29.4-5.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. After the update, the alternatives link isn't working at all for the gtk+x11 version. It seems that there should be a symlink emacs-gtk+x11 pointing to the versioned binary, but ther isn't. $ rpm -q emacs emacs-gtk+x11 emacs-29.4-5.fc40.x86_64 emacs-gtk+x11-29.4-5.fc40.x86_64 $ ls -l /etc/alternatives/emacs /usr/bin/emacs* lrwxrwxrwx. 1 root root 22 Jul 11 18:21 /etc/alternatives/emacs -> /usr/bin/emacs-gtk+x11 lrwxrwxrwx. 1 root root 23 Jul 11 18:14 /usr/bin/emacs -> /etc/alternatives/emacs -rwxr-xr-x. 1 root root 33K Jul 8 02:00 /usr/bin/emacsclient -rwxr-xr-x. 1 root root 8.5M Jul 8 02:00 /usr/bin/emacs-29.4-gtk+x11 -rwxr-xr-x. 1 root root 8.2M Jul 8 02:00 /usr/bin/emacs-29.4-pgtk -rwxr-xr-x. 1 root root 445 Jul 8 02:00 /usr/bin/emacs-desktop lrwxrwxrwx. 1 root root 15 Jul 8 02:00 /usr/bin/emacs-pgtk -> emacs-29.4-pgtk $ sudo alternatives --config emacs There are 2 programs which provide 'emacs'. Selection Command ----------------------------------------------- + 1 /usr/bin/emacs-gtk+x11 * 2 /usr/bin/emacs-pgtk Enter to keep the current selection[+], or type selection number: |