4 окт. 2023 г. 19:51:20 Stuart Henderson <[email protected]>: > On 2023/10/04 15:58, James Cook wrote: >> After a recent pkg_add -Dsnap -u, running "vise" from the vis package gives: >> >> $ vise >> ld.so: vise: can't load library 'liblua5.4.so.5.4' >> Killed >> >> It looks like the vis package depends on the wrong version (5.3.6) of lua. >> If I manually install lua 5.4.6, vise works, but says "WARNING: could not >> find lpeg module" every time it starts up (even after I install the lua-lpeg >> package). > > if lua 5.4 is installed at build time: > > checking for liblua >= 5.2 ... > checking for lua... no > checking for lua5.4... no > checking for lua5.3... no > checking for lua5.2... no > checking for lua-5.3... no > checking for lua-5.2... no > checking for lua54... yes > > regardless of which lua version is used (the vis port specifically asks > for 5.3), vis' configure script needs patching to use the specified > version of lua rather than searching for the 'best' one. > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/editors/vis/Makefile,v > retrieving revision 1.17 > diff -u -p -r1.17 Makefile > --- Makefile 26 Sep 2023 17:58:06 -0000 1.17 > +++ Makefile 4 Oct 2023 16:49:49 -0000 > @@ -2,7 +2,7 @@ COMMENT = vi-like editor with sam-style > > V = 0.8 > DISTNAME = vis-${V} > -REVISION = 0 > +REVISION = 1 > > TEST_V = 0.5 > TEST_DISTNAME = vis-test-${TEST_V} > @@ -33,6 +33,7 @@ RUN_DEPENDS = devel/lpeg,${MODLUA_FLAVO > TEST_DEPENDS = editors/vim > > CONFIGURE_STYLE = simple > +CONFIGURE_ENV = LUA_VER=${MODLUA_FLAVOR} > CONFIGURE_ARGS = --prefix=${PREFIX} \ > --mandir=${PREFIX}/man > > Index: patches/patch-configure > =================================================================== > RCS file: /cvs/ports/editors/vis/patches/patch-configure,v > retrieving revision 1.6 > diff -u -p -r1.6 patch-configure > --- patches/patch-configure 11 Mar 2022 18:58:39 -0000 1.6 > +++ patches/patch-configure 4 Oct 2023 16:49:49 -0000 > @@ -11,3 +11,12 @@ Index: configure > tryflag CFLAGS -ffunction-sections > tryflag CFLAGS -fdata-sections > tryldflag LDFLAGS_AUTO -Wl,--gc-sections > +@@ -443,7 +442,7 @@ int main(int argc, char *argv[]) { > + } > + EOF > + > +- for liblua in lua lua5.4 lua5.3 lua5.2 lua-5.3 lua-5.2 lua54 lua53 lua52; > do > ++ for liblua in $LUA_VER; do > + printf " checking for %s... " "$liblua" > + > + if test "$have_pkgconfig" = "yes" ; then That makes sense, OK kn if that works for you, sthen.
I can't test until in a few hours.
