Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 784332 - dev-util/bpftrace-0.14.0 - QA Notice: Unresolved soname dependencies: /usr/lib64/libbpftrace.so: libbpftracearch.so, /usr/lib64/libbpftraceast.so: libbpftracearch.so
Summary: dev-util/bpftrace-0.14.0 - QA Notice: Unresolved soname dependencies: /usr/li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-20 07:16 UTC by Dennis Schridde
Modified: 2021-10-26 22:07 UTC (History)
3 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 Dennis Schridde 2021-04-20 07:16:09 UTC
* QA Notice: Unresolved soname dependencies:
 * 
 *      /usr/lib64/libbpftrace.so: libbpftracearch.so
 *      /usr/lib64/libbpftraceast.so: libbpftracearch.so
 * 

This is at the end of the second build of bpftrace-0.12.1.  The first build left preserved libraries behind:
>>> package: dev-util/bpftrace-0.12.1                                                                                                                                                                                                                                                                                                                                       
 *  - /usr/lib64/libbpftracearch.so                                                                                                                                                                                                                                                                                                                                         
 *      used by /usr/lib64/libbpftrace.so (dev-util/bpftrace-0.12.1)                                                                                                                                                                                                                                                                                                        
 *      used by /usr/lib64/libbpftraceast.so (dev-util/bpftrace-0.12.1)

After the second build, this library is no longer preserved:
# portageq list_preserved_libs /
<no output>
Comment 1 WGH 2021-07-15 17:08:06 UTC
I'm not having this QA Notice in dev-util/bpftrace-0.13.0, but it the loader gives a runtime error. There is bpftrace-0.13.0-install-libs.patch in the files/, which seems to fiddle with some install and link directives. Maybe it does something wrong?
Comment 2 WGH 2021-07-15 17:17:45 UTC
I have fixed it by adding 

install(TARGETS bpftracearch LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

to src/arch/CMakeLists.txt. This was the only missing library.

The patch adds similar install directives for other files, I suppose the bpftracearch was simply accidentally forgotten?
Comment 3 WGH 2021-07-15 23:47:04 UTC
Oh, I suppose it was recently fixed in bug 801472.
Comment 4 Agostino Sarubbo gentoo-dev 2021-10-26 18:38:47 UTC
ci has reproduced this issue with version 0.14.0 - Updating summary.
Comment 5 Holger Hoffstätte 2021-10-26 20:48:25 UTC
libbpftracearch.so was missing in 0.13 (and fixed), 0.14 is indeed missing libbpftraceast.so. It's being built but not installed, so same problem, only in src/ast/CMakeLists.txt.

$cd /tmp/portage/dev-util/bpftrace-0.14.0/work/bpftrace-0.14.0_build/src/ast/
$ll *.so
-rwxr-xr-x 1 holger users 119K Oct 26 22:29 libast_defs.so*
-rwxr-xr-x 1 holger users 1.2M Oct 26 22:29 libbpftraceast.so*

$bpftrace
bpftrace: error while loading shared libraries: libbpftraceast.so: cannot open shared object file: No such file or directory
Comment 6 Larry the Git Cow gentoo-dev 2021-10-26 22:07:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83059a7de54913700cdfe7d36391673c1b7ebcc9

commit 83059a7de54913700cdfe7d36391673c1b7ebcc9
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2021-10-26 22:05:35 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2021-10-26 22:07:06 +0000

    dev-util/bpftrace: bump fix install of ast lib (bug # 784332)
    
    Closes: https://bugs.gentoo.org/784332
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 .../{bpftrace-0.14.0.ebuild => bpftrace-0.14.0-r1.ebuild}        | 0
 dev-util/bpftrace/files/bpftrace-0.14.0-install-libs.patch       | 9 +++++----
 2 files changed, 5 insertions(+), 4 deletions(-)