Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

How to get emacs 27 back


thijs

Question

I apparently have some emacs packages that don't sit well with 28 yet. It freezes up completely at random moments, which make it unusable. I really need emacs to just work to be able to do my job and don't have the time to dive into this issue now. So I want 27 back. But how?

Ideally I'd like to just use slots I think? Don't have much experience with it. From some posts on the internet (mostly gentoo related) it looks like it should just work by installing 27 next to 28, but I can't seem to find 27 anymore.

eix emacs

shows me

[I] app-editors/emacs [1]
     Available versions:  (28) 28.1

So where did 27 go and how do I get it back?

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1
# eix-sync
# eix -e emacs
* app-editors/emacs [1]
     Available versions:  
     (28)   28.1
       {Xaw3d acl alsa aqua athena cairo dbus dynamic-loading games gconf gfile gif +gmp gpm gsettings gtk gui gzip-el harfbuzz imagemagick +inotify jpeg json kerberos lcms libxml2 livecd m17n-lib mailutils motif png selinux sound source ssl svg systemd +threads tiff toolkit-scroll-bars wide-int xft +xpm xwidgets zlib}
     Homepage:            https://www.gnu.org/software/emacs/
     Description:         The extensible, customizable, self-documenting real-time display editor

[1] "editors-kit" /var/git/meta-repo/kits/editors-kit

Copy attached emacs-27.2.ebuild to the emacs directory using the output from eix above which shows the path [1]:

# cp -a emacs-27.2.ebuild /var/git/meta-repo/kits/editors-kit/app-editors/emacs

Remove broken emacs-28.1 if installed:

# emerge -Ca emacs

Go to the emacs directory and generate a manifest for emacs-27.2.ebuild:

# cd /var/git/meta-repo/kits/editors-kit/app-editors/emacs
# ebuild emacs-27.2.ebuild digest

Emerge emacs-27.2:

# emerge -av =app-editors/emacs-27.2

Mask broken emacs-28.1 to prevent update:

# echo ">app-editors/emacs-27.2" >> /etc/portage/package.mask/emacs

The  emacs-27.2 manifest is overwritten on the next ego sync or eix-sync.

 If a rebuild of emacs-27.2 is required a new Manifest must be generated again:

# cd /var/git/meta-repo/kits/editors-kit/app-editors/emacs
# ebuild emacs-27.2.ebuild digest

 

emacs-27.2.ebuild

Edited by cardinal
Tiny edits...
Link to comment
Share on other sites

  • 0
On 5/3/2022 at 5:31 PM, cardinal said:

So how does that help me? I already know that the ebuild file is there. What I want to know is how to actually have my tools find it and enable me to install it using them. I want to be able to do `emerge emacs` (with maybe some variations) and get version 27.

Edited by thijs
quote
Link to comment
Share on other sites

×
×
  • Create New...