NetBSD Problem Report #47196

From ignatios@cs.uni-bonn.de  Thu Nov 15 13:03:54 2012
Return-Path: <ignatios@cs.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 1FFC463E7EA
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Nov 2012 13:03:54 +0000 (UTC)
Message-Id: <1352984580.752080.10360.nullmailer@jaguar-alpha.cs.uni-bonn.de>
Date: Thu, 15 Nov 2012 14:03:00 +0100
From: ignatios@cs.uni-bonn.de
Reply-To: ignatios@cs.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgin prefers firefox10-10.0.9 over firefox10-10.0.10
X-Send-Pr-Version: 3.95

>Number:         47196
>Category:       pkg
>Synopsis:       pkgin prefers firefox10-10.0.9 over firefox10-10.0.10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    imil
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 15 13:05:00 +0000 2012
>Closed-Date:    Wed Jan 16 20:42:24 +0000 2013
>Last-Modified:  Wed Jan 16 20:42:24 +0000 2013
>Originator:     ignatios@cs.uni-bonn.de
>Release:        NetBSD 6.0_RC2
>Organization:
computer science department, university of Bonn, Germany
>Environment:


System: NetBSD jaguar-alpha 6.0_RC2 NetBSD 6.0_RC2 (XEN3PAE_DOMU) #8: Thu Sep 27 17:08:35 CEST 2012 ignatios@random84.cs.uni-bonn.de:/var/itch/sources/6.0/oi386/sys/arch/i386/compile/XEN3PAE_DOMU i386
pkgin-0.6.0          Apt / yum like tool for managing pkgsrc binary packages
full dependency tree for pkgin-0.6.0
	pkg_install>=20110215

Architecture: i386
Machine: i386
>Description:
# pkgin av | grep firefox10
firefox10-10.0.10    Web browser with support for extensions
firefox10-10.0.5nb1  Web browser with support for extensions
firefox10-10.0.9     Web browser with support for extensions

-> pkgin installs 10.0.9

# pkgin av | grep thunderbird10
thunderbird10-10.0.10 Organize, secure and customize your mail
thunderbird10-10.0.5nb1 Organize, secure and customize your mail
# pkgin in thunderbird10
calculating dependencies... done.
nothing to do.
jaguar-alpha# pkgin in thunderbird10-10.0.10
calculating dependencies... done.

1 packages to be upgraded: thunderbird10-10.0.6nb1

1 packages to be installed: thunderbird10-10.0.10 (116M to download, 0B to install)

proceed ? [Y/n] 
>How-To-Repeat:
prepare a binary package repository with firefox/thunderbird10.0.10 and an 
earlier centiversion of it. pkgin will prefer the earlier version unless
forced to use 10.0.10.

