Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811288 - dev-util/bcc-0.20.0-r1 uses old version of the tools
Summary: dev-util/bcc-0.20.0-r1 uses old version of the tools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-08-31 19:46 UTC by Alexandre Ferreira
Modified: 2021-11-07 20:59 UTC (History)
2 users (show)

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


Attachments
Crude patch to fix (remove old files before installing) (temp1,419 bytes, patch)
2021-08-31 19:50 UTC, Alexandre Ferreira
Details | Diff
path to bcc ebuild (temp1,846 bytes, patch)
2021-09-03 23:33 UTC, Alexandre Ferreira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Ferreira 2021-08-31 19:46:30 UTC
bcc installations clobbers the newer version of the  tools in the python /usr/lib/python-exec/python3.9 directory. When copying it copies the  files from /usr/share/bcc/tools/old on top of the current /usr/share/bcc/tools when moving then to the python-exec directory

Reproducible: Always

Steps to Reproduce:
1.Install bcc
2.run opensnoop from /usr/share/bcc/tools
3.
Actual Results:  
Does not print files being opened and the version is from 2015

Expected Results:  
Working on newer kernels.

This bug seens to be related to the python-r1.eclass that when copying the executable does not take the directory into account so opensnoop.py ais clobbered by old/opensnoop.py. This happens to all old/* files.
Comment 1 Alexandre Ferreira 2021-08-31 19:50:07 UTC
Created attachment 736984 [details, diff]
Crude patch to fix (remove old files before installing)
Comment 2 Alexandre Ferreira 2021-09-03 23:33:17 UTC
Created attachment 737332 [details, diff]
path to bcc ebuild

Better version, it keeps the older versions but: renames the offending files to old-{name}
Comment 3 Larry the Git Cow gentoo-dev 2021-11-07 20:59:40 UTC
The bug has been closed via the following commit(s):

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

commit aa3d066f2b9904a46cfec836c3de140b742fafbf
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-11-07 20:58:05 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-11-07 20:58:34 +0000

    dev-util/bcc: Correctly append "old" prefix to old tools' names
    
    Previous fix solved the bug where bcc would install old versions on top
    of the new ones, but it failed to append the "old" prefix to old tools
    correctly, so they were not really installed. While at, let's do this in
    src_prepare rather than in src_install phase.
    
    Closes: https://bugs.gentoo.org/811288
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-util/bcc/bcc-0.22.0-r1.ebuild | 119 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)