I just did an upgrade from f42 to f43, and after the upgrade /usr/bin/emacs is a dangling symlink: /usr/bin/emacs points to /etc/alternatives/emacs, and that in turn points to /usr/bin/emacs-pgtk, which was provided by emacs package in f42. I now installed emacs-pgtk package and the issue is fixed. It seems that the package was split and this wasn't handled properly in the upgrade. Please see https://docs.fedoraproject.org/en-US/packaging-guidelines/#_one_to_many_replacement. Reproducible: Always
Created attachment 2110626 [details] dnf transaction info
I think there are two things going wrong, here: 1. The emacs-nw package got pulled in instead of the expected emacs-pgtk package. 2. The preuninstall scriptlet for package emacs thinks it isn’t being uninstalled, so doesn’t update alternatives to remove the symlink to /usr/bin/emacs-pgtk, which would allow it to be repointed at /usr/bin/emacs-nw. I’m not sure why problem 1 is happening; it doesn’t on my test VM. In any case, I think the fix for problem 2 is to make sure we always replace emacs with emacs-pgtk regardless of whether that’s the most appropriate thing for this system, and for that, Obsoletes is the answer as you suggest. The trouble is, what version to obsolete? As I see it, our choices are: 1. Obsoletes: emacs < 1:30.2-2 This should solve the problem when upgrading from Fedora 42, but sadly, Fedora 41 is ahead of us at 1:30.2-3. 2. Obsoletes: emacs < 1:30.2-4 This covers upgrades from Fedora 41, but will also cause emacs users already happily on Fedora 43 to get emacs-pgtk whether they wanted it or not. I think option 2 is the least worst, here, since if we can get the update out quickly enough it should affect fewer people.
FEDORA-2025-4c2b0ee418 (emacs-30.2-4.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-4c2b0ee418
FEDORA-2025-4c2b0ee418 has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-4c2b0ee418` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-4c2b0ee418 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
It would be helpful if we could get one more karma on this update over the weekend, in time for Tuesday's release of Fedora 43.
FEDORA-2025-4c2b0ee418 (emacs-30.2-4.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report.