Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920490 - app-portage/gentoolkit-0.6.3 fails qcheck with compiled bytecode after running tools as root
Summary: app-portage/gentoolkit-0.6.3 fails qcheck with compiled bytecode after runnin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-12-21 22:47 UTC by J. Paul Reed
Modified: 2024-01-09 00:06 UTC (History)
1 user (show)

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


Attachments
gentoolkit 0.6.3 build log (app-portage:gentoolkit-0.6.3:20231221-224226.log,43.54 KB, text/x-log)
2023-12-21 22:50 UTC, J. Paul Reed
Details
emerge --info (emerge--info.txt,9.85 KB, text/plain)
2023-12-21 22:52 UTC, J. Paul Reed
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J. Paul Reed 2023-12-21 22:47:40 UTC
A fresh install of gentoolkit 0.6.3 seems to fail a qcheck validation; note below, where I install gentoolkit 0.6.2, immediately run a qcheck on it, and everything reports fine; I then immediately emerge 0.6.3, and immediately qcheck it, and it fails checksum on some of the compiled Python bytecode.

leftfield ~/src/systools # ACCEPT_KEYWORDS=~amd64 emerge --ask --quiet-build =gentoolkit-0.6.2

These are the packages that would be merged, in order:

Calculating dependencies                ... done!                  
Dependency resolution took 3.62 s (backtrack: 0/20).

[ebuild     UD ] app-portage/gentoolkit-0.6.2 [0.6.3] USE="-test%" 

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-portage/gentoolkit-0.6.2::gentoo
>>> Installing (1 of 1) app-portage/gentoolkit-0.6.2::gentoo
>>> Completed (1 of 1) app-portage/gentoolkit-0.6.2::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 0.73, 0.60, 0.63

 * GNU info directory index is up-to-date.
leftfield ~/src/systools # qcheck gentoolkit
Checking app-portage/gentoolkit ...
  * 404 out of 404 files are good

leftfield ~/src/systools # emerge --ask --quiet-build =gentoolkit-0.6.3

These are the packages that would be merged, in order:

Calculating dependencies           ... done!                    
Dependency resolution took 3.61 s (backtrack: 0/20).

[ebuild     U  ] app-portage/gentoolkit-0.6.3 [0.6.2]

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-portage/gentoolkit-0.6.3::gentoo
>>> Installing (1 of 1) app-portage/gentoolkit-0.6.3::gentoo
>>> Completed (1 of 1) app-portage/gentoolkit-0.6.3::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 0.63, 0.53, 0.58

 * GNU info directory index is up-to-date.
leftfield ~/src/systools # qcheck gentoolkit
Checking app-portage/gentoolkit ...
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/__init__.cpython-311.pyc
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/atom.cpython-311.pyc
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/eprefix.cpython-311.pyc
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/flag.cpython-311.pyc
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/pprinter.cpython-311.pyc
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/query.cpython-311.pyc
 MD5-DIGEST: /usr/lib/python3.11/site-packages/gentoolkit/__pycache__/versionmatch.cpython-311.pyc
  * 407 out of 414 files are good

I'll attach the build log and emerge --info to the bug in a second.

Reproducible: Always
Comment 1 J. Paul Reed 2023-12-21 22:50:01 UTC
Created attachment 880196 [details]
gentoolkit 0.6.3 build log
Comment 2 J. Paul Reed 2023-12-21 22:52:52 UTC
Created attachment 880197 [details]
emerge --info
Comment 3 Alfred Wingate 2023-12-23 06:17:32 UTC
So it seems like running equery commands as root overrides the installed cache.

I see that eclean-dist and equery y at least do this.
Comment 4 Larry the Git Cow gentoo-dev 2023-12-23 17:29:19 UTC
The bug has been closed via the following commit(s):

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

commit d423beeed737735ab85cb5543c4a11c27b98c09d
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2023-12-23 06:21:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-23 17:28:39 +0000

    app-portage/gentoolkit: fix compilation of invalid bytecode
    
    * Fixing python prefix after compilation invalidates it.
    
    Closes: https://bugs.gentoo.org/920490
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34438
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gentoolkit/{gentoolkit-0.6.3.ebuild => gentoolkit-0.6.3-r1.ebuild}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-01-09 00:06:58 UTC
The bug has been referenced in the following commit(s):

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

commit ea146600f508c34863b7935f67443b5bc4a2de4e
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-01-08 21:42:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-09 00:06:18 +0000

    app-portage/gentoolkit: sync live
    
    Apply QA issue fix to the live ebuild as well.
    
    Fixes: d423beeed737735ab85cb5543c4a11c27b98c09d
    Bug: https://bugs.gentoo.org/920490
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34715
    Signed-off-by: Sam James <sam@gentoo.org>

 app-portage/gentoolkit/gentoolkit-9999.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)