NetBSD Problem Report #49152

From www@NetBSD.org  Mon Aug 25 07:52:27 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 51976AF212
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 25 Aug 2014 07:52:27 +0000 (UTC)
Message-Id: <20140825075226.16C55AF212@mollari.NetBSD.org>
Date: Mon, 25 Aug 2014 07:52:26 +0000 (UTC)
From: babafou@babafou.eu.org
Reply-To: babafou@babafou.eu.org
To: gnats-bugs@NetBSD.org
Subject: Sorting problem with pkg_chk -b
X-Send-Pr-Version: www-1.0

>Number:         49152
>Category:       pkg
>Synopsis:       Sorting problem with pkg_chk -b
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    abs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 25 07:55:01 +0000 2014
>Last-Modified:  Mon Aug 25 08:17:08 +0000 2014
>Originator:     Marc Baudoin
>Release:        pkgsrc-current
>Organization:
>Environment:
NetBSD shuttle.babafou.eu.org 6.1.4 NetBSD 6.1.4 (GENERIC) amd64

>Description:
I noticed some wrong behavior (can't tell if it's new or is it's been around for quite some time) in pkg_chk 2.0.8.

When two versions of a binary package are available, say
package-XXnb9 and packageXXnb10 or later (same package, same
version, only nb version differs and the newest one is greater or
equal to 10), pkg_chk -b installs nb9 and not the newest version.
It looks like it's using lexicographic order instead of numeric.

Same problem with package versions. When binary packages for (I just had the problem) subversion-base-1.8.9 and subversion-base-1.8.10 are available, pkg_chk -ab installs subversion-base-1.8.9.

See "Sorting problem with pkg_chk -b" thread in list pkgsrc-users.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Mon, 25 Aug 2014 08:17:08 +0000
Responsible-Changed-Why:
Over to maintainer.


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.