Closed ganto closed 6 years ago
On a Fedora system this macro is defined in /usr/share/aclocal/pkg.m4
which belongs to pkgconf-m4
(currently 1.3.12-2
). On a CentOS 7 system, this file is owned by pkgconfig
(currently 0.27.1-4.el7
). The pkgconf
source package on Fedora also builds the pkgconf-pkg-config
RPM which provides pkgconfig-0.29.1-3
.
A nice comment in the pkg.m4
file hints that PKG_CHECK_VAR
was added to pkg-config in 0.28. This means the pkg-config
version in CentOS 7 is too old for the current code.
When trying to skip the ./autogen.sh
then ./configure
would fail with a similar error:
[...]
checking for LUA... yes
checking Lua version... ./configure: line 12933: syntax error near unexpected token `LUA_VERSION,'
./configure: line 12933: `PKG_CHECK_VAR(LUA_VERSION, $LUAPKGCONFIG, V,,'
Issue is fixed with cd613abdde9efd19c8fe590607697a79759f5cd1 (patch submitted upstream, see lxc/lua-lxc#2).
lua-lxc-3.0.0-0.2
now available for CentOS 7.
The spec file for
lua-lxc-3.0.0-0.1
from this repository fails to build in an EPEL 7 build root with the following message:Still have to investigate if there is something missing or if this is a version issue.