termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.33k stars 3.07k forks source link

$PREFIX/share/emacs/site-lisp is not in emacs load-path #1686

Open pmeiyu opened 7 years ago

pmeiyu commented 7 years ago

Both $PREFIX/share/emacs/site-lisp and $PREFIX/share/emacs/25.3/site-lisp directories are not in emacs load-path. Is this a bug or a feature?

Grimler91 commented 7 years ago

According to the config.log generated when building emacs, it is included in lisppath. It is, however, not found when listing emacs' load-path on device (ctrl + h v load-path RET), so that's a bit strange.

Will need to do some investigation. Seems like a bug, thanks for reporting.

tomty89 commented 6 years ago

Not only that the two paths are not included but there are duplicates for a few entries (namely $PREFIX/share/emacs/25.3/lisp/{emacs-lisp,language,international,textmodes,vc}). They don't go away even when --no-site-lispis specified.

$PREFIX/share/emacs/site-lisp/{,subdirs.el} don't even exist (in addition to $PREFIX/share/emacs/25.3/site-lisp/{,subdirs.el}).

For some reason site-load.el and site-init.el also get loaded in Termux but only default.el or site-start.el do (I think this is the expected behavior) in Arch.

P.S. Currently Termux inappropriately ships a $PREFIX/share/emacs/25.3/lisp/emacs-lisp/site-init.el for terminal mouse events. It should really be shipped as $PREFIX/share/emacs/site-lisp/default.el (as a conf file) when the bug gets fixed.

Grimler91 commented 6 years ago

I looked at it a bit a week ago or so but could not figure out what is going on.

The path we end up with does not make sense when I look at the config.log and configure options. It might be some weird behaviour due to the (minimal) host-build we do.

tomty89 commented 6 years ago

Btw is it expected that the Termux build takes much longer (2s or so) to start? Coz emacs in Arch ARM (Termux proot) doesn't have that kind of load time either.

Grimler91 commented 6 years ago

@tomty89 it is an unfortunate effect of androids -pie requirement, see https://github.com/termux/termux-packages/issues/1910

stale[bot] commented 3 years ago

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.