Skip to content

Commit 387a96b

Browse files
mackalthesamesam
authored andcommitted
revdep_rebuild: Fix issue where library is a full path
app-editors/neovim-0.10.0 has one of it's libraries referenced by a full path, which seems to be causing it want to rebuild. On my system scanelf shows: /usr/bin/nvim;nvim;;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;ELFCLASS64 In the LibCheck.search() function it was passing "/usr/lib64/lua/5.1/lpeg.so" to LibCheck.check() which searches by basename, which of course isn't going to match. Bug: https://bugs.gentoo.org/932671 Part-of: #49 Closes: #49 Signed-off-by: Sam James <[email protected]>
1 parent 72aaa0c commit 387a96b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pym/gentoolkit/revdep_rebuild/analyse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ def search(self, scanned_files=None):
250250
"\tFile %s ignored as it is masked" % filename
251251
)
252252
continue
253+
if l.startswith('/') and os.path.isfile(l):
254+
self.logger.debug(
255+
"\tLibrary %s is a full path and it exists" % l
256+
)
257+
continue
253258
if not bits in found_libs:
254259
found_libs[bits] = {}
255260
try:

0 commit comments

Comments
 (0)