Bug#743616: Adding sun-java 5,6-jdk in breaks / replaces forces removal of apt on oracle 7 and 8 package install
On Fri, Apr 04, 2014 at 06:36:53PM +1000, Bryan Cebuliak wrote:
> package: apt
>
> version: 1.0
Thanks for your bugreport.
> Why does oracle-java 7 and 8 installer from http://www.webupd8.org force
> a remove of apt 1.0 in Debian Sid if the Java apt binary is deprecated??
[..]
The older sun-java-{5,6}-jdk packages shiped a "apt" alternative for
their "annotation processing tool". This is why the breaks/replaces
was added.
This was also discussed in
https://bugs.edge.launchpad.net/ubuntu/+bug/1302736
Attached is a simple patch that make the replaces versionized and also
adds a versionized openjdk-6-jdk (which is against a very old version
so its probably not needed).
Cheers,
Michael
>From a75a293f19d315b491972b688747702e017a5625 Mon Sep 17 00:00:00 2001
From: Michael Vogt <mvo@ubuntu.com>
Date: Mon, 7 Apr 2014 08:18:14 +0200
Subject: [PATCH] make Replaces/Breaks for sun-java-{5,6}-jdk versionized and
add missing openjdk-6-jdk versionized breaks too (LP: #1302736)
Closes: #743616
---
debian/control | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 41c9529..ce43ac9 100644
--- a/debian/control
+++ b/debian/control
@@ -19,8 +19,8 @@ XS-Testsuite: autopkgtest
Package: apt
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${apt:keyring}, gnupg
-Replaces: manpages-pl (<< 20060617-3~), manpages-it (<< 2.80-4~), sun-java6-jdk, sun-java5-jdk
-Breaks: manpages-pl (<< 20060617-3~), manpages-it (<< 2.80-4~), sun-java6-jdk, sun-java5-jdk
+Replaces: manpages-pl (<< 20060617-3~), manpages-it (<< 2.80-4~), sun-java6-jdk (<< 6.24-1build0.8.04.1), sun-java5-jdk (<< 1.5.0-22-0ubuntu0.8.04), openjdk-6-jdk (<< 6b24-1.11-0ubuntu1)
+Breaks: manpages-pl (<< 20060617-3~), manpages-it (<< 2.80-4~), sun-java6-jdk (<< 6.24-1build0.8.04.1), sun-java5-jdk (<< 1.5.0-22-0ubuntu0.8.04), openjdk-6-jdk (<< 6b24-1.11-0ubuntu1)
Conflicts: python-apt (<< 0.7.93.2~)
Suggests: aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), apt-doc, python-apt
Description: commandline package manager
--
1.9.1
Reply to: