Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441 - feature request: pkg_prereq() function
Summary: feature request: pkg_prereq() function
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Geert Bevin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 186
  Show dependency tree
 
Reported: 2002-01-30 15:35 UTC by Donny Davies (RETIRED)
Modified: 2011-10-30 22:20 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 Donny Davies (RETIRED) gentoo-dev 2002-01-30 15:35:02 UTC
the .ebuilds are sources several times, in fetch, compile, unpack, install, 
etc, etc, etc.

some ebuilds are wanting to check for various things before they continue.  
like seeing if there exists a current /usr/src/linux tree.  Some want to know 
if a particular package was compiled with a particular USE variables.

Example, was snort installed with mysql in the USE?  So, in the pkg_prereq(), I 
could try to figure that out.

Still others want to know if /there/exists/this/shared/lib.so ?

SOme packages want a user/group, but I think thats probably best to be done in 
the pkg_postinst(), I think its a separate issue.

But anyway, this pkg_prereq() function is completely backwards compatible with 
all ebuilds, becuase if there not exists one, then it can continue.

The ebuild should fail ebuild foo.ebiuld check if the pkg_prereq() returns non-
successful code.
Comment 1 Geert Bevin 2002-02-01 12:20:46 UTC
added as pkg_setup to portage 1.8.8-r1