Closed orlitzky closed 4 years ago
We must check for lua5.1 in accordance with the package naming conventions used by the Linux Standard Base and package naming conventions. Just checking for "lua" is too broad. This will likely need to be something patched specifically in Gentoo as a downstream as it does not have an impact on the other distributions ( Debian / Ubuntu / Fedora / CentOS )
It doesn't affect the other distributions because they don't build OpenDKIM from source, it's still nonsense =)
The PKG_CHECK_MODULES
call is looking for the name of a *.pc
file, and has nothing to do with the name of the package in LSB. What name is Lua's pkg-config file installed with? Upstream (and on Gentoo), it's lua.pc
, so we need to invoke the macro with "lua" and not "lua5.1" because using "lua5.1" would look for a nonexistent lua5.1.pc
. You may want to leave the lua5.1 check there if you're superstitious, but it's pretty easy to verify that OpenDKIM can't detect upstream lua out of the box because the pkg-config check fails.
In
confgure.ac
we have among other things...The upstream pkg-config file is named
lua.pc
, solua5.1
is the wrong name unless some distros have renamed it. Either way we should check forlua
, but maybe we should also check forlua5.1
if someone knows whylua5.1
is there in the first place.When the pkg-config check fails, the manual search looks first to
/usr/lib
which can detect 32-bit libs on a 64-bit system (Gentoo bug 704556).