Package: javahelper
Version: 0.22
Severity: wishlist

It would be nice to provide a java.mk Makefile snippet to be included from
debian/rules of Java related packages. More precisely, I'd be interested in a
java-vars.mk (according to CDBS naming convention, but not at all CDBS-related)
containing variables that otherwise everybody need to define.

Beside some common stuff, e.g. JAVAHOME pointing to /usr/lib/jvm/default-java/,
what I'm currently very interested in would be JAVA_ARCH, resolving for
instante to "amd64 in paths like
/usr/lib/jvm/default-java/jre/lib/amd64/. Apparently, such an arch tag is not
in sync with Debian archs names and hardly guessable.

scilab is using some snipppets to detect it [1,2] which can act as source of
inspiration (thanks to Sylvestre Ledru for the pointers and his help on this
matter!).

Alternatively, one can look for libjvm.so under default-java/ and clib up to
find the appropriate arch dir.

Finally, given that the JVM on some arch comes with both client and server
implementation (and on some other not!) also variables like the following can
be very useful:

- HAS_JVM_CLIENT (yes/no)
- HAS_JVM_SERVER (yes/no)
- DEFAULT_JVM_CLIENT_DIR
- DEFAULT_JVM_SERVER_DIR

(with their obvious meaning)

Well, you got the idea, I'm pretty sure once started, you'll end up devising a
lot of other very useful variables :-)

Thanks in advance,
Cheers.

[1] 
http://gitweb.scilab.org/?p=scilab;a=blob;f=scilab/bin/scilab;h=42c460eb2cd49a39bae8a35181ca69a694e88b54;hb=HEAD#l354
[2] 
http://gitweb.scilab.org/?p=scilab;a=blob;f=scilab/m4/java.m4;h=87cac517d2e83f0da7af9ecdb14a05a7642d4f17;hb=HEAD#l412

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to