Re: alternatives is forgetful?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 28, 2024 at 1:55 PM Go Canes <letsgonhlcanes0@xxxxxxxxx> wrote:
> On Fri, Jun 28, 2024 at 3:20 PM Tom Horsley <horsley1953@xxxxxxxxx> 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/#_syntax.
If that sounds right, a bug report is in order.
-- 
Jerry James
http://www.jamezone.org/
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux