Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66120 - needed: addwrite that is kept betwean functions
Summary: needed: addwrite that is kept betwean functions
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 52248
  Show dependency tree
 
Reported: 2004-10-02 06:01 UTC by Thomas Matthijs (RETIRED)
Modified: 2005-02-28 01:04 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 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-02 06:01:32 UTC
Many of the java jdk's need addwrite's in order to function properly. (and seem to change betwean version quite a bit)
We would like to use an eclass for this and do that in pkg_setup

For example see java-utils_setup-vm() in java-utils.eclass

But current portage resets the addwrites betwean every (src|pkg)function.
Comment 1 SpanKY gentoo-dev 2004-10-02 14:46:27 UTC
considering what a bad idea it is to use addwrite, i think we should make you jump through hoops in order to use it
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-10-02 16:08:18 UTC
You should only have it where explicitly needed.

Why writes and not predicts? I assume the write are completely
necessary for it to be happy and install?
Comment 3 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-02 17:07:32 UTC
Well if we could set them up in pkg_setup and they would still be around in src_compile that'd be nice

addpredicts will probaly work for some of them(will have to test)
i was thinking a set of like keep_addwrite keep_addpredict or simular

its needed for the java compiler(s) too run
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-10-09 13:42:11 UTC
In how many stages do you need those writes? If it's compile... then set it in compile.
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-09 14:01:43 UTC
only in compile

but we would _realy_ like to do this in src_setup so we don't have to call it every single ebuild that uses java
Comment 6 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-10-09 14:11:50 UTC
The requirement is for all Java ebuilds. The files which must be addpredicted or
addwrited depends on the the JVM the user has set active for the system; the
Sun JVM requires different files than the IBM JVM and the JRockIT JVM.

It is not feasible to add addpredict/addwrite to all src_compile() functions in
all ebuilds in Portage, we have more than 320 of them.

Sun, IBM and other VM vendors change which files are affected, even between minor
releases, so it will be difficult to put the required addpredicts in Portage
itself.
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2004-10-11 04:23:17 UTC
Putting them in the ebuilds themselves has the same issues as that will mean a tremendous duplication of effort. An eclass should be the solution.
Comment 8 SpanKY gentoo-dev 2004-10-11 14:47:15 UTC
no, that would a workaround

the solution would be to never call addwrite/addpredict in the first place
Comment 9 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-19 05:33:30 UTC
so whats the status?
if its definitly 'no', please close wontfix so i can go edit all java ebuilds
Comment 10 Brian Harring (RETIRED) gentoo-dev 2005-02-28 01:04:36 UTC
see above.
The answer is No :)

The actual need for sandbox add* calls to persist between phases I don't like...