<?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>176547</bug_id>
          
          <creation_ts>2007-04-30 11:11 0000</creation_ts>
          <short_desc>sci-libs/vtk sets a global CLASSPATH</short_desc>
          <delta_ts>2007-05-01 18:10:45 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>Java</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>betelgeuse@gentoo.org</reporter>
          <assigned_to>markusle@gentoo.org</assigned_to>
          <cc>java@gentoo.org</cc>
    
    <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-04-30 11:11:14 0000</bug_when>
            <thetext>betelgeuse@pena /etc/env.d $ qfile 40vtk
sci-libs/vtk (/etc/env.d/40vtk)
betelgeuse@pena /etc/env.d $ cat 40vtk
VTK_DATA_ROOT=/usr/share/vtk/data
VTK_DIR=/usr/lib/vtk-5.0
CLASSPATH=/usr/share/vtk/lib/vtk.jar

Setting a global classpath is problematic because you get the jar to your java classpath even when you might not want to. It should be set in wrapper scripts (created using for example java-pkg_dolauncher). Please contact the java team if you need any help.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2007-04-30 12:48:30 0000</bug_when>
            <thetext>Hi Petteri,

Thanks much for the heads up! Unfortunately, I am not very familiar with
gentoo&apos;s way of handling java stuff:( Could you possibly point me to package
in portage that does it properly and think I might be able to go from there.

Thanks for your help.

cheers,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-04-30 14:00:23 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Hi Petteri,
&gt; 
&gt; Thanks much for the heads up! Unfortunately, I am not very familiar with
&gt; gentoo&apos;s way of handling java stuff:( Could you possibly point me to package
&gt; in portage that does it properly and think I might be able to go from there.
&gt; 
&gt; Thanks for your help.
&gt; 
&gt; cheers,
&gt; Markus
&gt; 

Pretty much everything inheriting java-pkg-opt-2 should be useful. Probably would be useful to add java to metadata.xml so that we can fix these issues ourselves without asking. Basically on Gentoo you the java-config tool to query the installed packages for CLASSPATH or in ebuilds use the eclass functions. Feel free to join #gentoo-java to ask questions.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2007-05-01 12:37:23 0000</bug_when>
            <thetext>I had a brief look at the java eclasses and it looks to me that 
java-pkg_dolauncher is not what we want since vtk.jar is only a
library containing some vtk class wrappers. I am not sure if
CLASSPATH is needed at all since I&apos;ve never compiled java code
against a library located in a jar. 
So, for now I&apos;ve removed the CLASSPATH part in the ebuild 
completely and added you guys to metadata. So please feel
free to change as you like.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-01 13:47:08 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; I had a brief look at the java eclasses and it looks to me that 
&gt; java-pkg_dolauncher is not what we want since vtk.jar is only a
&gt; library containing some vtk class wrappers. I am not sure if
&gt; CLASSPATH is needed at all since I&apos;ve never compiled java code
&gt; against a library located in a jar. 

dolauncher is for applications. It creates an intelligent wrapper script that calculates CLASSPATH from dependencies.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2007-05-01 17:03:55 0000</bug_when>
            <thetext>Since the CLASSPATH is gone from 40vtk is it all right
to close this bug then?

Thanks,
Markus
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2007-05-01 17:10:47 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Since the CLASSPATH is gone from 40vtk is it all right
&gt; to close this bug then?

I would say so, unless there are ebuilds in tree that depend on that CLASSPATH. But I found only mayavi depending on vtk and that seems to be not using the java part.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-05-01 18:10:45 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; 
&gt; I would say so, unless there are ebuilds in tree that depend on that CLASSPATH.
&gt; But I found only mayavi depending on vtk and that seems to be not using the
&gt; java part.
&gt; 

Yeah that&apos;s what I was supposed to check too. If that&apos;s the case then let&apos;s close this.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>