I'm looking to get emacs-libvterm[1] installed and working with Emacs and have (unsurprisingly) emerged ]app-emacs/vterm[2]. When I try to load vterm using... (use-package vterm :ensure t) I'm informed... Error (use-package): vterm/:catch: VTerm needs module support. Please compile Emacs with the --with-modules option! Looking at the USE-flags and reading through the ebuild (for app-editors/emacs-27.1-r1) for Emacs though there doesn't appear to be a flag to enable compilation of Emacs with module support. I've had a go at modifying the ebuild (see attached diff) and recompiled and this appears to have resolved the problem. [1] https://github.com/akermu/emacs-libvterm [2] https://packages.gentoo.org/packages/app-emacs/vterm Reproducible: Always
Created attachment 670520 [details, diff] Patch to add --with-modules USE flag Tested by bumping app-editors/emacs-27.1-r1.ebuild locally to app-editors/emacs-27.1-r2.ebuild and enabling the USE=modules flag. Package builds and vterm can be loaded.
Unfortunately, we cannot call it "modules" because a global flag with this name exists and has a different purpose: modules - Build the kernel modules So, the flag is called "dynamic-loading": app-editors/emacs:dynamic-loading - Enable loading of dynamic libraries at runtime (In reply to Neil from comment #0) > Looking at the USE-flags and reading through the ebuild (for > app-editors/emacs-27.1-r1) for Emacs though there doesn't appear to be a > flag to enable compilation of Emacs with module support. $ grep modules emacs-27.1-r1.ebuild $(use_with dynamic-loading modules) \
Ah, sorry hadn't thought to check global USE flags. I already had app-editors/emacs-27.1-r1.ebuild emerged with the dynamic-module USE flag enabled (there was no description offered as to what it does when I equery u app-editors/emacs). And yet I encountered this error about Emacs needing to be compiled --with -modules option. I've just downgraded to app-editors/emacs-27.1-r1 to check again... # emerge app-editors/emacs -av [ebuild UD] app-editors/emacs-27.1-r1 [27.1-r2] USE="-Xaw3d acl alsa (-aqua) -athena -cairo dbus dynamic-loading -games -gconf -gfile gif gmp gpm -gsettings gtk -gtk2 gui -gzip-el -harfbuzz imagemagick inotify jpeg -json -kerberos -lcms -libxml2 -livecd -m17n-lib -mailutils (-modules%*) -motif png (-selinux) -sound -source ssl svg -systemd threads tiff toolkit-scroll-bars -wide-int xft xpm -xwidgets zlib" Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-editors/emacs-27.1-r1::gentoo >>> Installing (1 of 1) app-editors/emacs-27.1-r1::gentoo >>> Jobs: 1 of 1 complete Load avg: 2.17, 1.14, 0.88 ...and tried loading the vterm package again and it seems to work fine now. Apologies for the erroneous report and thanks for taking the time to explain things to me.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9268afce49d337307bb9cee35410bb44253a424 commit d9268afce49d337307bb9cee35410bb44253a424 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2020-11-09 09:34:49 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2020-11-09 09:35:14 +0000 app-editors/emacs: Improve the dynamic-loading flag description. These are called "modules" by upstream. Bug: https://bugs.gentoo.org/753620 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-editors/emacs/metadata.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I've added the keyword "modules" to the flag description, maybe that will make it easier to find the flag. The app-emacs/vterm ebuild might profit from a run-time check for module support in the eselected Emacs. I have to think about this. *** This bug has been marked as a duplicate of bug 608382 ***