Is there a question here?
Are you asking about configure --prefix=...
when building?
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Is there a question here?
Are you asking about configure --prefix=...
when building?
You can build two different binaries then manage /usr/bin/emacs as a symlink to your actual binaries.
Gentoo does a similar thing with “eselect emacs”. I think eselect is written in bash so you could easily bend it to your needs
Also gnu store maybe does what you want
Yeah that's a Gentoo specific, compatibility issues. Also It only works for different versions of emacs im installing 29 version twice different features.
You could check openSUSE or Arch Linux's packaging to see how you can achieve this.
I think the one of openSUSE is the most concrete as it will use the Wayland binary on Wayland and the X11 binary on X11 and so on.
Check out the spec file here:
https://build.opensuse.org/package/view_file/editors/emacs/emacs.spec?expand=1
The build process starts at the %build section.
I'm using arch, couldn't find anything like my case. But openSUSE build seems like a good way.