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

Bug 521862

Summary: sys-libs/timezone-data: do all live fs modification in pkg_preinst
Product: Gentoo Linux Reporter: Mart Raudsepp <leio>
Component: [OLD] UnspecifiedAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 487192    
Bug Blocks:    

Description Mart Raudsepp gentoo-dev 2014-09-01 01:29:10 UTC
+++ This bug was initially created as a clone of Bug #487192 +++

For Bug 487192 and maybe earlier timezone-data is touching live system in pkg_setup phase. This makes things like ebuild timezone-data-2014f.ebuild prepare fail for regular users. Shouldn't hacks like these be done in pkg_preinst?
Comment 1 SpanKY gentoo-dev 2014-09-02 14:15:46 UTC
the point of pkg_setup is to allow process to modify the rootfs, so there is no bug in that regard

iirc, the symlink modification was done in pkg_setup because pkg_preinst was too late for the various portage checks (collision detection / filetype changes / etc...) -- they run after src_install finishes but before pkg_preinst runs.
Comment 2 SpanKY gentoo-dev 2015-08-21 21:43:42 UTC
this is no longer an issue starting with timezone-data-2015c-r1