Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521862 - sys-libs/timezone-data: do all live fs modification in pkg_preinst
Summary: sys-libs/timezone-data: do all live fs modification in pkg_preinst
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 487192
Blocks:
  Show dependency tree
 
Reported: 2014-09-01 01:29 UTC by Mart Raudsepp
Modified: 2015-08-21 21:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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