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

Bug 174328

Summary: call order of phases in PMS does not match portage 2.1.2.3 for upgrades
Product: Gentoo Hosted Projects Reporter: Marien Zwart (RETIRED) <marienz>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=338339
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 563798    

Description Marien Zwart (RETIRED) gentoo-dev 2007-04-12 18:43:00 UTC
When upgrading a package portage calls the phases in the following order:

 * src_compile testapp-2
 * src_test testapp-2
 * src_install testapp-2
 * pkg_preinst testapp-2
 * pkg_postinst testapp-2
 * pkg_prerm testapp-1
 * pkg_postrm testapp-1

so postinst for the new version is called before prerm of the old
version, while the PMS specifies postinst for the new version happens
after postrm for the old version. On downgrades the same thing
happens. On remerges behaviour matches PMS.
Comment 1 Ciaran McCreesh 2007-04-12 19:08:32 UTC
Oops. r160.