Bug#252309: marked as done (gjdoc: javadoc alternatives not created in postinst)

Debian Bug Tracking System owner@bugs.debian.org
Tue Jul 13 15:39:01 2004


Your message dated Tue, 13 Jul 2004 17:17:06 -0400
with message-id <E1BkUeA-0001pC-00@newraff.debian.org>
and subject line Bug#252309: fixed in gjdoc 0.6.1-11
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; 2 Jun 2004 17:03:02 +0000
>From lool@bee.dooz.org Wed Jun 02 10:03:02 2004
Return-path: <lool@bee.dooz.org>
Received: from smtp3.wanadoo.fr (mwinf0304.wanadoo.fr) [193.252.22.28] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BVZ8o-0005PY-00; Wed, 02 Jun 2004 10:03:02 -0700
Received: from bee.dooz.org (APuteaux-152-1-1-146.w82-127.abo.wanadoo.fr [82.127.1.146])
	by mwinf0304.wanadoo.fr (SMTP Server) with ESMTP
	id 8EFABA803B40; Wed,  2 Jun 2004 19:02:30 +0200 (CEST)
Received: by bee.dooz.org (Postfix, from userid 1000)
	id 1DCEBD4CA39; Wed,  2 Jun 2004 19:02:29 +0200 (CEST)
Content-Type: multipart/mixed; boundary="===============1060417075=="
MIME-Version: 1.0
From: Loic Minier <lool@dooz.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gjdoc: javadoc alternatives not created in postinst
X-Mailer: reportbug 2.61
Date: Wed, 02 Jun 2004 19:02:29 +0200
Message-Id: <20040602170229.1DCEBD4CA39@bee.dooz.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(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_2004_03_25
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============1060417075==
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="ISO-8859-15"
Content-Disposition: inline

Package: gjdoc
Version: 0.6.1-9
Severity: normal

 Hi,

 when installing gjdoc, the javadoc and javadoc.1.gz alternatives are
 not installed.

 these are only installed when upgrading from a previous version.

 I believe the problem is within:
    if ("dpkg" "--compare-versions" "${2} " "<<" "0.6.1"); then
        update-alternatives --remove javadoc /usr/bin/gjdoc;
    fi

 While the alternatives are correctly created, they're removed because
 ${2} is empty (no previous version available).

 I think the attached patch fixes this behavior.

   Regards,

-- 
Loïc Minier <lool@dooz.org>
-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.5-bee-2
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

Versions of packages gjdoc depends on:
ii  debhelper              4.2.10            helper programs for debian/rules
ii  kaffe                  2:1.1.4-3         A JVM to run Java bytecode
ii  libgnujaxp-java        0.0.cvs20040416-4 free implementation of jaxp api

-- no debconf information

--===============1060417075==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gjdoc.postinst.patch"

--- debian/gjdoc.postinst.old	2004-06-02 18:56:38.000000000 +0200
+++ debian/gjdoc.postinst	2004-06-02 19:00:45.000000000 +0200
@@ -8,8 +8,11 @@
         update-alternatives \
             --install /usr/bin/javadoc javadoc /usr/bin/gjdoc 350 \
             --slave $man/javadoc.1.gz javadoc.1.gz $man/gjdoc.1.gz
-	if ("dpkg" "--compare-versions" "${2} " "<<" "0.6.1"); then
-		update-alternatives --remove javadoc /usr/bin/gjdoc;
+	# is this a first install?
+	if [ "${2}" ]; then
+		if ("dpkg" "--compare-versions" "${2} " "<<" "0.6.1"); then
+			update-alternatives --remove javadoc /usr/bin/gjdoc;
+		fi
 	fi
 
     ;;

--===============1060417075==--

---------------------------------------
Received: (at 252309-close) by bugs.debian.org; 13 Jul 2004 21:19:35 +0000
>From katie@ftp-master.debian.org Tue Jul 13 14:19:34 2004
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 1BkUgY-0001Vy-00; Tue, 13 Jul 2004 14:19:34 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BkUeA-0001pC-00; Tue, 13 Jul 2004 17:17:06 -0400
From: Arnaud Vandyck <avdyk@debian.org>
To: 252309-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#252309: fixed in gjdoc 0.6.1-11
Message-Id: <E1BkUeA-0001pC-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 13 Jul 2004 17:17:06 -0400
Delivered-To: 252309-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(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_2004_03_25
X-Spam-Level: 

Source: gjdoc
Source-Version: 0.6.1-11

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

gjdoc_0.6.1-11.diff.gz
  to pool/main/g/gjdoc/gjdoc_0.6.1-11.diff.gz
gjdoc_0.6.1-11.dsc
  to pool/main/g/gjdoc/gjdoc_0.6.1-11.dsc
gjdoc_0.6.1-11_all.deb
  to pool/main/g/gjdoc/gjdoc_0.6.1-11_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 252309@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Arnaud Vandyck <avdyk@debian.org> (supplier of updated gjdoc 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, 13 Jul 2004 22:53:15 +0200
Source: gjdoc
Binary: gjdoc
Architecture: source all
Version: 0.6.1-11
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Arnaud Vandyck <avdyk@debian.org>
Description: 
 gjdoc      - Free drop-in replacement for Sun's "javadoc" written in java
Closes: 252309
Changes: 
 gjdoc (0.6.1-11) unstable; urgency=low
 .
   * javadoc alternative solved, applyed postinst patch, thanks to Loic
     Minier. (closes: #252309)
   * dh_javadoc: removed the generated gjdoc_rawcomment.cache file.
Files: 
 8416eabeadd6660823d57540130bce5e 769 devel optional gjdoc_0.6.1-11.dsc
 2decce97c32270b7e1f6fac472f1dcf9 11487 devel optional gjdoc_0.6.1-11.diff.gz
 4f29c3bdc7fe237e995959919e651cec 190368 devel optional gjdoc_0.6.1-11_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA9Ewx4vzFZu62tMIRAil9AJ0Q0tpp4EhbRru3zn9h8rW5a1JVVACdHeFY
Zmf9/6UqyVq/LV9Asv+k6CI=
=sRgR
-----END PGP SIGNATURE-----