file conflict installing libswt-gtk-3.5-java 3.5.1-0ubuntu1~ppa1

Bug #446155 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
In Progress
High
Niels Thykier

Bug Description

Binary package hint: eclipse

Entpacke Ersatz für libswt-gtk-3.5-java ...
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/libswt-gtk-3.5-java_3.5.1-0ubuntu1~ppa1_i386.deb (--unpack):
 Versuche, »/usr/lib/java/swt.jar« zu überschreiben, welches auch in Paket libswt3.4-gtk-java 0:3.4.1-1ubuntu1~ppa1 ist
Vorbereiten zum Ersetzen von libswt-gtk-3.5-jni 3.5.1-0~ubuntu1 (durch .../libswt-gtk-3.5-jni_3.5.1-0ubuntu1~ppa1_i386.deb) ...

at least for karmic, /usr/lib/java/swt.jar is provided by the swt-gtk 3.4 sources.

Related branches

Matthias Klose (doko)
Changed in eclipse (Ubuntu):
importance: Undecided → High
status: New → Triaged
summary: - file conflict installing libswt-gtk-3.5-java 3.5.1-0~ubuntu1
+ file conflict installing libswt-gtk-3.5-java 3.5.1-0ubuntu1~ppa1
Revision history for this message
Benjamin Drung (bdrung) wrote :

Would a simple conflict & replaces on libswt3.4-gtk-java resolve this issue?

Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 446155] Re: file conflict installing libswt-gtk-3.5-java 3.5.1-0ubuntu1~ppa1

On 08.10.2009 11:59, Benjamin Drung wrote:
> Would a simple conflict& replaces on libswt3.4-gtk-java resolve this
> issue?

no, not at this point. the packages are in main, not removable before release.
Maybe just ship the versioned jar for karmic.

$ apt-cache showsrc libswt-gtk-3.4-java
Package: swt-gtk
Binary: libswt-gtk-3.4-java, libswt-gtk-3.4-jni, libswt-gnome-gtk-3.4-jni,
libswt-mozilla-gtk-3.4-jni, libswt-cairo-gtk-3.4-jni, libswt-glx-gtk-3.4-jni,
libswt-gtk-3.4-java-gcj

Revision history for this message
Benjamin Drung (bdrung) wrote :

Ok, found it: swt-gtk uses update-alternatives to provide /usr/lib/java/swt.jar. So eclipse should use this mechanism, too.

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

On 08.10.2009 14:59, Benjamin Drung wrote:
> Ok, found it: swt-gtk uses update-alternatives to provide
> /usr/lib/java/swt.jar. So eclipse should use this mechanism, too.

so we use versioned packages to make the differences between libraries visible,
and then undo this by a local configuration option which is not easy to debug?

Removing the symlink to swt.jar; if we want to keep it, then it would be better
to build a dependency package containing this symlink.

Revision history for this message
Benjamin Drung (bdrung) wrote :

I have removed this link and uploaded eclipse 3.5.1-0ubuntu1~ppa2 to the PPA. I will release this version (with a propper changelog) to karmic, if the PPA version does not show new errors.

Changed in eclipse (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

not yet in karmic; please mention the report in the upload, and it will be closed automatically

Changed in eclipse (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eclipse - 3.5.1-0ubuntu2

---------------
eclipse (3.5.1-0ubuntu2) karmic; urgency=low

  * New snapshot from eclipse-build.
    - Apply GTK 2.18 z-order patch (LP: #443004).
  * Remove unversioned swt.jar link (LP: #446155).
  * Add wrapper script for setting LD_LIBRARY_PATH (LP: #445842).
  * Call remove with -f to fix FTBFS on powerpc.

 -- Benjamin Drung <email address hidden> Fri, 09 Oct 2009 21:41:39 +0200

Changed in eclipse (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Caglar Dursun (caglardursun) wrote :

You said "This bug was fixed in the package eclipse - 3.5.1-0ubuntu2 " but I have same problem ubuntu 9.10 and my update is the latest.Now, I can't use my eclipse anymore.

Revision history for this message
Niels Thykier (niels-thykier) wrote :

Hi Caglar

Thanks for the heads up - we will have a look at it.
~Niels

Changed in eclipse (Ubuntu):
assignee: nobody → Niels Thykier (niels-thykier)
status: Fix Released → In Progress
Revision history for this message
Benjamin Drung (bdrung) wrote :

We are tracking this issue in bug #491880 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.