You are not logged in.

#1 2022-09-07 08:56:51

x-yuri
Member
Registered: 2013-01-06
Posts: 160

[SOLVED] Couldn't load rockspec while upgrading packages

I've upgraded the packages and in the post hooks I have this:

(22/29) Generating luarocks manifest for Lua 5.2...
Making manifest for /usr/lib/luarocks/rocks-5.2/
Couldn't load rockspec for luasocket 3.0.0-1: Could not load rockspec file /usr/lib/luarocks/rocks-5.2/luasocket/3.0.0-1/luasocket-3.0.0-1.rockspec (/usr/lib/luarocks/rocks-5.2/luasocket/3.0.0-1/luasocket-3.0.0-1.rockspec: No such file or directory)

(23/29) Generating luarocks manifest for Lua 5.3...
Making manifest for /usr/lib/luarocks/rocks-5.3/

(24/29) Generating luarocks manifest for Lua 5.4...
Making manifest for /usr/lib/luarocks/rocks-5.4/
Couldn't load rockspec for luaossl 20200709-0: Could not load rockspec file /usr/lib/luarocks/rocks-5.4/luaossl/20200709-0/luaossl-20200709-0.rockspec (/usr/lib/luarocks/rocks-5.4/luaossl/20200709-0/luaossl-20200709-0.rockspec: No such file or directory)

Or in /var/log/pacman.log:

[2022-09-05T08:20:36+0300] [ALPM] running 'luarocks-make-manifest-5.2.hook'...
[2022-09-05T08:20:36+0300] [ALPM-SCRIPTLET] Making manifest for /usr/lib/luarocks/rocks-5.2/
[2022-09-05T08:20:36+0300] [ALPM-SCRIPTLET] Couldn't load rockspec for luasocket 3.0.0-1: Could not load rockspec file /usr/lib/luarocks/rocks-5.2/luasocket/3.0.0-1/luasocket-3.0.0-1.rockspec (/usr/lib/luarocks/rocks-5.2/luasocket/3.0.0-1/luasocket-3.0.0-1.rockspec: No such file or directory)

[2022-09-05T08:20:36+0300] [ALPM] running 'luarocks-make-manifest-5.3.hook'...
[2022-09-05T08:20:37+0300] [ALPM-SCRIPTLET] Making manifest for /usr/lib/luarocks/rocks-5.3/

[2022-09-05T08:20:37+0300] [ALPM] running 'luarocks-make-manifest-5.4.hook'...
[2022-09-05T08:20:37+0300] [ALPM-SCRIPTLET] Making manifest for /usr/lib/luarocks/rocks-5.4/
[2022-09-05T08:20:37+0300] [ALPM-SCRIPTLET] Couldn't load rockspec for luaossl 20200709-0: Could not load rockspec file /usr/lib/luarocks/rocks-5.4/luaossl/20200709-0/luaossl-20200709-0.rockspec (/usr/lib/luarocks/rocks-5.4/luaossl/20200709-0/luaossl-20200709-0.rockspec: No such file or directory)

lua52-socket was apparently (pacman -Qd) installed as a dependency when I installed lua52-sec (pacman -Qe).

By the same logic lua-luaossl was installed as a dependency of lua-http which I installed explicitly.

But that doesn't look like a reason. Because it didn't complain about other modules installed as a dependency.

Now, which lua packages were upgraded:

[2022-09-05T08:19:46+0300] [ALPM] upgraded lua (5.4.4-1 -> 5.4.4-2)
[2022-09-05T08:19:53+0300] [ALPM] upgraded luajit (2.1.0.beta3.r411.g68bb1140-1 -> 2.1.0.beta3.r439.g633f265f-1)
[2022-09-05T08:20:06+0300] [ALPM] upgraded luarocks (3.9.0-1 -> 3.9.1-1)

[2022-09-05T08:20:06+0300] [ALPM] upgraded lua52-socket (1:3.0.0-1 -> 1:3.1.0-1)
[2022-09-05T08:20:06+0300] [ALPM] upgraded lua53-luaossl (20200709-2 -> 20220711-1)
[2022-09-05T08:20:06+0300] [ALPM] upgraded lua-luaossl (20200709-2 -> 20220711-1)

Which means 3 modules were upgraded. Each has a spec file:

$ pacman -Ql lua52-socket | grep rockspec
lua52-socket /usr/lib/luarocks/rocks-5.2/luasocket/3.1.0-1/luasocket-3.1.0-1.rockspec

$ pacman -Ql lua53-luaossl | grep rockspec
lua53-luaossl /usr/lib/luarocks/rocks-5.3/luaossl/20220711-0/luaossl-20220711-0.rockspec

$ pacman -Ql lua-luaossl | grep rockspec
lua-luaossl /usr/lib/luarocks/rocks-5.4/luaossl/20220711-0/luaossl-20220711-0.rockspec

Let's see what's in the cache:

$ tar tf /var/cache/pacman/pkg/lua52-socket-1:3.0.0-1-x86_64.pkg.tar.zst | grep rockspec
usr/lib/luarocks/rocks-5.2/luasocket/3.0.0-1/luasocket-3.0.0-1.rockspec

$ tar tf /var/cache/pacman/pkg/lua52-socket-1:3.1.0-1-x86_64.pkg.tar.zst | grep rockspec
usr/lib/luarocks/rocks-5.2/luasocket/3.1.0-1/luasocket-3.1.0-1.rockspec

$ tar tf /var/cache/pacman/pkg/lua53-luaossl-20200709-2-x86_64.pkg.tar.zst | grep rockspec
usr/lib/luarocks/rocks-5.3/luaossl/20200709-0/luaossl-20200709-0.rockspec

$ tar tf /var/cache/pacman/pkg/lua53-luaossl-20220711-1-x86_64.pkg.tar.zst | grep rockspec
usr/lib/luarocks/rocks-5.3/luaossl/20220711-0/luaossl-20220711-0.rockspec

$ tar tf /var/cache/pacman/pkg/lua-luaossl-20200709-2-x86_64.pkg.tar.zst | grep rockspec
usr/lib/luarocks/rocks-5.4/luaossl/20200709-0/luaossl-20200709-0.rockspec

$ tar tf /var/cache/pacman/pkg/lua-luaossl-20220711-1-x86_64.pkg.tar.zst | grep rockspec
usr/lib/luarocks/rocks-5.4/luaossl/20220711-0/luaossl-20220711-0.rockspec

So the messages were supposedly triggered by the fact that the corresponding modules were upgraded (1). But for some reason upgrading lua53-luaossl didn't produce a message (2).

Should I ignore this? Does it looks like a bug (any or both of the issues)?

Last edited by x-yuri (2022-10-10 02:49:45)

Offline

#2 2022-10-10 02:49:15

x-yuri
Member
Registered: 2013-01-06
Posts: 160

Re: [SOLVED] Couldn't load rockspec while upgrading packages

I should. It does.

Offline

Board footer

Powered by FluxBB