Zac Medico schreef:
> Kevin O'Gorman wrote:
> 
>>Here's what it looks like:
>>
>>treat 1.5-bundles # emerge -av sun-jdk sun-sdk-docs
>>
>>These are the packages that I would merge, in order:
>>
>>Calculating dependencies -
>>!!! All ebuilds that could satisfy "=dev-java/java-sdk-docs-1.5.0*"
>>have been masked.
>>!!! One of the following masked packages is required to complete your request:
>>- dev-java/java-sdk-docs-1.5.0 (masked by: package.mask, ~x86 keyword)
>># <[EMAIL PROTECTED]>
>># lotsa things in the tree don't compile with 1.5 yet
>># 1.5 defaults too -target 1.5 making downgrading to a 1.4(/1.3)
>># impossible, see bug 65937 for more information/discussion
>>
>>
>>For more information, see MASKED PACKAGES section in the emerge man page or
>>section 2.2 "Software Availability" in the Gentoo Handbook.
>>!!!    (dependency required by "dev-java/sun-jdk-1.5.0.03" [ebuild])
>>
>>
> 
> 
> They're hard masked inside /usr/portage/profiles/package.mask.  For the full 
> story see http://bugs.gentoo.org/show_bug.cgi?id=65937.
> 
> Short story:
> 
> echo ">=dev-java/sun-jdk-1.4.99" >> /etc/portage/package.unmask
> echo ">=dev-java/java-sdk-docs-1.4.99" >> /etc/portage/package.unmask
> emerge sun-jdk sun-sdk-docs

You also have to echo to /etc/portage/package.keywords-- both packages
are twice-masked.

So in addition to the above:

echo "dev-java/sun-jdk ~x86" >> /etc/portage/package.keywords
echo "dev-java/java-sdk-docs ~x86" >> /etc/portage/package.keywords

You can unmask just the specific version using Zac's syntax, but you can
just unmask this and all future versions on general principle.

> 
> After that you may want to use java-config to set java-1.4 as the default 
> system compiler.
> 
> Zac

On my system, the previously-installed system default VM did not change
when I installed a new one-- what you might want to do is change the
*user* VM with java-config, in order to actually use the newly-installed
one. I'm sure there's a way to set the user VM permanently, but I don't
know what it is, and it doesn't seem to 'stick' (once I close the
program using Java, the user VM seems to go back to the default).

Holly
-- 
gentoo-user@gentoo.org mailing list

Reply via email to