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.
considering what a bad idea it is to use addwrite, i think we should make you jump through hoops in order to use it
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?
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
In how many stages do you need those writes? If it's compile... then set it in compile.
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
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.
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.
no, that would a workaround the solution would be to never call addwrite/addpredict in the first place
so whats the status? if its definitly 'no', please close wontfix so i can go edit all java ebuilds
see above. The answer is No :) The actual need for sandbox add* calls to persist between phases I don't like...