[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: java architecture names and armhf/sh4



The name of the jre/lib/<arch>  directory is unconnected to DEB_HOST_ARCH;
On interesting architectures* the full name of the directory is

armel: /usr/lib/jvm/java-6-openjdk-armel/jre/lib/arm/server
armhf: /usr/lib/jvm/java-6-openjdk-armhf/jre/lib/arm/server
powerpc:/usr/lib/jvm/java-6-openjdk-powerpc/jre/lib/ppc/server
powerpcspe:/usr/lib/jvm/java-6-openjdk-powerpcspe/jre/lib/ppc/server
sh4:  /usr/lib/jvm/java-6-openjdk-sh4/jre/lib/sh/server

In that directory name the architecture is mentioned TWICE by different names.

The first mention (as part of java-6-openjdk-<arch>) seems to be using debian
architecture names. looking at the source for the openjdk-6 package would
seem to confirm this "jdirname = java-$(shortver)-$(origin)-$(DEB_HOST_ARCH)"

The second mention (as part of lib/<arch>/server) seems to be using java
specific architecture names (which further seem to be ambiguous).

/usr/share/javahelper/java-arch.sh is a tool with the following help output
Usage: java-arch.sh [debian arch name]
Returns the equivelent name used by the JDK for that arch
or the debian build arch if not specified

However for armhf, powerpcspe and sh4 the names it returns do not match
those used by the jdks.

So now for the two main questions I would like answering

1: is this arch name discrepancy between the architecture name returned by
   java-arch.sh and the lib/<arch>/server used by the jdks on armhf, sh4
   and powrpcspe a bug in javahelper? is it a bug in the jdks? or is
   it neither? (i'm guessing it's a bug in javahelper myself but I'd like
   confirmation before writing packages).

2: is there a better way to get the names of the include and library
   directories for a jdk than building them up manually from a mixture of
   hardcoded parts and architecture names?

* that is architectures which appear to have two different names


Reply to: