Bug#289245: marked as done (java-package: alternatives not removed when sun-j2sdk* is removed)

Debian Bug Tracking System owner@bugs.debian.org
Tue Jan 25 02:43:01 2005


Your message dated Tue, 25 Jan 2005 04:17:14 -0500
with message-id <E1CtMp0-0000Ud-00@newraff.debian.org>
and subject line Bug#289245: fixed in java-package 0.19
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Jan 2005 00:38:12 +0000
>From sihde@cs.stanford.edu Fri Jan 07 16:38:12 2005
Return-path: <sihde@cs.stanford.edu>
Received: from dsl081-048-014.sfo1.dsl.speakeasy.net (mail.hamachi.us) [64.81.48.14] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cn4cO-000474-00; Fri, 07 Jan 2005 16:38:12 -0800
Received: by mail.hamachi.us (Postfix, from userid 2513)
	id 86D2D38136; Fri,  7 Jan 2005 16:38:11 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Steven Ihde <sihde@cs.stanford.edu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: java-package: alternatives not removed when sun-j2sdk* is removed
X-Mailer: reportbug 3.5
Date: Fri, 07 Jan 2005 16:38:11 -0800
Message-Id: <20050108003811.86D2D38136@mail.hamachi.us>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: java-package
Version: 0.18
Severity: normal

When removing a java package built by make-jpkg (e.g., "apt-get remove
sun-j2sdk1.4"), the alternatives installed by the package are not
removed.  Here's what is supposed to happen:

/var/lib/dpkg/info/sun-j2sdk1.4debian.prerm calls
/usr/share/j2sdk1.4-sun/debian/remove, which calls 
update-alternatives to actually remove the alternatives.

However, the first thing /usr/share/j2sdk1.4-sun/debian/remove does is
check for existence of /usr/lib/j2sdk1.4-sun/debian/info.  This file
is part of sun-j2sdk1.4, not sun-j2sdk1.4debian, and has already been
removed at this point.  Thus, no alternatives are ever removed.

While investigating this I noted that sun-j2sdk1.4 and
sun-j2sdk1.4debian each depend on the other.  This seems unnecessarily
complicated, and in a way is the cause of the problem: I don't know
how apt-get decides in what order to run the postinst and prerm
scripts given the circular dependency.  Apparently (in my case at
least) it picks correctly on the install (sun-j2sdk1.4 is installed
before sun-j2sdk1.4debian, so the install script finds
/usr/lib/j2sdk1.4-sun/debian/info and creates the alternatives), but
picks incorrectly when removing (sun-j2sdk1.4 is removed before
sun-j2sdk1.4debian, so the alternatives are not removed).

I suppose a workaround is to use dpkg to remove these packages
(removing the debian package before the main package), but it would be
nice if this worked with apt-get.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (890, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-hamachi
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages java-package depends on:
ii  debhelper                     4.2.28     helper programs for debian/rules

-- no debconf information

---------------------------------------
Received: (at 289245-close) by bugs.debian.org; 25 Jan 2005 09:23:21 +0000
>From katie@ftp-master.debian.org Tue Jan 25 01:23:21 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CtMuv-0001vZ-00; Tue, 25 Jan 2005 01:23:21 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CtMp0-0000Ud-00; Tue, 25 Jan 2005 04:17:14 -0500
From: Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
To: 289245-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#289245: fixed in java-package 0.19
Message-Id: <E1CtMp0-0000Ud-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 25 Jan 2005 04:17:14 -0500
Delivered-To: 289245-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 8

Source: java-package
Source-Version: 0.19

We believe that the bug you reported is fixed in the latest version of
java-package, which is due to be installed in the Debian FTP archive:

java-package_0.19.dsc
  to pool/contrib/j/java-package/java-package_0.19.dsc
java-package_0.19.tar.gz
  to pool/contrib/j/java-package/java-package_0.19.tar.gz
java-package_0.19_all.deb
  to pool/contrib/j/java-package/java-package_0.19_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 289245@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeroen van Wolffelaar <jeroen@wolffelaar.nl> (supplier of updated java-package package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 25 Jan 2005 00:05:06 +0100
Source: java-package
Binary: java-package
Architecture: source all
Version: 0.19
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
Description: 
 java-package - utility for building Java(TM) 2 related Debian packages
Closes: 272972 273730 279653 284779 285405 289005 289006 289245 290879 291145 291161
Changes: 
 java-package (0.19) unstable; urgency=low
 .
   The "Joshua Kwan <joshk@debian.org> rocks!" release.
 .
   Joshua Kwan:
   * Unclutter Debian build system and rework package slightly so that
     *debian packages are not needed anymore. The necessary files will be
     included in the generated packages. (Closes: #291145, #289245, #284779)
   * Add support for Blackdown 1.4.2+01 build. (Closes: #285405)
   * Fix support for Sun 1.5.0 amd64 builds due to typo. (Closes: #290879)
   * Mozilla browser plugin name changed in 1.4.2 versions. Detect and correct.
     (Closes: #273730)
   * Use --block-size=1M instead of -BM. (Closes: #289005, #291161)
   * Disable support for Sun JDK 1.3 due to its dependencies on libraries
     that are simply not available anymore. (Closes: #272972)
   * Fix up short description a little bit.
   * Bump Standards-Version to 3.6.1 (no changes)
   * Be a bit more conservative with the real-root test.
   * Remove last j2se-package references.
   * Change Suggests on fakeroot to a Depends because it is worthless both
     as real root and as a normal user without fakeroot.
 .
   Jeroen van Wolffelaar:
   * Use DEBFULLNAME, DEBNAME and DEBEMAIL if available, and don't ask for
     those values in that case. (Closes: #279653)
   * Updated documentation regarding dropped Sun 1.3 support
   * Work around multiline df output caused by long device names
     (Closes: #289006)
   * Add Replaces: for the generated packages on their *debian counterparts
Files: 
 dd305ec8ea85f4152be164689a5373b5 768 contrib/misc optional java-package_0.19.dsc
 b79eb369035f1bef21f755da49dfbc5d 18069 contrib/misc optional java-package_0.19.tar.gz
 d69db3f15c85325f25735f61c6e5fb8a 16964 contrib/misc optional java-package_0.19_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Signed by Jeroen van Wolffelaar <jeroen@wolffelaar.nl>

iD8DBQFB9gmul2uISwgTVp8RAmCHAJ9hjMwIFC++p4KOD7O7UBcNaqgmQACeIDGJ
rgEzrZaA/9bSC4zet2lSHFE=
=uhom
-----END PGP SIGNATURE-----