user/luarocks: packages are installed with doubled root directories
gwyn /home/awilcox/Code/apk-tools # luarocks install lua-zlib
Installing https://luarocks.org/lua-zlib-1.2-2.rockspec
Cloning into 'lua-zlib'...
remote: Enumerating objects: 303, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 303 (delta 18), reused 28 (delta 9), pack-reused 252
Receiving objects: 100% (303/303), 90.92 KiB | 1.62 MiB/s, done.
Resolving deltas: 100% (150/150), done.
Note: switching to 'a305d98f473d0a253b6fd740ce60d7d5a5f1cda0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
lua-zlib 1.2-2 depends on lua >= 5.1, <= 5.4 (5.3-1 provided by VM)
gcc -O2 -fPIC -I/usr/include/lua5.3 -c lua_zlib.c -o lua_zlib.o -DLZLIB_COMPAT -I/usr/include
gcc -shared -o zlib.so lua_zlib.o -lz
No existing manifest. Attempting to rebuild...
lua-zlib 1.2-2 is now installed in /usr/share/lua/5.3 (license: MIT)
Note that it did actually mean it was installed in that directory:
awilcox on gwyn ~/Code/apk-tools % find /usr/share/lua -name zlib.so
/usr/share/lua/5.3/lib/lua/5.3/zlib.so