Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bogus /usr/bin/... paths in Lua module search #831

Open
alerque opened this issue Feb 12, 2020 · 0 comments
Open

Bogus /usr/bin/... paths in Lua module search #831

alerque opened this issue Feb 12, 2020 · 0 comments
Assignees
Labels
enhancement Software improvement or feature request

Comments

@alerque
Copy link
Member

alerque commented Feb 12, 2020

While commenting on an issue over on ZeroBraneStudio I did the sensible thing and actually looked at the final search path being used by SILE to load anything.

$ sile -e 'require("bogus")'

The result for my system's installed sile includes a bunch of bogus paths in /usr/bin/...,

It looks like maybe this line is to blame:

sile/sile.in

Line 22 in c4e040c

extendPath("@SILE_PATH@")

SILE_LIB_PATH probably belongs, but SILE_PATH probably does not. This probably snuck in here because it makes sense for using SILE uninstalled from a project directory (git checkout or tarball extract) as ./sile. In that case it would be needed ... but perhaps we need to a different way to solve that rather than wasting time looking at reams of bad paths (this causes hundreds of useless filesystem operations, something that is notorious for being a large part of why LaTeX –and elpecially LuaLaTeX) is so slow).

@alerque alerque added the enhancement Software improvement or feature request label Feb 12, 2020
@alerque alerque self-assigned this Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Software improvement or feature request
Projects
None yet
Development

No branches or pull requests

1 participant