NetBSD Problem Report #49152

From  Mon Aug 25 07:52:27 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 51976AF212
	for <>; Mon, 25 Aug 2014 07:52:27 +0000 (UTC)
Message-Id: <>
Date: Mon, 25 Aug 2014 07:52:26 +0000 (UTC)
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
NetBSD 6.1.4 NetBSD 6.1.4 (GENERIC) amd64

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.





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


NetBSD Home
NetBSD PR Database Search

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