Re: Patch for LIBRARY_PATH support in gjl

Vlastimil Babka <[email protected]>
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petteri Räty wrote:
> 
> Alistair John Bush kirjoitti:
>> Here is a patch to allow users to configure a packages LIBRARY_PATH via
>>
> 
> I think it should be either JAVA_LIBRARY_PATH or  LD_LIBRARY_PATH.

Using a simple test:
public class pathtest {
    public static void main(String[] args) throws Exception {
        System.out.println("library path: " +
System.getProperty("java.library.path"));
    }
}

Only LD_LIBRARY_PATH was affecting the output, and setting a
- -Djava.library.path has overriden it. Including the defaults of JDK!
That's probably another problem, maybe it should also add LDPATH from
the VM's env file?
And related to https://bugs.gentoo.org/show_bug.cgi?id=125563 add some
sane defaults like /lib:/usr/lib ...

> The reason I have LIBRARY_PATH is that is what is stored in package.env.

That doesn't matter, package.env is our artifact, not everything there
is usually used in the real env :)

> And this way they will have to explicitly add additional library paths
> to a package.

If someone sets LD_LIBRARY_PATH then he expects it to be used
everywhere, why force another var for java.

> What do you think?

I'm for LD_LIBRARY_PATH. Or as compromise, append both LD_ and JAVA_
variables. That way one can set additional paths for java without
affecting everything else.

- --
Vlastimil Babka (Caster)
Gentoo/Java
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGSDSltbrAj05h3oQRAur0AJ9aQfyi0b2ElKQMjIkhYxpIml8iYwCfUJED
PU0m/QkhqrU3gIQNoJUkY0U=
=JH+j
-----END PGP SIGNATURE-----
-- 
[email protected] mailing list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.