<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>66969</bug_id>
          
          <creation_ts>2004-10-10 05:50 0000</creation_ts>
          <short_desc>JAVA_HOME not updated after emerge of blackdown-jdk-1.4.2 - java-config -S issue</short_desc>
          <delta_ts>2004-10-12 14:51:17 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2004.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>66903</blocked>
    
    <blocked>66970</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>notellin@speakeasy.net</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>notellin@speakeasy.net</who>
            <bug_when>2004-10-10 05:50:54 0000</bug_when>
            <thetext>After emerge of blackdown-jdk-1.4.2 while upgrading from blackdown-jdk-1.4.2-rc1, JAVA_HOME is left pointing to /opt/blackdown-jdk-1.4.2_rc1/bin/java or /opt/blackdown-jdk-1.4.2_rc1/jre/bin/java. This is not correct and blocks the emerge of jakartacommons.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>notellin@speakeasy.net</who>
            <bug_when>2004-10-10 05:58:47 0000</bug_when>
            <thetext>You can see this from attempting to emerge jakartacommons:

==.oOo.==

Started emerge on: Oct 11, 2004 08:43:30
 *** emerge --update --verbose jakartacommons
Calculating dependencies  
 &gt;&gt;&gt; emerge (1 of 4) dev-java/commons-httpclient-2.0.1 to /
 === (1 of 4) Cleaning (dev-java/commons-httpclient-2.0.1::/usr/portage/dev-java/commons-httpclient/commons-httpclient-2.0.1.ebuild)]2; === (1 of 4) Compiling/Merging (dev-java/commons-httpclient-2.0.1::/usr/portage/dev-java/commons-httpclient/commons-httpclient-2.0.1.ebuild)&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking commons-httpclient-2.0.1-src.tar.gz to /var/tmp/portage/commons-httpclient-2.0.1/work
tar: Archive contains obsolescent base-64 headers
tar: A lone zero block at 23653
 Applying gentoo.diff...
&gt;&gt;&gt; Source unpacked.
jikes
doc
jc_options: java not found at /opt/blackdown-jdk-1.4.2_rc1/bin/java or /opt/blackdown-jdk-1.4.2_rc1/jre/bin/java

Error: JAVA_HOME is not defined correctly.
  We cannot execute 

!!! ERROR: dev-java/commons-httpclient-2.0.1 failed.
!!! Function src_compile, Line 33, Exitcode 1
!!! compilation failed

This machine is a newly built machine as of last week. There may be other missing dependency issues.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxo@gentoo.org</who>
            <bug_when>2004-10-10 06:07:46 0000</bug_when>
            <thetext>this is because of a bug in java-config
---
jc_options: More than one VM matched the request
Matches:
        blackdown-jdk-1.4.2_rc1
        blackdown-jdk-1.4.2
---

The partial -S matching that was added some time ago should use the exact match if there is one

you can do 
$ java-config -S blackdown-jdk-1.4.2
$ env-update
to fix it manualy
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxo@gentoo.org</who>
            <bug_when>2004-10-10 06:37:34 0000</bug_when>
            <thetext>quick &amp; dirty fix for java-config

--- java_config/jc_envgen.py      2004-07-03 08:33:44.000000000 +0200
+++ java_config/jc_envgen.py   2004-10-10 15:33:46.245534920 +0200
@@ -16,6 +16,11 @@
        &apos;&apos;&apos;
 
        vms = collect_vms()
+
+       for vm in vms.keys():
+               if vm.lstrip(&apos;20&apos;) == name:
+                       return vms[vm]
+                       
        matches = [
                S for S in vms.keys()
                if S.lstrip(&apos;20&apos;).startswith(name) 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>notellin@speakeasy.net</who>
            <bug_when>2004-10-10 06:46:11 0000</bug_when>
            <thetext>Thank you Thomas.

The setting java-config worked.

BTW - I had re-emerged java-config in the {vain} hope it would fix the problem. However, it didn&apos;t which is why I reported it here. I&apos;ve tried to set JAVA_HOME using java-config in the past but am too ignorant to understand what the settings _should_ be.

I don&apos;t know / understand if this bug should be closed. I feel, however, that emerging an upgrade of blackdown-jdk to handle this automatically. So I&apos;ll leave that up to you.

I will be opening a new bug. jarkartacommons is now failing to build. :-( Oh well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxo@gentoo.org</who>
            <bug_when>2004-10-10 06:56:53 0000</bug_when>
            <thetext>its handled automaticly, but there is a bug in java-config that prevents it in this case
i have masked the new blackdown-jdk untill java-config can be fixed and the upgrade path will work without intervention</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2004-10-10 12:15:55 0000</bug_when>
            <thetext>Patch for this in java-config now. We just have to make a new release of it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>axxo@gentoo.org</who>
            <bug_when>2004-10-12 14:51:17 0000</bug_when>
            <thetext>new java-config release, blackdown 1.4.2 depends on it &amp; unmasked</thetext>
          </long_desc>
      
    </bug>

</bugzilla>