Gentoo Archives: gentoo-java

From: "Petteri Räty" <betelgeuse@g.o>
To: Alistair John Bush <ali_bush@g.o>
Cc: Gentoo Java <gentoo-java@l.g.o>
Subject: Re: [gentoo-java] Patch for LIBRARY_PATH support in gjl
Date: Tue, 15 May 2007 10:05:02
Message-Id: 4649859A.6010408@gentoo.org
In Reply to: Re: [gentoo-java] Patch for LIBRARY_PATH support in gjl by Alistair John Bush
1 Alistair John Bush kirjoitti:
2 >
3 >
4 > and the patch
5 >
6 > $ svn diff gjl
7 > Index: gjl
8 > ===================================================================
9 > --- gjl (revision 4648)
10 > +++ gjl (working copy)
11 > @@ -113,6 +113,11 @@
12 > args += ' -classpath %s' % (classpath)
13 >
14 > if library:
15 > + envlp = os.getenv('JAVA_LIBRARY_PATH')
16 > +
17 > + if envlp:
18 > + library = ':'.join(('/lib:/usr/lib', envlp, library))
19 > +
20 > args += ' -Djava.library.path="%s"' % (library)
21 >
22 > if args:
23 >
24 >
25 > As you can see, I have prefixed '/lib:/usr/lib' to java.library.path
26 >
27 > I will commit this to trunk latter tonight. Is there any other
28 > development occuring in trunk atm? How about unreleased functionality?
29 >
30
31 Trunk was just released as 2.0.32 so there shouldn't be anything
32 unreleased. You didn't my idea of appending to LD_LIBRARY_PATH in order
33 to not overwrite the default?
34
35 Regards,
36 Petteri

Attachments

File name MIME type
signature.asc application/pgp-signature