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.
Created attachment 736984 [details, diff] Crude patch to fix (remove old files before installing)
Created attachment 737332 [details, diff] path to bcc ebuild Better version, it keeps the older versions but: renames the offending files to old-{name}
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(+)