Gentoo Archives: gentoo-java

From: Vlastimil Babka <caster@g.o>
To: Gentoo Java <gentoo-java@l.g.o>
Subject: Re: [gentoo-java] Patch for LIBRARY_PATH support in gjl
Date: Mon, 14 May 2007 10:07:19
Message-Id: 464834A6.7030901@gentoo.org
In Reply to: Re: [gentoo-java] Patch for LIBRARY_PATH support in gjl by "Petteri Räty"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Petteri Räty wrote:
5 >
6 > Alistair John Bush kirjoitti:
7 >> Here is a patch to allow users to configure a packages LIBRARY_PATH via
8 >>
9 >
10 > I think it should be either JAVA_LIBRARY_PATH or LD_LIBRARY_PATH.
11
12 Using a simple test:
13 public class pathtest {
14 public static void main(String[] args) throws Exception {
15 System.out.println("library path: " +
16 System.getProperty("java.library.path"));
17 }
18 }
19
20 Only LD_LIBRARY_PATH was affecting the output, and setting a
21 - -Djava.library.path has overriden it. Including the defaults of JDK!
22 That's probably another problem, maybe it should also add LDPATH from
23 the VM's env file?
24 And related to https://bugs.gentoo.org/show_bug.cgi?id=125563 add some
25 sane defaults like /lib:/usr/lib ...
26
27 > The reason I have LIBRARY_PATH is that is what is stored in package.env.
28
29 That doesn't matter, package.env is our artifact, not everything there
30 is usually used in the real env :)
31
32 > And this way they will have to explicitly add additional library paths
33 > to a package.
34
35 If someone sets LD_LIBRARY_PATH then he expects it to be used
36 everywhere, why force another var for java.
37
38 > What do you think?
39
40 I'm for LD_LIBRARY_PATH. Or as compromise, append both LD_ and JAVA_
41 variables. That way one can set additional paths for java without
42 affecting everything else.
43
44 - --
45 Vlastimil Babka (Caster)
46 Gentoo/Java
47 -----BEGIN PGP SIGNATURE-----
48 Version: GnuPG v1.4.7 (GNU/Linux)
49 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
50
51 iD8DBQFGSDSltbrAj05h3oQRAur0AJ9aQfyi0b2ElKQMjIkhYxpIml8iYwCfUJED
52 PU0m/QkhqrU3gIQNoJUkY0U=
53 =JH+j
54 -----END PGP SIGNATURE-----
55 --
56 gentoo-java@g.o mailing list

Replies

Subject Author
Re: [gentoo-java] Patch for LIBRARY_PATH support in gjl "Petteri Räty" <betelgeuse@g.o>
Re: [gentoo-java] Patch for LIBRARY_PATH support in gjl Fabian Groffen <grobian@g.o>