Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#65549 - [lua] Provide pkg-config alias to lua5.3
Attached to Project:
Arch Linux
Opened by Tomas Volf (gray_-_wolf) - Tuesday, 18 February 2020, 23:43 GMT
Last edited by Anatol Pomozov (anatolik) - Friday, 21 February 2020, 17:48 GMT
Opened by Tomas Volf (gray_-_wolf) - Tuesday, 18 February 2020, 23:43 GMT
Last edited by Anatol Pomozov (anatolik) - Friday, 21 February 2020, 17:48 GMT
|
DetailsDescription:
Currently, lua has pkg-config package called lua53. Debian supplies lua53, lua5.3 and lua-5.3. Alpine linux supplies only lua5.3. In interest of compatibility, it would be nice to have alias lua5.3 (and possibly also lua-5.3) to make more compilations work out of the box. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: |
This task depends upon
addition to archlinux. Seems to work fine:
[root@269d701c4588 /]# pkgconf --list-all | grep lua | sort
lua-5.3 Lua - An Extensible Extension Language
lua5.3 Lua - An Extensible Extension Language
lua53 Lua - An Extensible Extension Language
lua Lua - An Extensible Extension Language
[root@269d701c4588 /]# for pkg in $(pkgconf --list-package-names | sort | grep lua); do \
> echo $pkg: $(pkgconf --libs $pkg); \
> done
lua: -llua -lm
lua-5.3: -llua -lm
lua5.3: -llua -lm
lua53: -llua -lm
Thank you for considering this :)
I also modified lua52 and lua51 accordingly to stay consistent with 'lua' package.
they seem to work fine:
[root@dc472776420f lua]# cat test.c
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
int main(void) {
lua_State *lua = luaL_newstate();
luaL_openlibs(lua);
luaL_dostring(lua, "print('" PKG_NAME ": ' .. _VERSION);");
lua_close(lua);
return 0;
}
[root@dc472776420f lua]# cat Makefile
.PHONY: all
all:
$(MAKE) PKG_NAME=lua test
$(MAKE) PKG_NAME=lua53 test
$(MAKE) PKG_NAME=lua5.3 test
$(MAKE) PKG_NAME=lua-5.3 test
$(MAKE) PKG_NAME=lua52 test
$(MAKE) PKG_NAME=lua5.2 test
$(MAKE) PKG_NAME=lua-5.2 test
$(MAKE) PKG_NAME=lua51 test
$(MAKE) PKG_NAME=lua5.1 test
$(MAKE) PKG_NAME=lua-5.1 test
.PHONY: test
test:
@gcc \
$$(pkg-config --cflags $(PKG_NAME)) \
-DPKG_NAME='"$(PKG_NAME)"' \
-o test \
test.c \
$$(pkg-config --libs $(PKG_NAME))
@./test
[root@dc472776420f lua]# make -s
lua: Lua 5.3
lua53: Lua 5.3
lua5.3: Lua 5.3
lua-5.3: Lua 5.3
lua52: Lua 5.2
lua5.2: Lua 5.2
lua-5.2: Lua 5.2
lua51: Lua 5.1
lua5.1: Lua 5.1
lua-5.1: Lua 5.1