Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932671 - app-editors/neovim-0.10.0: unresolved soname dependency on /usr/lib64/lua/5.1/lpeg.so
Summary: app-editors/neovim-0.10.0: unresolved soname dependency on /usr/lib64/lua/5.1...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Brahmajit Das
URL:
Whiteboard:
Keywords:
: 938311 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-24 23:20 UTC by Matt Turner
Modified: 2025-03-29 12:46 UTC (History)
19 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2024-05-24 23:20:28 UTC
Building neovim-0.10.0 shows this QA notice:

> * QA Notice: Unresolved soname dependencies:
> * 
> * 	/usr/bin/nvim: /usr/lib64/lua/5.1/lpeg.so
> *

As a result, `revdep-rebuild` ends up mistakenly thinking that neovim needs a rebuild (see https://github.com/gentoo/gentoolkit/pull/49)

I suspect that `lpeg.so` is a module, and not something that should be directly linked against.
Comment 1 Matt Turner gentoo-dev 2024-06-10 17:06:06 UTC
Comparing with 0.9.5-r1:

> framework /var/tmp/portage/app-editors # scanelf -n neovim-0.10.0/image/usr/bin/nvim
>  TYPE   NEEDED FILE 
> ET_DYN libluv.so.1,libvterm.so.0,/usr/lib64/lua/5.1/lpeg.so,libmsgpack-c.so.2,libtree-sitter.so.0,libunibilium.so.4,libluajit-5.1.so.2,libm.so.6,libuv.so.1,libc.so.6 neovim-0.10.0/image/usr/bin/nvim 
> framework /var/tmp/portage/app-editors # scanelf -n neovim-0.9.5-r1/image/usr/bin/nvim
>  TYPE   NEEDED FILE 
> ET_DYN libluv.so.1,libtermkey.so.1,libvterm.so.0,libmsgpack-c.so.2,libtree-sitter.so.0,libunibilium.so.4,libluajit-5.1.so.2,libm.so.6,libuv.so.1,libc.so.6 neovim-0.9.5-r1/image/usr/bin/nvim 

"lpeg" doesn't even appear in neovim-0.9.5-r1's build.log.
Comment 2 Matt Turner gentoo-dev 2024-06-10 17:10:03 UTC
I'm guessing that https://github.com/neovim/neovim/commit/45bcf8386918bbb475fbe20c48b508aa89ed0624 is the upstream commit that made this change.
Comment 3 Michael Cook 2024-06-10 17:32:56 UTC
https://github.com/neovim/neovim/commit/9f9cef1b569e226a87c5c74e455bc4fc76cc2fac

I think this is relevant as well.
Comment 4 Scott Ellis 2024-07-05 22:36:27 UTC
Is there a way to blacklist things for revdep-rebuild?  Indeed that ljpeg change that Michael points too looks like the culprit, but not sure what to do about it.
Comment 5 Matt Turner gentoo-dev 2024-07-06 01:20:21 UTC
(In reply to Scott Ellis from comment #4)
> Is there a way to blacklist things for revdep-rebuild?  Indeed that ljpeg
> change that Michael points too looks like the culprit, but not sure what to
> do about it.

See the gentoolkit github PR linked from comment 0. I'm not aware of another way. (At the same time, using revdep-rebuild has been extremely rare for me in the last 10 years or so)
Comment 6 Michael Cook 2024-07-06 03:10:51 UTC
You can add stuff in /etc/revdep-rebuild. I had a file that contained LD_LIBRARY_MASK="nvim" at first, but I felt like that was abusing it, so I looked into a better solution.
Comment 7 Scott Ellis 2024-07-08 23:31:06 UTC
(In reply to Michael Cook from comment #6)
> You can add stuff in /etc/revdep-rebuild. I had a file that contained
> LD_LIBRARY_MASK="nvim" at first, but I felt like that was abusing it, so I
> looked into a better solution.

Yeah putting `LD_LIBRARY_MASK="/usr/lib64/lua/5.1/lpeg.so"` isn't restrictive enough (since it applies to all packages).  Good times.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-22 10:51:18 UTC
*** Bug 938311 has been marked as a duplicate of this bug. ***
Comment 9 Arniiiii 2024-09-15 18:34:35 UTC
reproducible with app-editors/neovim-0.10.1-r1
Comment 10 Brahmajit Das 2025-03-29 12:19:30 UTC
Hey folks, this one still persists with app-editors/neovim-0.11.0

> * QA Notice: Unresolved soname dependencies:
> *
> *      /usr/bin/nvim: /usr/lib64/lua/5.1/lpeg.so
> *

What can we do about it, or have it move forward. Also didn't notice any update on https://github.com/gentoo/gentoolkit/pull/49. correabuscar says that the PR works. Can we merge https://github.com/gentoo/gentoolkit/pull/49?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-29 12:45:41 UTC
The issue is (still) that it's not clear if that's really right in gentoolkit and whether neovim should be fixed to not link against it if lpeg.so is a module.

I don't know enough about Lua to say how normal module finding works, and whether simply dropping the linking against ljpeg.so is enough, or if some Lua code needs to be changed in neovim too.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-29 12:45:56 UTC
(In reply to Sam James from comment #11)
> The issue is (still) that it's not clear if that's really right in
> gentoolkit and whether neovim should be fixed to not link against it if
> lpeg.so is a module.
> 
> I don't know enough about Lua to say how normal module finding works, and
> whether simply dropping the linking against ljpeg.so is enough, or if some
> Lua code needs to be changed in neovim too.

(... so that it does a lookup via whatever mechanism is normally used in Lua.)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-29 12:46:19 UTC
(and "works" obviously means "lpeg functionality works in neovim" too.)