Opened 3 years ago

Closed 3 years ago

#65174 closed enhancement (fixed)

nginx @1.21.6+lua: Depend on luajit-openresty by default?

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: nginx

Description

When nginx is installed with the +lua variant and compiled against the luajit port, this message appears in the error.log when nginx starts:

2022/05/13 11:11:00 [alert] 89195#0: detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

If I deactivate luajit, install luajit-openresty, and recompile nginx, this message goes away.

Should nginx +lua depend by default on luajit-openresty instead of luajit?

Change History (3)

comment:1 Changed 3 years ago by Schamschula (Marius Schamschula)

That may be the solution. If memory serves, there used to be issues with the luajit-openresty port. I will test this as well.

comment:2 Changed 3 years ago by Schamschula (Marius Schamschula)

Version 0, edited 3 years ago by Schamschula (Marius Schamschula) (next)

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Thanks! I'll see how it goes.

Note: See TracTickets for help on using tickets.