That does NOT work for me...

% `docker run -it ubuntu:26.04`
```
apt-get update  -q -q --yes
apt-get install -q -q --yes lua5.4 liblua5.4-dev lua5.5 liblua5.5-dev luarocks
lua -v # Lua 5.1.5 # even though we just installed 5.4 and 5.5, I think 
luarocks v3.13 fixes this.
luarocks --version # /usr/bin/luarocks 3.8.0 # Not current >= 3.13.0 with 
valuable lua5.5 fixes.
luarocks --lua-version=5.4 config | grep INC # --> "/usr/include/lua5.4", true
luarocks --lua-version=5.5 config | grep INC # --> Nothing!!

# Fix the lua5.5.pc like the patch for 2160598 does.
export PCDIR=$(pkgconf lua5.5 --variable pcfiledir)
diff $PCDIR/lua5.4.pc $PCDIR/lua5.5.pc | grep -E '^[<>] [^#]' # No error in 
lua5.4.pc.
sed -i '/^version=5\.5\.\#define /c\version=5.5.0' $PCDIR/lua5.5.pc # Fix the 
error.
diff $PCDIR/lua5.4.pc $PCDIR/lua5.5.pc | grep -E '^[<>] [^#]' # Error is gone.

# Purge and reinstall luarocks
apt purge --yes luarocks && rm -r $HOME/.luarocks
apt install luarocks
luarocks --lua-version=5.4 config | grep INC # --> "/usr/include/lua5.4", true
luarocks --lua-version=5.5 config | grep INC # --> Nothing!!
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160601

Title:
  Luarocks fails to make lua5.5 variables LUA_INCDIR and LUA_INCDIR_OK

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lua5.5/+bug/2160601/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to