Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661706 - app-admin/abrt does not install pyc files for optmization level 2 (*.opt-2.pyc)
Summary: app-admin/abrt does not install pyc files for optmization level 2 (*.opt-2.pyc)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-20 22:56 UTC by Pacho Ramos
Modified: 2020-02-10 04:29 UTC (History)
1 user (show)

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


Attachments
build.log.gz (python-3.6.6:20180720-222902.log.gz,134.71 KB, application/gzip)
2018-07-20 22:56 UTC, Pacho Ramos
Details
sandbox.log (sandbox-14147.log,2.59 KB, text/x-log)
2018-07-20 22:57 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2018-07-20 22:56:52 UTC
Created attachment 540296 [details]
build.log.gz

I get:
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-14147.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3.cpython-36.opt-2.pyc.140455418460320
A: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3.cpython-36.opt-2.pyc.140455418460320
R: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3.cpython-36.opt-2.pyc.140455418460320
C: ./python -E -Wi -OO /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6/compileall.py -d /usr/lib64/python3.6 -f -x bad_coding|badsyntax|site-packages|lib2to3/tests/data /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6 

F: open_wr
S: deny
P: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3_container.cpython-36.opt-2.pyc.140455418364864
A: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3_container.cpython-36.opt-2.pyc.140455418364864
R: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3_container.cpython-36.opt-2.pyc.140455418364864
C: ./python -E -Wi -OO /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6/compileall.py -d /usr/lib64/python3.6 -f -x bad_coding|badsyntax|site-packages|lib2to3/tests/data /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6 

F: open_wr
S: deny
P: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3.cpython-36.opt-2.pyc.140101522486592
A: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3.cpython-36.opt-2.pyc.140101522486592
R: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3.cpython-36.opt-2.pyc.140101522486592
C: ./python -E -Wi -OO /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6/compileall.py -d /usr/lib64/python3.6/site-packages -f -x badsyntax /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6/site-packages 

F: open_wr
S: deny
P: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3_container.cpython-36.opt-2.pyc.140101522371672
A: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3_container.cpython-36.opt-2.pyc.140101522371672
R: /usr/lib64/python3.6/site-packages/__pycache__/abrt_exception_handler3_container.cpython-36.opt-2.pyc.140101522371672
C: ./python -E -Wi -OO /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6/compileall.py -d /usr/lib64/python3.6/site-packages -f -x badsyntax /var/tmp/portage/dev-lang/python-3.6.6/image//usr/lib64/python3.6/site-packages 
 * --------------------------------------------------------------------------------
 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (dev-lang/python-3.6.6:3.6/3.6m::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/build/dev-lang/python-3.6.6:20180720-222902.log.gz'
 *
Comment 1 Pacho Ramos gentoo-dev 2018-07-20 22:57:13 UTC
Created attachment 540298 [details]
sandbox.log
Comment 2 Mike Gilbert gentoo-dev 2018-07-20 23:11:37 UTC
You probably have a broken package installed. What package installs  abrt_exception_handler3?
Comment 3 Pacho Ramos gentoo-dev 2018-07-20 23:18:10 UTC
app-admin/abrt-2.10.10-r1 installs them
Comment 4 Mike Gilbert gentoo-dev 2018-07-21 14:00:54 UTC
This actually seems to be a limitation of the py-compile script from automake.

An easy workaround would be to call python_optimize from src_install.
Comment 5 Pacho Ramos gentoo-dev 2018-07-22 08:32:43 UTC
[master 251e520a6efa] app-admin/abrt: python_optimize needed (#661706 by Mike Gilbert)
 1 file changed, 116 insertions(+)
 create mode 100644 app-admin/abrt/abrt-2.10.10-r2.ebuild
Comment 6 Matt Turner gentoo-dev 2020-02-10 04:29:25 UTC
(In reply to Pacho Ramos from comment #5)
> [master 251e520a6efa] app-admin/abrt: python_optimize needed (#661706 by
> Mike Gilbert)
>  1 file changed, 116 insertions(+)
>  create mode 100644 app-admin/abrt/abrt-2.10.10-r2.ebuild

Fixed.