Debian Bug report logs - #561396
libvtk-java: No rule to make target `/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so'

version graph

Package: libvtk-java; Maintainer for libvtk-java is Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>; Source for libvtk-java is src:vtk.

Reported by: Mathieu Malaterre <malat@debian.org>

Date: Wed, 16 Dec 2009 21:00:02 UTC

Severity: normal

Found in versions libvtk-java/5.8.0-11, vtk/5.2.1-11

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Wed, 16 Dec 2009 21:00:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
New Bug report received and forwarded. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Wed, 16 Dec 2009 21:00:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libvtk-java: No rule to make target `/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so'
Date: Wed, 16 Dec 2009 21:49:19 +0100
Package: libvtk-java
Version: 5.2.1-11
Severity: normal


I am still having some issues with VTK 5.2. When building GDCM with VTK bindings I get:

[ 60%] Built target vtkgdcm
make[2]: *** No rule to make target `/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so', needed by `bin/libvtkgdcmJava.so'.  Stop.
make[1]: *** [Utilities/VTK/CMakeFiles/vtkgdcmJava.dir/all] Error 2
make: *** [all] Error 2


Indeed, on my local system, all I have is:

$ ls /usr/lib/jvm 
java-1.5.0-gcj-4.3-1.5.0.0/  java-6-openjdk/  java-gcj@

I am not sure what to install to get this 'default-java' directory.

Anyway the root problem is here:

$ grep jawt /usr/lib/vtk-5.2/*.cmake                                                                                                             /tmp/c
/usr/lib/vtk-5.2/VTKLibraryDepends.cmake:  SET("vtkRenderingJava_LIB_DEPENDS" "general;vtkRendering;general;vtkGraphicsJava;general;vtkImagingJava;general;/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so;")
/usr/lib/vtk-5.2/VTKLibraryDepends.cmake:  SET("vtkRenderingJava_LIB_DEPENDS" "vtkRendering;vtkGraphicsJava;vtkImagingJava;/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so;")


Hopefully this will be solved when cmake wll stop doing this transitive linking thingy...

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libvtk-java depends on:
ii  default-jre [java2-run 1.5-30            Standard Java or Java compatible R
ii  gcj-4.4-jre [java2-run 4.4.1-6           Java runtime environment using GIJ
ii  gcj-jre [java2-runtime 4:4.3.4-1         Java runtime environment using GIJ
ii  java-gcj-compat [java2 1.0.80-5.1        Java runtime environment using GIJ
ii  kaffe-pthreads [java1- 2:1.1.8-5.2       A POSIX threads enabled version of
ii  libc6                  2.10.2-2          GNU C Library: Shared libraries
ii  libexpat1              2.0.1-4+lenny1    XML parsing C library - runtime li
ii  libfreetype6           2.3.7-2+lenny1    FreeType 2 font engine, shared lib
ii  libgcc1                1:4.4.2-3         GCC support library
ii  libgl1-mesa-glx [libgl 7.0.3-7           A free implementation of the OpenG
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.40-1          PNG library - runtime
ii  libsm6                 2:1.0.3-2         X11 Session Management library
ii  libstdc++6             4.4.2-3           The GNU Standard C++ Library v3
ii  libtiff4               3.8.2-11.2        Tag Image File Format (TIFF) libra
ii  libvtk5.2              5.2.1-11          Visualization Toolkit - A high lev
ii  libx11-6               2:1.1.5-2         X11 client-side library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxft2                2.1.13-3          FreeType-based font drawing librar
ii  libxml2                2.7.6.dfsg-1      GNOME XML library
ii  libxss1                1:1.1.3-1         X11 Screen Saver extension library
ii  libxt6                 1:1.0.5-3         X11 toolkit intrinsics library
ii  openjdk-6-jre [java2-r 6b11-9.1+lenny2   OpenJDK Java runtime, using Hotspo
ii  sun-java5-jre [java2-r 1.5.0-17-0.1      Sun Java(TM) Runtime Environment (
ii  sun-java6-jre [java2-r 6-12-1            Sun Java(TM) Runtime Environment (
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

libvtk-java recommends no packages.

Versions of packages libvtk-java suggests:
ii  gcj-4.4-jre-headless [ja 4.4.1-6         Java runtime environment using GIJ
ii  gcj-jre-headless [java-v 4:4.3.4-1       Java runtime environment using GIJ
ii  gij-4.3 [java-virtual-ma 4.3.4-4         The GNU Java bytecode interpreter
ii  java-gcj-compat [java-vi 1.0.80-5.1      Java runtime environment using GIJ
ii  java-gcj-compat-headless 1.0.80-5.1      Java runtime environment using GIJ
ii  kaffe-pthreads [java-vir 2:1.1.8-5.2     A POSIX threads enabled version of
ii  libvtk5-dev              5.2.1-11        VTK header files for building C++ 
ii  openjdk-6-jre-headless [ 6b11-9.1+lenny2 OpenJDK Java runtime, using Hotspo
ii  sun-java5-jre [java-virt 1.5.0-17-0.1    Sun Java(TM) Runtime Environment (
ii  sun-java6-jre [java-virt 6-12-1          Sun Java(TM) Runtime Environment (
ii  vtk-doc                  5.2.1-11        VTK class reference documentation
ii  vtk-examples             5.0.4-1.1       C++, Tcl and Python example progra

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, hramrach@centrum.cz, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Mon, 01 Mar 2010 20:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Michal Suchanek <hramrach@centrum.cz>" <michal.suchanek@ruk.cuni.cz>:
Extra info received and forwarded to list. Copy sent to hramrach@centrum.cz, bottoms@debian.org (A. Maitland Bottoms). (Mon, 01 Mar 2010 20:09:03 GMT) Full text and rfc822 format available.

Message #10 received at 561396@bugs.debian.org (full text, mbox):

From: "Michal Suchanek <hramrach@centrum.cz>" <michal.suchanek@ruk.cuni.cz>
To: Debian Bug Tracking System <561396@bugs.debian.org>
Subject: Re: No rule to make target `/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so'
Date: Mon, 01 Mar 2010 21:08:25 +0100
Package: python-vtk
Severity: normal


You probably want the default-jdk package.




Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Mon, 17 May 2010 16:24:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Mon, 17 May 2010 16:24:06 GMT) Full text and rfc822 format available.

Message #15 received at 561396@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: 561396@bugs.debian.org, vtk@packages.debian.org, Denis Barbier <bouzim@gmail.com>, Dominique Belhachemi <domibel@cs.tu-berlin.de>
Date: Mon, 17 May 2010 18:22:32 +0200
Since VTK is in pretty good shape I'd like to introduce the same hack
I used in GDCM, to clean the VTKLibraryDepends.cmake file.

I am thinking in running something like:

 sed -e 's@general;/usr/lib[64]*/lib[a-z0-9]\+.so;@@' VTKLibraryDepends.cmake

to remove any link to /usr/lib/lib* files.

I have not found how to run this sed expression multiple times on the same line.

This would solve bug #561396

HTH
-- 
Mathieu




Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Mon, 17 May 2010 19:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Denis Barbier <bouzim@gmail.com>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Mon, 17 May 2010 19:45:03 GMT) Full text and rfc822 format available.

Message #20 received at 561396@bugs.debian.org (full text, mbox):

From: Denis Barbier <bouzim@gmail.com>
To: 561396@bugs.debian.org
Cc: Dominique Belhachemi <domibel@cs.tu-berlin.de>, Mathieu Malaterre <mathieu.malaterre@gmail.com>
Subject: Re:
Date: Mon, 17 May 2010 21:43:27 +0200
On 2010/5/17 Mathieu Malaterre wrote:
> Since VTK is in pretty good shape I'd like to introduce the same hack
> I used in GDCM, to clean the VTKLibraryDepends.cmake file.
>
> I am thinking in running something like:
>
>  sed -e 's@general;/usr/lib[64]*/lib[a-z0-9]\+.so;@@' VTKLibraryDepends.cmake
>
> to remove any link to /usr/lib/lib* files.
>
> I have not found how to run this sed expression multiple times on the same line.
>
> This would solve bug #561396

I fully agree, but it won't help here, your regexp does not catch
/usr/lib/jvm/default-java/jre/lib/*/libjawt.so
You may try instead
  sed -e 's@general;/usr/[^;]*\.so;@@g' VTKLibraryDepends.cmake
Is this file needed at all on Debian systems?

Denis




Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Mon, 17 May 2010 20:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Mon, 17 May 2010 20:09:03 GMT) Full text and rfc822 format available.

Message #25 received at 561396@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Denis Barbier <bouzim@gmail.com>
Cc: 561396@bugs.debian.org, Dominique Belhachemi <domibel@cs.tu-berlin.de>
Subject: Re:
Date: Mon, 17 May 2010 22:07:13 +0200
On Mon, May 17, 2010 at 9:43 PM, Denis Barbier <bouzim@gmail.com> wrote:
> On 2010/5/17 Mathieu Malaterre wrote:
>> Since VTK is in pretty good shape I'd like to introduce the same hack
>> I used in GDCM, to clean the VTKLibraryDepends.cmake file.
>>
>> I am thinking in running something like:
>>
>>  sed -e 's@general;/usr/lib[64]*/lib[a-z0-9]\+.so;@@' VTKLibraryDepends.cmake
>>
>> to remove any link to /usr/lib/lib* files.
>>
>> I have not found how to run this sed expression multiple times on the same line.
>>
>> This would solve bug #561396
>
> I fully agree, but it won't help here, your regexp does not catch
> /usr/lib/jvm/default-java/jre/lib/*/libjawt.so
> You may try instead
>  sed -e 's@general;/usr/[^;]*\.so;@@g' VTKLibraryDepends.cmake
> Is this file needed at all on Debian systems?

Yes ! See for instance use-case:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579642

cmake does not use pkgconfig and such but instead read this kind of
file to track dependant library (which is really only usefull for
static lib...).

Dominique/Maitland any suggestion for the patch ?

Thanks,
-- 
Mathieu




Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Mon, 17 May 2010 20:48:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dominique Belhachemi <domibel@cs.tu-berlin.de>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Mon, 17 May 2010 20:48:05 GMT) Full text and rfc822 format available.

Message #30 received at 561396@bugs.debian.org (full text, mbox):

From: Dominique Belhachemi <domibel@cs.tu-berlin.de>
To: 561396@bugs.debian.org
Subject: Re: Bug#561396:
Date: Mon, 17 May 2010 16:37:36 -0400
Shall we better ask some CMake people? This is more a general CMake
issue than a VTK issue. Or how does the KDE team deal with this?

Dominique





Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Mon, 17 May 2010 21:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Denis Barbier <bouzim@gmail.com>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Mon, 17 May 2010 21:30:05 GMT) Full text and rfc822 format available.

Message #35 received at 561396@bugs.debian.org (full text, mbox):

From: Denis Barbier <bouzim@gmail.com>
To: Mathieu Malaterre <mathieu.malaterre@gmail.com>, 561396@bugs.debian.org
Cc: Dominique Belhachemi <domibel@cs.tu-berlin.de>
Subject: Re: Bug#561396:
Date: Mon, 17 May 2010 23:27:40 +0200
On 2010/5/17 Mathieu Malaterre wrote:
> On Mon, May 17, 2010 at 9:43 PM, Denis Barbier <bouzim@gmail.com> wrote:
[...]
>> You may try instead
>>  sed -e 's@general;/usr/[^;]*\.so;@@g' VTKLibraryDepends.cmake
>> Is this file needed at all on Debian systems?
>
> Yes ! See for instance use-case:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579642

This is a different issue; it is caused by overlinking, it would not
hurt to have an empty VTKLibraryDepends.cmake

> cmake does not use pkgconfig and such but instead read this kind of
> file to track dependant library (which is really only usefull for
> static lib...).

Information about needed libraries are already embedded within ELF
shared objects.
BTW I just tried and have been able to build gdcm package after
  echo > /usr/lib/vtk-5.4/VTKLibraryDepends.cmake

Denis




Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Tue, 18 May 2010 03:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dominique Belhachemi <domibel@cs.tu-berlin.de>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Tue, 18 May 2010 03:06:03 GMT) Full text and rfc822 format available.

Message #40 received at 561396@bugs.debian.org (full text, mbox):

From: Dominique Belhachemi <domibel@cs.tu-berlin.de>
To: 561396@bugs.debian.org
Subject: Re: Bug#561396:
Date: Mon, 17 May 2010 23:01:28 -0400
The following is taken from http://www.itk.org/Wiki/CMake_FAQ

------------------------------------------------------------------------
Why are libraries linked to my shared library included when something links to it? 

This question arises when one has a library B which links to some
library A. When a third target, say C, links to B, CMake will
automatically include C to A also. When the libraries are static, then
this is always necessary. When the libraries are shared, this is the
default behavior provided by CMake. CMake 2.6 and above provide the
target property
"LINK_INTERFACE_LIBRARIES"
(http://www.cmake.org/HTML/cmake-2.6.html#prop_tgt:LINK_INTERFACE_LIBRARIES) to specify
the libraries that should be transitively included in the link by CMake. CMake 2.4 and
below do not support the property.

Something like the following will work in CMake 2.6:

set_target_properties(mylibrary
      PROPERTIES
      LINK_INTERFACE_LIBRARIES ""
  )
------------------------------------------------------------------------

This seems the way to go...

Cheers
Dominique






Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Wed, 19 May 2010 08:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Wed, 19 May 2010 08:15:04 GMT) Full text and rfc822 format available.

Message #45 received at 561396@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Denis Barbier <bouzim@gmail.com>
Cc: 561396@bugs.debian.org, Dominique Belhachemi <domibel@cs.tu-berlin.de>
Subject: Re: Bug#561396:
Date: Wed, 19 May 2010 10:12:42 +0200
On Mon, May 17, 2010 at 11:27 PM, Denis Barbier <bouzim@gmail.com> wrote:
> On 2010/5/17 Mathieu Malaterre wrote:
>> On Mon, May 17, 2010 at 9:43 PM, Denis Barbier <bouzim@gmail.com> wrote:
> [...]
>>> You may try instead
>>>  sed -e 's@general;/usr/[^;]*\.so;@@g' VTKLibraryDepends.cmake
>>> Is this file needed at all on Debian systems?
>>
>> Yes ! See for instance use-case:
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579642
>
> This is a different issue; it is caused by overlinking, it would not
> hurt to have an empty VTKLibraryDepends.cmake

Yes it would, I believe you prepared the patch for VTK a while back.

>> cmake does not use pkgconfig and such but instead read this kind of
>> file to track dependant library (which is really only usefull for
>> static lib...).
>
> Information about needed libraries are already embedded within ELF
> shared objects.
> BTW I just tried and have been able to build gdcm package after
>  echo > /usr/lib/vtk-5.4/VTKLibraryDepends.cmake

I think Brad King rejected your patch because you were not propagating
vtkCommon or vtksys as an automatic dep.

So if you have an empty /usr/lib/vtk-5.4/VTKLibraryDepends.cmake, you
should be able to produce a simple example that does:

add_executable(bla bla.cxx)
target_link_libraries(bla vtkFiltering) # cmake will pull
vtkCommon/vtksys dep automatically.

In this case you can produce a different behavior for an installed
tree VTK vs a build tree VTK.

HTH
-- 
Mathieu




Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#561396; Package libvtk-java. (Wed, 19 May 2010 08:57:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Denis Barbier <bouzim@gmail.com>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). (Wed, 19 May 2010 08:57:06 GMT) Full text and rfc822 format available.

Message #50 received at 561396@bugs.debian.org (full text, mbox):

From: Denis Barbier <bouzim@gmail.com>
To: 561396@bugs.debian.org
Subject: Re: Bug#561396:
Date: Wed, 19 May 2010 10:55:03 +0200
On 2010/5/19 Mathieu Malaterre wrote:
[...]
>> Information about needed libraries are already embedded within ELF
>> shared objects.
>> BTW I just tried and have been able to build gdcm package after
>>  echo > /usr/lib/vtk-5.4/VTKLibraryDepends.cmake
>
> I think Brad King rejected your patch because you were not propagating
> vtkCommon or vtksys as an automatic dep.

I do not remember exactly and will read those mails again, but please
note that our situation is very different from upstream: we do not
support static linking (there is no static library in libvtk5-dev),
and we already have transitive linking via the ELF format, so IMHO
VTKLibraryDepends.cmake may be different from upstream.

> So if you have an empty /usr/lib/vtk-5.4/VTKLibraryDepends.cmake, you
> should be able to produce a simple example that does:
>
> add_executable(bla bla.cxx)
> target_link_libraries(bla vtkFiltering) # cmake will pull
> vtkCommon/vtksys dep automatically.
>
> In this case you can produce a different behavior for an installed
> tree VTK vs a build tree VTK.

Sorry, I do not understand your test case, it seems to work just fine here:
  sudo sed -i -e 's/^/#/' /usr/lib/vtk-5.4/VTKLibraryDepends.cmake
  echo 'int main() { }'  > B.cxx
  echo 'FIND_PACKAGE(VTK REQUIRED)
  ADD_EXECUTABLE(B B.cxx)
  TARGET_LINK_LIBRARIES(B vtkFiltering)' > CMakeLists.txt
  cmake .
  make
  ldd B | grep vtk
	libvtkFiltering.so.5.4 => /usr/lib/libvtkFiltering.so.5.4 (0xb7448000)
	libvtkCommon.so.5.4 => /usr/lib/libvtkCommon.so.5.4 (0xb6f81000)
	libvtksys.so.5.4 => /usr/lib/libvtksys.so.5.4 (0xb6f4c000)

Denis




Information forwarded to debian-bugs-dist@lists.debian.org, A. Maitland Bottoms <bottoms@debian.org>:
Bug#561396; Package libvtk-java. (Wed, 07 Dec 2011 15:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to A. Maitland Bottoms <bottoms@debian.org>. (Wed, 07 Dec 2011 15:09:04 GMT) Full text and rfc822 format available.

Message #55 received at 561396@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: 561396@bugs.debian.org
Date: Wed, 7 Dec 2011 16:05:48 +0100
Still the same issue in vtk 5.8.0:


$ grep jawt /usr/lib/vtk-5.8/*.cmake
/usr/lib/vtk-5.8/VTKConfig.cmake:SET(VTK_JAVA_AWT_LIBRARY
"/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so")
/usr/lib/vtk-5.8/VTKTargets-debug.cmake:
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
"vtkGraphics;vtkFilteringJava;/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so"
/usr/lib/vtk-5.8/VTKTargets-debug.cmake:
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
"vtkRendering;vtkGraphicsJava;vtkImagingJava;/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so"
/usr/lib/vtk-5.8/VTKTargets-debug.cmake:
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
"vtkCharts;vtkViewsJava;/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so"

simply making libvtk5-dev depends on default-jdk will solve this
issue. Of maybe libvtk-java should be enough as people know they need
to install libvtk-java to get the java binding.

The issue will be when people install directly openjdk without the
default-jdk symlink, in this case

/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so

will not exist, but

/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/libjawt.so

will...




Changed Bug submitter to 'Mathieu Malaterre <malat@debian.org>' from 'Mathieu Malaterre <mathieu.malaterre@gmail.com>' Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Wed, 28 Mar 2012 13:54:45 GMT) Full text and rfc822 format available.

Marked as found in versions libvtk-java/5.8.0-11. Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Mon, 14 May 2012 11:45:57 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, A. Maitland Bottoms <bottoms@debian.org>:
Bug#561396; Package libvtk-java. (Mon, 14 May 2012 12:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <malat@debian.org>:
Extra info received and forwarded to list. Copy sent to A. Maitland Bottoms <bottoms@debian.org>. (Mon, 14 May 2012 12:03:18 GMT) Full text and rfc822 format available.

Message #64 received at 561396@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <malat@debian.org>
To: 561396@bugs.debian.org
Date: Mon, 14 May 2012 13:57:34 +0200
begin mind dump.

I am not very keen in leaving this full path
/usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so within the vtk
package. What this means is that it wont be usable with other java
implementation (gcj, openjpeg1.6/1.7, sun...).

I also do not understand why cmake would put a private library in the
dependency list. This lib only provide the implementation for
JAWT_GetAWT.

So we should either be doing an implementation specific java package,
eg libvtk-openjdk16-java to make it clear for user. Or we should get
rid of this dep using suggestion from -say-

http://bugs.debian.org/561396#40

2cts




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 11:07:48 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.