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
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
java-package (Ubuntu)
Fix Released
Undecided
Cedric Pineau
xulrunner-1.9 (Ubuntu)
Invalid
Medium
Unassigned

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
                 j2re1.4??
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: http://paste.ubuntu.com/23198/
06:57 < asac> thats how changelog is currently created in j2se.sh
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)
Changed in java-package:
assignee: nobody → bimberi
Revision history for this message
David Symons (bimberi) wrote :

debdiff attached.

Changed in java-package:
status: New → In Progress
Revision history for this message
David Symons (bimberi) wrote :
description: updated
Revision history for this message
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.

Revision history for this message
Alexander Sack (asac) wrote :

is 1 really right? not 1: ?

Revision history for this message
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.

Revision history for this message
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
Revision history for this message
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 1.4.2.02-1ubuntu3) 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:
 j2re1.4_1.4.2.02-1ubuntu3_i386.deb

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.

Revision history for this message
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
Revision history for this message
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.

Revision history for this message
Cedric Pineau (cedric-pineau) wrote :

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

Cédric

Changed in java-package (Ubuntu):
assignee: nobody → Cedric Pineau (cedric-pineau)
status: In Progress → Fix Released
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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