Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679762 - dev-util/perf-4.20.3 USE=python does not build/install python support
Summary: dev-util/perf-4.20.3 USE=python does not build/install python support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-03-08 12:15 UTC by Holger Hoffstätte
Modified: 2019-12-27 02:56 UTC (History)
1 user (show)

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


Attachments
Patch to build & install python module (perf-python.patch,410 bytes, patch)
2019-03-08 12:19 UTC, Holger Hoffstätte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2019-03-08 12:15:56 UTC
perf has a python module for offline analysis & scripting, but adding USE="python" does not work at all - nothing is built or installed.
AFAICT this bug has existed forever.


Reproducible: Always

Steps to Reproduce:
1. build perf with USE="python"
2. start python2, run "import perf"
3. no perf :(
Comment 1 Holger Hoffstätte 2019-03-08 12:19:29 UTC
Created attachment 568176 [details, diff]
Patch to build & install python module

This works for python2; not sure what the status of python3 support in upstream perf is.
Comment 2 Holger Hoffstätte 2019-07-03 11:18:36 UTC
Still an issue with 5.1.15.
Comment 3 Naohiro Aota gentoo-dev 2019-07-03 22:08:43 UTC
OK. That should be addressed in the next revision

Official instruction to build python extension (with python3):

https://github.com/torvalds/linux/commit/66dfdff03d196e51322c6a85c0d8db8bb2bdd655
Comment 4 Larry the Git Cow gentoo-dev 2019-12-27 02:56:05 UTC
The bug has been closed via the following commit(s):

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

commit f3dd9104e7803e30f988fc8c83c092998fa1560d
Author:     Naohiro Aota <naota@gentoo.org>
AuthorDate: 2019-12-25 21:47:13 +0000
Commit:     Naohiro Aota <naota@gentoo.org>
CommitDate: 2019-12-27 02:46:13 +0000

    version bump with some fixes
    
    This commit add a multiple python version support to address python3
    installtion issue. (based on a patch from Holger Hoffstätte
    <holger@applied-asynchrony.com>)
    
    Also, this commit add a patch to build with >=sys-devel/clang-9. (patch
    from Maciej S. Szmigiero <mail@maciej.szmigiero.name> and Dennis
    Schridde <devurandom@gmx.net>).
    
    Closes: https://bugs.gentoo.org/679762
    Closes: https://bugs.gentoo.org/695726
    Signed-off-by: Naohiro Aota <naota@gentoo.org>

 dev-util/perf/Manifest                          |   2 +
 dev-util/perf/files/perf-5.4.6-fix-clang9.patch |  17 ++
 dev-util/perf/perf-5.4.6.ebuild                 | 246 ++++++++++++++++++++++++
 3 files changed, 265 insertions(+)