Package Details: lua53-libmagic 5.41-4

Git Clone URL: https://aur.archlinux.org/lua-libmagic.git (read-only, click to copy)
Package Base: lua-libmagic
Description: libmagic binding for lua
Upstream URL: https://github.com/mah0x211/lua-libmagic
Licenses: MIT
Provides: lua51-magic
Replaces: lua51-magic
Submitter: eworm
Maintainer: eworm
Last Packager: eworm
Votes: 0
Popularity: 0.000000
First Submitted: 2022-09-12 07:25 (UTC)
Last Updated: 2022-09-15 19:34 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

nesk_aur commented on 2022-09-16 04:40 (UTC)

It works, thanks. Final note: it builds and works fine on aarch64 architecture, feel free to add to arch=.

eworm commented on 2022-09-15 19:36 (UTC)

Looks like correct name is libmagic.so, not just magic.so. Can you verify it works for you now?

nesk_aur commented on 2022-09-15 16:51 (UTC) (edited on 2022-09-15 16:53 (UTC) by nesk_aur)

Goes to the right place now, next error is this:

local magic = require('magic')
error loading module 'magic' from file '/usr/lib/lua/5.4/magic.so':
    /usr/lib/lua/5.4/magic.so: undefined symbol: luaopen_magic
stack traceback:
    [C]: in ?
    [C]: in function 'require'
    stdin:1: in main chunk
    [C]: in ?

When installed with luarocks --local install libmagic it works fine.

nesk_aur commented on 2022-09-15 14:11 (UTC)

It doesn't provide the module for Lua 5.4, lua-libmagic pkg is for 5.3:

pacman -Ql lua-libmagic
lua-libmagic /usr/
lua-libmagic /usr/lib/
lua-libmagic /usr/lib/lua/
lua-libmagic /usr/lib/lua/5.3/
lua-libmagic /usr/lib/lua/5.3/magic.so