Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 711602

Summary: sys-apps/kmod-27 - QA notice - This package installs one or more Python modules that are not byte-compiled
Product: Gentoo Linux Reporter: Francesco Turco <fturco>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info =sys-apps/kmod-27
build log

Description Francesco Turco 2020-03-05 13:33:54 UTC
Portage reports the following QA notice when emerging sys-apps/kmod-27:

> * This package installs one or more Python modules that are not byte-compiled.
> * The following files are missing:
> * 
> *   /usr/lib64/python3.6/site-packages/kmod/__pycache__/error.cpython-36.opt-2.pyc
> *   /usr/lib64/python3.6/site-packages/kmod/__pycache__/__init__.cpython-36.opt-2.pyc
> *   /usr/lib64/python3.6/site-packages/kmod/__pycache__/version.cpython-36.opt-2.pyc
> *   /usr/lib/python3.7/site-packages/kmod/__pycache__/error.cpython-37.opt-2.pyc
> *   /usr/lib/python3.7/site-packages/kmod/__pycache__/__init__.cpython-37.opt-2.pyc
> *   /usr/lib/python3.7/site-packages/kmod/__pycache__/version.cpython-37.opt-2.pyc
> *   /usr/lib/python3.8/site-packages/kmod/__pycache__/error.cpython-38.opt-2.pyc
> *   /usr/lib/python3.8/site-packages/kmod/__pycache__/__init__.cpython-38.opt-2.pyc
> *   /usr/lib/python3.8/site-packages/kmod/__pycache__/version.cpython-38.opt-2.pyc
> * 
> * Please either fix the upstream build system to byte-compile Python modules
> * correctly, or call python_optimize after installing them.  For more
> * information, see:
> * https://wiki.gentoo.org/wiki/Project:Python/Byte_compiling
Comment 1 Francesco Turco 2020-03-05 13:34:51 UTC
Created attachment 617166 [details]
emerge --info =sys-apps/kmod-27
Comment 2 Francesco Turco 2020-03-05 13:36:06 UTC
Created attachment 617168 [details]
build log
Comment 3 Larry the Git Cow gentoo-dev 2020-03-05 16:00:07 UTC
The bug has been closed via the following commit(s):

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

commit 13a5885ecf8d9f3129d3c84346fc4fd90719b3c5
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-03-05 15:58:52 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-03-05 15:59:59 +0000

    sys-apps/kmod: call python_optimize
    
    Closes: https://bugs.gentoo.org/711602
    Package-Manager: Portage-2.3.91_p5, Repoman-2.3.20_p113
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/kmod/{kmod-26-r3.ebuild => kmod-26-r4.ebuild} | 1 +
 sys-apps/kmod/{kmod-27.ebuild => kmod-27-r1.ebuild}    | 1 +
 sys-apps/kmod/kmod-9999.ebuild                         | 1 +
 3 files changed, 3 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2020-03-06 15:32:21 UTC
The bug has been referenced in the following commit(s):

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

commit 0c0b4a1f9cd9d5f3122e355c1b6c9d7b2aa9767b
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-03-06 15:32:08 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-03-06 15:32:08 +0000

    sys-apps/kmod: uncomment python_optimize
    
    Bug: https://bugs.gentoo.org/711602
    Package-Manager: Portage-2.3.92_p3, Repoman-2.3.20_p118
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/kmod/{kmod-26-r4.ebuild => kmod-26-r5.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)