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

Bug 264308

Summary: python.eclass is broken with package managers that preserve mtime
Product: Gentoo Linux Reporter: Maximilian Grothusmann <maxi>
Component: EclassesAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: major CC: dev-portage, ferringb, loki_val, lpmichalik, m.debruijne, serkan
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: This should demonstrate the bug quite clearly

Description Maximilian Grothusmann 2009-03-30 15:57:07 UTC
When updating/downgrading/reinstalling a package, .pyc/.pyo files aren't regenerated because their mtime is newer than the mtime of the newly installed .py files.

Reproducible: Always

Steps to Reproduce:
* Install some python package, mess up the .pyc files, reinstall again and find your .pyc files still broken.
* After downgrading a python package, the .pyc files will also not be regenerated
* Can happen with normal upgrades too, if your upgrade has been released before you installed the older version.
Actual Results:  
.pyc files broken

Expected Results:  
.pyc files regenerated when installing a package
Comment 1 Maximilian Grothusmann 2009-03-30 15:58:08 UTC
Created attachment 186771 [details]
This should demonstrate the bug quite clearly
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2009-03-30 17:14:36 UTC
Is this a dupe of bug #256953?
Comment 3 Maximilian Grothusmann 2009-03-30 17:54:48 UTC
Bleh. Indeed, it's a dupe.

*** This bug has been marked as a duplicate of bug 256953 ***