I've always set my emacs alternatives to lucid emacs. Today I did a big dnf update, rebooted to get new kernel, and then got an error when I started emacs about the "pure GTK" version not operating correctly under X11 (one of the reasons I use lucid).
Why did my alternatives config setting revert?
Anyway, I've now removed all versions except lucid. Maybe that will make it stick :-).
On Fri, Jun 28, 2024 at 3:20 PM Tom Horsley horsley1953@gmail.com wrote:
I've always set my emacs alternatives to lucid emacs. Today I did a big dnf update, rebooted to get new kernel, and then got an error when I started emacs about the "pure GTK" version not operating correctly under X11 (one of the reasons I use lucid).
Why did my alternatives config setting revert?
I have my "alternatives" set to emacs-nox, but updates frequently change it back to emacs. Too lazy to figure out why....
On Fri, Jun 28, 2024 at 1:55 PM Go Canes letsgonhlcanes0@gmail.com wrote:
On Fri, Jun 28, 2024 at 3:20 PM Tom Horsley horsley1953@gmail.com wrote:
I've always set my emacs alternatives to lucid emacs. Today I did a big dnf update, rebooted to get new kernel, and then got an error when I started emacs about the "pure GTK" version not operating correctly under X11 (one of the reasons I use lucid).
Why did my alternatives config setting revert?
I have my "alternatives" set to emacs-nox, but updates frequently change it back to emacs. Too lazy to figure out why....
$ rpm -q --scripts emacs preuninstall scriptlet (using /bin/sh): /usr/sbin/alternatives --remove emacs /usr/bin/emacs-29.4 || : posttrans scriptlet (using /bin/sh): /usr/sbin/alternatives --install /usr/bin/emacs emacs /usr/bin/emacs-29.4 80 || :
I think that preuninstall scriptlet should instead be:
if [ $1 = 0 ]; then /usr/sbin/alternatives --remove emacs /usr/bin/emacs-29.4 || : fi
See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_synta.... If that sounds right, a bug report is in order.
On Fri, 28 Jun 2024 13:59:32 -0600, Jerry James wrote:
I think that preuninstall scriptlet should instead be:
if [ $1 = 0 ]; then /usr/sbin/alternatives --remove emacs /usr/bin/emacs-29.4 || : fi
See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_synta.... If that sounds right, a bug report is in order.
You may want to add that to: https://bugzilla.redhat.com/2277689
On Sun, Jun 30, 2024 at 10:00 AM Michael Schwendt mschwendt@gmail.com wrote:
You may want to add that to: https://bugzilla.redhat.com/2277689
I opened https://src.fedoraproject.org/rpms/emacs/pull-request/41 and mentioned it in that bug.