On Sun, Aug 29, 2010 at 10:59:20PM +0200, Aurelien Jarno wrote:
> On Sun, Aug 29, 2010 at 08:55:49PM +0000, Clint Adams wrote:
> > On Sun, Aug 29, 2010 at 10:42:22PM +0200, Aurelien Jarno wrote:
> > >   test /usr/lib/jvm/default-java/bin/../../../.. '!=' /usr
> > 
> > Great, I'll have it run readlink -f on $_JTOPDIR
> > 
> 
> Actually it seems this is not the best solution. The issue comes from
> the fact on Debian we are having the java installed in 
> /usr/lib/jvm/default-java, using symlinks. The configure script tries
> to follow symlinks to determine the correct include directory.
> 
> With OpenJDK, it fails to find it, but it is workarounded by the
> following code in debian/rules:
> 
>   CFLAGS += -I$(JAVA_HOME)/include
> 
> With GCJ, after following the symlinks, it is able to find /usr/include
> and also include /usr/include/linux as it is a linux system. This
> include directory contains headers that conflicts with the GNU libc 
> headers, hence the strange configure output.
> 
> In my opinion the best solution is to avoid following the symlinks on
> Debian, as it can gives some strange behaviors later. That's what the
> patch below does. I have a test build in progress, currently running 
> the testsuite.
> 

The testsuite has ran successfully, and the whole package has built
fine.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to