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.