Created attachment 433764 [details, diff] Patch The patch calls uses pkg-config directly which calls it for host, not for target as intended. A proposed patch is attached.
The right way to do it is to put PKG_CHECK_MODULES calls for lua in the configure.ac we already provide and not call pkg-config in the Makefile at all.
here is a bumped redis with a configure.ac implementing the suggested way: https://gitweb.gentoo.org/dev/dev-zero.git/tree/dev-db/redis?id=663cdce8c01bb9809313b7008a4fedc41c6243db Please note: it requires either lua:5.1 (still p.masked) or luajit.
This doesn't seem relevant anymore, we don't use pkg-config in our shared-lua patch.