Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416341 - java-vm-2.eclass: ROOT is not handled
Summary: java-vm-2.eclass: ROOT is not handled
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-17 01:36 UTC by SpanKY
Modified: 2021-03-25 16:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
java-vm-2.eclass.patch (java-vm-2.eclass.patch,1.43 KB, patch)
2012-05-17 02:40 UTC, SpanKY
Details | Diff
initial java-config-2 ROOT support (java-config-2-ROOT.patch,7.67 KB, patch)
2012-05-17 03:16 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?