Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801472 - dev-util/bpftrace-0.13.0: missing libbpftracearch.so after installation
Summary: dev-util/bpftrace-0.13.0: missing libbpftracearch.so after installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-10 10:17 UTC by Holger Hoffstätte
Modified: 2021-07-13 21:07 UTC (History)
1 user (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 Holger Hoffstätte 2021-07-10 10:17:15 UTC
After updating bpftrace from 0.12.1 to 0.13.0 the binary no longer stats since libbpftracearch.so is missing.

Reproducible: Always

Steps to Reproduce:
1. emerge bpftrace-0.13.0
2. try to run bpftrace
3. failure: missing shared library



The compile phase seems to work:
$ebuild bpftrace-0.13.0.ebuild clean compile
...
$/tmp/portage/dev-util/bpftrace-0.13.0/work/bpftrace-0.13.0_build/src/bpftrace -V
bpftrace v0.13.0

It also uses the correct lib:
$ldd /tmp/portage/dev-util/bpftrace-0.13.0/work/bpftrace-0.13.0_build/src/bpftrace | grep tracearch
	libbpftracearch.so => /tmp/portage/dev-util/bpftrace-0.13.0/work/bpftrace-0.13.0_build/src/arch/libbpftracearch.so (0x00007fbff54d0000)

However the install phase seems to drop it:

$ebuild bpftrace-0.13.0.ebuild install
...
$ll /tmp/portage/dev-util/bpftrace-0.13.0/image/usr/lib64/           
total 2.5M
-rwxr-xr-x 1 holger users 1.2M Jul 10 12:15 libbpftrace.so*
-rwxr-xr-x 1 holger users 987K Jul 10 12:15 libbpftraceast.so*
-rwxr-xr-x 1 holger users 335K Jul 10 12:15 libbpftraceparser.so*
-rwxr-xr-x 1 holger users  54K Jul 10 12:15 libbpftraceresources.so*
Comment 1 Larry the Git Cow gentoo-dev 2021-07-13 21:07:42 UTC
The bug has been closed via the following commit(s):

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

commit cf1ef9d692a509052c5ef64a6c34bec7000c4bf5
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2021-07-13 21:07:27 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2021-07-13 21:07:38 +0000

    dev-util/bpftrace-0.13.0-r1: revbump, install lib (bug #801472)
    
    Closes: https://bugs.gentoo.org/801472
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

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