>Fix:
Unknown... Guess (but pure speculation - I didn't read the code):
Maybe use pkgtools' generic decimal comparison routines instead of it's own?

Update, this issue is fixed in 0.6.2.2

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Fri, 16 Nov 2012 08:15:55 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->feedback
State-Changed-By: imil@NetBSD.org
State-Changed-When: Sat, 17 Nov 2012 14:17:27 +0000
State-Changed-Why:
That issue should be fixed with pkgin 0.6.2.2, could you try it ?


From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: imil@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/47196 (pkgin prefers firefox10-10.0.9 over firefox10-10.0.10)
Date: Mon, 19 Nov 2012 15:52:32 +0100

 On Sat, Nov 17, 2012 at 02:17:33PM +0000, imil@NetBSD.org wrote:

 > State-Changed-Why:
 > That issue should be fixed with pkgin 0.6.2.2, could you try it ?

 I tested this. Unfortunately, no change. Note the sorting order, which
 might or might not be relevant for the picking order, but is consistent:

 # pkg_info pkgin
 Information for pkgin-0.6.2.2nb2:
 (...)
 # pkgin av | egrep '(firefox|xulrunner)'
 firefox10-10.0.10    Web browser with support for extensions
 firefox10-10.0.5nb1  Web browser with support for extensions
 firefox10-10.0.9     Web browser with support for extensions
 xulrunner-13.0nb1    XML User Interface Language runtime environment
 xulrunner10-10.0.10  XML User Interface Language runtime environment
 xulrunner10-10.0.5nb1 XML User Interface Language runtime environment
 xulrunner10-10.0.9   XML User Interface Language runtime environment
 # pkgin in firefox10
 calculating dependencies... done.

 nothing to upgrade.
 2 packages to be installed: xulrunner10-10.0.9 firefox10-10.0.9 (0B to download, 95M to install)

 proceed ? [Y/n] 

 Regards,
 	-is

From: is@netbsd.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47196 (pkgin prefers firefox10-10.0.9 over firefox10-10.0.10)
Date: Sun, 9 Dec 2012 19:55:51 +0100

 For completeness: saw another problem of the instance today:

 pkgin-0.6.2.2nb1 prefers ghostscript-8.71nb8 over ghostscript-8.71nb10

State-Changed-From-To: feedback->open
State-Changed-By: is@NetBSD.org
State-Changed-When: Sun, 09 Dec 2012 19:35:47 +0000
State-Changed-Why:
Not fixed in 0.6.2.2


From: "Emile iMil Heitor" <imil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47196 CVS commit: pkgsrc/pkgtools/pkgin
Date: Fri, 14 Dec 2012 09:05:48 +0000

 Module Name:	pkgsrc
 Committed By:	imil
 Date:		Fri Dec 14 09:05:48 UTC 2012

 Modified Files:
 	pkgsrc/pkgtools/pkgin: Makefile distinfo

 Log Message:
 0.6.3
         PR3555339@sf (stacktic)
         Avoid negative speed when a download start (stacktic)
         PR47196 fixed by stacktic
         PR47060 fixed by stacktic
         Added show-no-keep by orgrim
         Fixed PR47192 (by stacktic)


 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 pkgsrc/pkgtools/pkgin/Makefile
 cvs rdiff -u -r1.24 -r1.25 pkgsrc/pkgtools/pkgin/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47196 (pkgin prefers firefox10-10.0.9 over firefox10-10.0.10)
Date: Sun, 13 Jan 2013 20:03:57 +0000

 (not sent to gnats)

    ------

 From: Ignatios Souvatzis <is@netbsd.org>
 To: pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
 Subject: Re: pkg/47196 (pkgin prefers firefox10-10.0.9 over firefox10-10.0.10)
 Date: Sun, 13 Jan 2013 18:46:19 +0100

 Another mishandled example:

 henrietta: {9} pkgin av | grep xtrs
 xtrs-4.9d            TRS-80 Model I/III/4 Emulator for Unix
 xtrs-4.9nb3          TRS-80 Model I/III/4 Emulator for Unix
 xtrs-4.9nb4          TRS-80 Model I/III/4 Emulator for Unix
 xtrs-4.9nb5          TRS-80 Model I/III/4 Emulator for Unix
 henrietta: {10} pkgin in xtrs
 calculating dependencies... done.

 nothing to upgrade.
 1 packages to be installed: xtrs-4.9nb5 (0B to download, 1083K to install)
 proceed ? [Y/n] 

 Note that ugprading works:

 henrietta: {11} pkgin fug
 [debug code]
 calculating dependencies... done.

 1 packages to be upgraded: xtrs-4.9nb5

 1 packages to be installed: xtrs-4.9d (323K to download, 11K to install)
 downloading packages...
 symlinking file:///var/itch/packages64.60/All/xtrs-4.9d.tgz...
 removing packages to be upgraded...
 removing xtrs-4.9nb5...
 pkg_install warnings: 0, errors: 0
 installing packages...
 installing xtrs-4.9d...
 pkg_install warnings: 0, errors: 0
 reading local summary...
 processing local summary...
 updating database: 100%
 henrietta: {12} 

 So the fug path and the install path use different selection criteria.

 	-is

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47196 (pkgin prefers firefox10-10.0.9 over firefox10-10.0.10)
Date: Sun, 13 Jan 2013 20:13:47 +0000

 On Sun, Jan 13, 2013 at 08:05:04PM +0000, David Holland wrote:
  >  Another mishandled example:

 Is that with 0.6.3 which was supposed to fix this problem?

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: is@NetBSD.org
State-Changed-When: Wed, 16 Jan 2013 20:42:24 +0000
State-Changed-Why:
Submitter confirms fixed, at least for the xtrs and the firefox10 cases.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.