Debian Bug report logs - #624726
latex-cjk-japanese-wadalab.preinst: misuses dpkg --compare-versions

version graph

Package: latex-cjk-japanese-wadalab; Maintainer for latex-cjk-japanese-wadalab is Debian TeX maintainers <debian-tex-maint@lists.debian.org>; Source for latex-cjk-japanese-wadalab is src:latex-cjk-japanese-wadalab (PTS, buildd, popcon).

Reported by: Jonathan Nieder <jrnieder@gmail.com>

Date: Sat, 30 Apr 2011 23:51:02 UTC

Severity: minor

Found in version latex-cjk-japanese-wadalab/0.20050817-15

Fixed in version 0.20050817-16

Done: Jonathan Nieder <jrnieder@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, lintian@packages.debian.org, Danai SAE-HAN (韓達耐) <danai@debian.org>:
Bug#624726; Package latex-cjk-japanese-wadalab. (Sat, 30 Apr 2011 23:51:05 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
New Bug report received and forwarded. Copy sent to lintian@packages.debian.org, Danai SAE-HAN (韓達耐) <danai@debian.org>. (Sat, 30 Apr 2011 23:51:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: submit@bugs.debian.org
Subject: latex-cjk-japanese-wadalab.preinst: misuses dpkg --compare-versions
Date: Sat, 30 Apr 2011 18:49:06 -0500
Package: latex-cjk-japanese-wadalab
Version: 0.20050817-15
Severity: minor
Justification: cosmetic

When installing latex-cjk-japanese-wadalab:

| (Reading database ... 152050 files and directories currently installed.)
| Preparing to replace latex-cjk-japanese-wadalab 0.20050817-15 (using .../latex-cjk-japanese-wadalab_0.20050817-15_all.deb) ...
| dpkg: error: version 'latex-cjk-japanese-wadalab_0.20050817-14' has bad syntax: version number does not start with digit
| Unpacking replacement latex-cjk-japanese-wadalab ...
| Setting up latex-cjk-japanese-wadalab (0.20050817-15) ...
| Running mktexlsr. This may take some time... done.
| Processing triggers for fontconfig ...
| Processing triggers for tex-common ...
| Running updmap-sys. This may take some time... done.
| Running mktexlsr /var/lib/texmf ... done.

I suspect future dpkg versions will change the conditions when that error
is emitted, but anyway, in this example it is pointing to a real bug:
"dpkg --compare-versions" wants a version number, which in this case would
be 0.20050817-14 rather than that longer string.

Perhaps this would be worth a lintian check?  Cc-ing the lintian
maintainers just in case.

The fix might be as simple as changing

    if dpkg --compare-versions "$2" le "latex-cjk-japanese-wadalab_0.20050817-14"; then

to

    if dpkg --compare-versions "$2" le "0.20050817-14"; then

or removing the conffile removal code in preinst altogether (who is
upgrading from such old versions?).

Thanks for keeping Debian working well in Japanese.

Regards,
Jonathan




Information forwarded to debian-bugs-dist@lists.debian.org, Danai SAE-HAN (韓達耐) <danai@debian.org>:
Bug#624726; Package latex-cjk-japanese-wadalab. (Sun, 01 May 2011 11:51:10 GMT) (full text, mbox, link).


Acknowledgement sent to Danai SAE-HAN (韓達耐) <danai.saehan@gmail.com>:
Extra info received and forwarded to list. Copy sent to Danai SAE-HAN (韓達耐) <danai@debian.org>. (Sun, 01 May 2011 11:51:17 GMT) (full text, mbox, link).


Message #10 received at 624726@bugs.debian.org (full text, mbox, reply):

From: Danai SAE-HAN (韓達耐) <danai.saehan@gmail.com>
To: Jonathan Nieder <jrnieder@gmail.com>, 624726@bugs.debian.org
Subject: Re: Bug#624726: latex-cjk-japanese-wadalab.preinst: misuses dpkg --compare-versions
Date: Sun, 1 May 2011 13:46:23 +0200
Hi Jonathan

Thank you for your bug report!  It has been a while since I last
checked this package with the current Debian release.
I will have a look at it this week.

Cheers

-- 
Danai




Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Mon, 14 May 2012 22:54:08 GMT) (full text, mbox, link).


Notification sent to Jonathan Nieder <jrnieder@gmail.com>:
Bug acknowledged by developer. (Mon, 14 May 2012 22:54:08 GMT) (full text, mbox, link).


Message #15 received at 624726-done@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Danai SAE-HAN (韓達耐) <danai.saehan@gmail.com>
Cc: 624726-done@bugs.debian.org
Subject: Re: latex-cjk-japanese-wadalab.preinst: misuses dpkg --compare-versions
Date: Mon, 14 May 2012 17:51:50 -0500
Version: 0.20050817-16

Danai SAE-HAN (韓達耐) wrote:

> Thank you for your bug report!  It has been a while since I last
> checked this package with the current Debian release.
> I will have a look at it this week.

Thank you.  I think this was fixed by r5264 (use maintscript to
remove both old updmap.d files, 2012-03-22).




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 12 Jun 2012 07:36:42 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 12:45:20 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.