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

Various fixes for modules after recent bumps #13

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

thresheek
Copy link
Member

  • Lua module on all OSes failed to find resty.core due to changes in Luajit2
  • Lua failed to build on SLES 12 due to too old OpenSSL
  • Thrift failed to build on Amazon Linux 2 due to failing patch

Luajit2 adds DESTDIR to LUA_LJDIR when compiling, which breaks
package.path for future invocations with our changes:

2024/10/25 02:06:07 [alert] 732342#732342: failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
	no field package.preload['resty.core']
	no file './resty/core.lua'
	no file '/home/thresh/projects/pkg-oss/debian/debuild-module-lua/nginx-1.27.2/debian/build-nginx/extra/luajit2-2.1-20240815/usr/share/nginx-luajit-2.1/resty/core.lua'
	no file '/usr/local/share/lua/5.1/resty/core.lua'
	no file '/usr/local/share/lua/5.1/resty/core/init.lua'
	no file '/usr/share/lua/5.1/resty/core.lua'
	no file '/usr/share/lua/5.1/resty/core/init.lua'
	no file './resty/core.so'
	no file '/usr/local/lib/lua/5.1/resty/core.so'
	no file '/usr/lib/lua/5.1/resty/core.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './resty.so'
	no file '/usr/local/lib/lua/5.1/resty.so'
	no file '/usr/lib/lua/5.1/resty.so'
	no file '/usr/local/lib/lua/5.1/loadall.so') in /etc/nginx/nginx.conf:37

Setting DESTDIR for make install only works around that issue.
@thresheek thresheek requested a review from oxpa October 25, 2024 02:52
@oxpa oxpa merged commit f91d048 into nginx:master Oct 25, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants