openjdk-6-jdk should depend on libxt-dev

Bug #254368 reported by أحمد المحمودي (Ahmed El-Mahmoudy)
4
Affects Status Importance Assigned to Milestone
OpenJDK
Triaged
Low
Unassigned

Bug Description

 affects openjdk
 subscribe ubuntu-java

 Hello,

  I think that openjdk-6-jdk should depend on libxt-dev, because the
  header file jawt_md.h provided by openjdk-6-jdk includes
  X11/Intrinsic.h, which is provded by libxt-dev package.

  I think this is the reason that swt-gtk
  (https://launchpad.net/ubuntu/+source/swt-gtk/3.4-1) fails to build in
  i386, *64 and lpia archs, yet it succeeds on powerpc arch (since
  default-jdk in powerpc arch depends on gcj's jdk).

--
 أحمد المحمودي (Ahmed El-Mahmoudy)
  Digital design engineer
  SySDSoft, Inc.
 GPG KeyID: 0x9DCA0B27 (@ subkeys.pgp.net)
 GPG Fingerprint: 087D 3767 8CAC 65B1 8F6C 156E D325 C3C8 9DCA 0B27

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

Hello,

  Matvey Kozhev did a workaround for swt-gtk package, to make it build against openjdk, what he did is that he added libxt-dev to swt-gtk's Build-depend field. Which I think is not the correct way to solve the problem, the problem is actually in openjdk-6-jdk that it is the one that should build-depend on libxt-dev since openjdk-6-jdk's jawt_md.h header is what #include's X11/Intrinsic.h.

Revision history for this message
Matthias Klose (doko) wrote :

I do not want to add this as a dependency for now. apparently openjdk-6-jdk is needed for a tomcat installation, and I don't want to require the x-stuff on such an installation. one possibility would be a new package which has this dependency (i.e. openjdk-6-jdk-cni?)

Changed in openjdk:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Or as already discussed in some other bug create a jdk-headless package and let tomcat depend on that.

Revision history for this message
Thierry Carrez (ttx) wrote :

Tomcat 6 (libtomcat6-java) depends on "default-jre-headless | java6-runtime-headless" so it shouldn't be affected if the depend was added to the openjdk-6-jdk package ?

I'm working to fix Tomcat 5.5 so that it depends on "default-jre-headless | java2-runtime-headless" so it shouldn't be affected either.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Thierry,

Doesn't tomcat need java compiler to compile JSP files?

Revision history for this message
Thierry Carrez (ttx) wrote :

Onkar:
Tomcat uses the eclipse compiler JAR (in libecj-java) together with headless JRE to provide JSP compiling features. So it doesn't need a full JDK.

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

Hello,

  I see that libxt-dev is in Recommends now, I'm not sure if that is good enough or what. So is this bug closed or what ?

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote :

I see that tomcat5.5 now depends on "default-jre-headless | java6-runtime-headless" as Thierry suggested, so couldn't libxt-dev be added to Depends of openjdk-6-jdk now ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.