You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to set up a pkgsrc package for Lite XL (for NetBSD). It works mostly fine, except for how it tries to detect the executable’s file name. After installing, when I run lite-xl, it crashes, because it ends up falling back to argv[0], which doesn’t have a slash (so the regex in the Lua code in main.c fails to match).
Turns out NetBSD supports /proc/self/exe like Linux, but that is discouraged (because /proc might not be available) in favor of using sysctl similar to FreeBSD, but very subtly differently.
However, that seems to be one of the very small bits of non‐portable code in Lite XL, so I was wondering if it could be avoided, at least outside of the “portable” build, in favor of just relying on the prefix from Meson. (Or otherwise perhaps with an extra build flag.)
The text was updated successfully, but these errors were encountered:
I’m trying to set up a pkgsrc package for Lite XL (for NetBSD). It works mostly fine, except for how it tries to detect the executable’s file name. After installing, when I run
lite-xl
, it crashes, because it ends up falling back toargv[0]
, which doesn’t have a slash (so the regex in the Lua code inmain.c
fails to match).Turns out NetBSD supports
/proc/self/exe
like Linux, but that is discouraged (because/proc
might not be available) in favor of usingsysctl
similar to FreeBSD, but very subtly differently.However, that seems to be one of the very small bits of non‐portable code in Lite XL, so I was wondering if it could be avoided, at least outside of the “portable” build, in favor of just relying on the
prefix
from Meson. (Or otherwise perhaps with an extra build flag.)The text was updated successfully, but these errors were encountered: