Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 416341

Summary: java-vm-2.eclass: ROOT is not handled
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: EclassesAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal CC: jstein, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=611036
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: java-vm-2.eclass.patch
initial java-config-2 ROOT support

Description SpanKY gentoo-dev 2012-05-17 01:36:50 UTC
if i install a jvm into a $ROOT where there is none selected, the eclass checks /, not $ROOT, and so my $ROOT remains unconfigured.
Comment 1 SpanKY gentoo-dev 2012-05-17 02:40:04 UTC
Created attachment 312073 [details, diff]
java-vm-2.eclass.patch

java-config and such needs quite a bit of work, but this fixes the eclass at least
Comment 2 SpanKY gentoo-dev 2012-05-17 03:16:48 UTC
Created attachment 312075 [details, diff]
initial java-config-2 ROOT support

this at least lets me do things like -L and --set-system-vm with ROOT and as non-root user (since there's no reason to restrict that based on UID)

these are the only operations i really care about right now to get a working system.  if other stuff comes up, we can add more then :).
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-18 17:16:00 UTC
(In reply to comment #1)
> Created attachment 312073 [details, diff] [details, diff]
> java-vm-2.eclass.patch
> 
> java-config and such needs quite a bit of work, but this fixes the eclass at
> least

Thanks, committed to tree.
Comment 4 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-18 17:19:23 UTC
(In reply to comment #2)
> Created attachment 312075 [details, diff] [details, diff]
> initial java-config-2 ROOT support
> 
> this at least lets me do things like -L and --set-system-vm with ROOT and as
> non-root user (since there's no reason to restrict that based on UID)

Agreed, write access to the config file should be sufficient, Prefix has a similar issue here.

> these are the only operations i really care about right now to get a working
> system.  if other stuff comes up, we can add more then :).

There is more :) Fixing this is a one of the goals for java-config-2.2, so I ask for some more patience.
Comment 5 SpanKY gentoo-dev 2012-07-19 16:53:24 UTC
(In reply to comment #4)

do we have to wait for an all-or-nothing approach ?  this patch fixes a bunch of obvious shortcomings.
Comment 6 William L. Thomson Jr. 2017-11-13 22:30:43 UTC
(In reply to SpanKY from comment #5)
> (In reply to comment #4)
> 
> do we have to wait for an all-or-nothing approach ?  this patch fixes a
> bunch of obvious shortcomings.

Is the patch still valid? spanky/vapier?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-25 16:38:55 UTC
ping. vapier?