Can't install j2re1.4 packages built by make-jpkg in Hardy due to conflict with xulrunner-1.9

Bug #243469 reported by David Symons on 2008-06-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
java-package (Ubuntu)
Cedric Pineau
xulrunner-1.9 (Ubuntu)

Bug Description

Binary package hint: java-package

Bug 241238 led to the addition of "Conflicts: j2re1.4" to Ubuntu's xulrunner-1.9 package. This means that j2re1.4 packages built by make-jpkg can't be installed in Ubuntu Hardy (well they can, but not without major ramifications). I discussed this with Alexander Sack on IRC:

06:51 < asac> bimberi: we could bump the version of the make-jpkg produced packages by adding an epoch
06:51 < asac> and then open it up again for version higher than that
06:52 < asac> bimberi: the conflict was was to preven tinstallation of the j2re thing in the archive
06:52 < asac> the fact that make-jpkg is just an unfortunate side-effect
06:55 < bimberi> asac: Right. Well, as you requested, I'll have a go at it. I guess the idea is to patch make-jpkg so that it doesn't make packages called
06:57 < asac> bimberi: well. that would one approach
06:57 < asac> bimberi: the other ... most likely more sensible approach is to bump the version used in the package
06:57 < asac> bimberi:
06:57 < asac> thats how changelog is currently created in
06:58 < asac> that needs to be fixes so the version in brackets reads: "(1:$j2se_version)"
06:58 < asac> and make the conflict of xulrunner-1.9 << 1:
06:59 < asac> makes sense?
07:00 < bimberi> Indeed it does. That's sortof what I meant :) . I can have a go at that
07:00 < asac> bimberi: yes, fix the java-package and provide a patch
07:01 < asac> i can then take care of xulrunner conflict
07:01 < asac> (java-package is the source that provides make-jpkg)
07:04 < bimberi> Righto.

David Symons (bimberi) on 2008-06-27
Changed in java-package:
assignee: nobody → bimberi
David Symons (bimberi) wrote :

debdiff attached.

Changed in java-package:
status: New → In Progress
David Symons (bimberi) wrote :
description: updated
David Symons (bimberi) wrote :

I successfully built a sun-j2re1.4 package with the patched java-package. It conflicted with xulrunner-1.9 as expected (as it provides j2re1.4).

Tried again with a rebuilt xulrunner-1.9 with "Conflicts: j2re1.4 (<< 1)" and the sun-j2re1.4 installs fine.

Alexander Sack (asac) wrote :

is 1 really right? not 1: ?

Alexander Sack (asac) wrote :

to check that, please ensure that it still conflicts with the old j2re binaries from the archive ... for which that conflict was initially introduced.

Alexander Sack (asac) wrote :

in turn, adding xulrunner-1.9 package to the loop as we probably need to tune the versioned conflict there.

Changed in xulrunner-1.9:
importance: Undecided → Medium
status: New → In Progress
David Symons (bimberi) wrote :

I built a xulrunner-1.9 with "Conflicts: j2re1.4 (<< 1:0)" and got the following results when trying to install various j2re1.4 packages:

Firstly the package downloaded from the Ubuntu archive:
$ sudo dpkg -i j2re1.4_1.4.2.02-1ubuntu3_i386.deb
Selecting previously deselected package j2re1.4.
dpkg: regarding j2re1.4_1.4.2.02-1ubuntu3_i386.deb containing j2re1.4:
 xulrunner-1.9 conflicts with j2re1.4 (<< 1:0)
  j2re1.4 (version is to be installed. xu
dpkg: error processing j2re1.4_1.4.2.02-1ubuntu3_i386.deb (--install):
 conflicting packages - not installing j2re1.4
Errors were encountered while processing:

Then the package built using make-jpkg from the patched java-package:
$ sudo dpkg -i sun-j2re1.4_1.4.2+17_i386.deb
(Reading database ... 291495 files and directories currently installed.)
Preparing to replace sun-j2re1.4 1:1.4.2+17 (using sun-j2re1.4_1.4.2+17_i386.deb) ...
Unpacking replacement sun-j2re1.4 ...
Setting up sun-j2re1.4 (1:1.4.2+17) ...

Which is the desired result. Archive packages still conflict, built packages can be installed.

David Symons (bimberi) wrote :

Oh I should add that sun-j2re1.4 *provides* j2re1.4 so it would conflict without the epoch:

$ dpkg -s sun-j2re1.4 | grep Provides
Provides: j2re1.4, java-browser-plugin, java-runtime, java-virtual-machine, java2-runtime

Again, all good :-) .

Changed in java-package:
assignee: bimberi → nobody
David Symons (bimberi) wrote :

Another test:

$ dpkg -s xulrunner-1.9 | grep Conflicts
Conflicts: j2re1.4 (<< 1:~)

Same results, Archive package (j2se1.4) won't install, built package installs.

Cedric Pineau (cedric-pineau) wrote :

java-package 0.50 does not support jdk older than oracle-java-6u1 and Provides should have been fixed.


Changed in java-package (Ubuntu):
assignee: nobody → Cedric Pineau (cedric-pineau)
status: In Progress → Fix Released
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in xulrunner-1.9 (Ubuntu):
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers