Le Fri, May 26, 2023 at 03:45:53PM +0000, Sergey A. Osokin a écrit : > Hi, > > lang/njs has been added to the ports tree recently, so > here's the patch to enable nginx javascript for www/unit.
i've had a look and thought this was mostly ok, but first there's something to fix in the current njs port, because the njs.pc file shipped has very wrong paths: [09:16] c64:/usr/obj/ports/unit-perl-1.30.0/unit-1.30.0/ $cat/usr/local/lib/pkgconfig/njs.pc prefix=/usr/obj/ports/njs-0.7.12/njs-0.7.12/build libdir=/usr/obj/ports/njs-0.7.12/njs-0.7.12/build Name: njs Description: library to embed njs scripting language Version: 0.7.12 Libs: -L${libdir} -lnjs -lm -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre2-8 -lcrypto -L/usr/local/lib -lxml2 -lz Cflags: -I/usr/obj/ports/njs-0.7.12/njs-0.7.12/build -I/usr/obj/ports/njs-0.7.12/njs-0.7.12/src also www/unit/unit could use a WANTLIB update, you might want to run make port-lib-depends-check upon each update: unit-1.30.0(www/unit/unit): 09:13:56 [605/1480] Missing: xml2.19 from libxml-2.11.4 (/usr/local/sbin/unitd) Missing: z.7 (/usr/local/sbin/unitd) (system lib) WANTLIB += xml2 z *** Error 1 in target 'port-lib-depends-check' (ignored)