stefano-m / lua-dbus_proxy

Simple API around GLib's GIO:GDBusProxy built on top of lgi
https://stefano-m.github.io/lua-dbus_proxy/
Apache License 2.0
17 stars 7 forks source link

fails to install on lua 5.4-1, fedora 36 #12

Closed airtonix closed 1 year ago

airtonix commented 1 year ago
x inxi -S
System:
  Host: pennyroyal Kernel: 5.19.15-201.fc36.x86_64 arch: x86_64 bits: 64
    Desktop: awesome v: 4.3 Distro: Fedora release 36 (Thirty Six)
x luarocks install --local dbus_proxy 
Installing https://luarocks.org/dbus_proxy-0.10.3-2.src.rock
Missing dependencies for dbus_proxy 0.10.3-2:
   lgi >= 0.9.0, < 1 (not installed)

dbus_proxy 0.10.3-2 depends on lua >= 5.1 (5.4-1 provided by VM)
dbus_proxy 0.10.3-2 depends on lgi >= 0.9.0, < 1 (not installed)
Installing https://luarocks.org/lgi-0.9.2-1.src.rock

lgi 0.9.2-1 depends on lua >= 5.1 (5.4-1 provided by VM)
make -C lgi
make[1]: Entering directory '/tmp/luarocks_lgi-0.9.2-1-lhkOk5/lgi/lgi'
pkg-config --exists 'gobject-introspection-1.0 >= 0.10.8' --print-errors
touch .depcheck
gcc -fPIC  -O2 -fPIC -I/usr/include -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -Wall -Wextra -O2 -g -c -o buffer.o buffer.c
gcc -fPIC  -O2 -fPIC -I/usr/include -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -Wall -Wextra -O2 -g -c -o callable.o callable.c
callable.c: In function ‘closure_callback’:
callable.c:1237:13: error: too few arguments to function ‘lua_resume’
 1237 |       res = lua_resume (L, NULL, npos);
      |             ^~~~~~~~~~
In file included from lgi.h:11,
                 from callable.c:12:
/usr/include/lua.h:300:15: note: declared here
  300 | LUA_API int  (lua_resume)     (lua_State *L, lua_State *from, int narg,
      |               ^~~~~~~~~~
make[1]: *** [Makefile:63: callable.o] Error 1
make[1]: Leaving directory '/tmp/luarocks_lgi-0.9.2-1-lhkOk5/lgi/lgi'
make: *** [Makefile:16: all] Error 2

Error: Failed installing dependency: https://luarocks.org/lgi-0.9.2-1.src.rock - Build error: Failed building.
airtonix commented 1 year ago

Fedora 36 has no lua-devel for 5.4.1 :

x sudo dnf install lua-devel-5.4.1              
Last metadata expiration check: 1:32:28 ago on Thu 22 Dec 2022 07:28:36.
No match for argument: lua-devel-5.4.1
Error: Unable to find a match: lua-devel-5.4.1
stefano-m commented 1 year ago

Hi, sorry it take so long to reply... life happens :sweat_smile:

You may have noticed that the problem you are having is that lgi, a library needed by dbus_proxy, cannot be installed.

You may be able to install lgi directly into your GNU/Linux distribution.

Otherwise, you may be able to get more help on the lgi project: https://github.com/lgi-devs/lgi

Hope this helps! :crossed_fingers: