Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273622 - pkg_pretend support (EAPI 4)
Summary: pkg_pretend support (EAPI 4)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 273620
  Show dependency tree
 
Reported: 2009-06-10 20:18 UTC by Sebastian Luther (few)
Modified: 2010-04-02 20:19 UTC (History)
2 users (show)

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 Sebastian Luther (few) 2009-06-10 20:18:33 UTC
This bug tracks the implementation of the EAPI 3 feature mentioned in the summary.
Comment 1 Zac Medico gentoo-dev 2009-07-06 20:25:23 UTC
In svn r13799 we have pkg_pretend support by Markus Meier <maekke@gentoo.org> for the ebuild(1) command (emerge support not implemented yet).
Comment 2 Jonathan Callen (RETIRED) gentoo-dev 2009-10-17 21:42:56 UTC
From PMS:

10.1.2  pkg_pretend

The pkg_pretend function is only called for EAPIs listed in table 10.2 as supporting it [edit: that is, EAPI 3].

The pkg_pretend function may be used to carry out sanity checks early on in the install process. For example, if an ebuild requires a particular kernel configuration, it may perform that check in pkg_pretend and call eerror and then die with appropriate messages if the requirement is not met.

pkg_pretend is run separately from the main phase function sequence, and does not participate in any kind of environment saving. There is no guarantee that any of an ebuild’s dependencies will be met at this stage, and no guarantee that the system state will not have changed substantially before the next phase is executed.

pkg_pretend must not write to the filesystem.