NetBSD Problem Report #51465
From he@smistad.uninett.no Fri Sep 9 11:45:24 2016
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(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 BD0097A26F
for <gnats-bugs@gnats.NetBSD.org>; Fri, 9 Sep 2016 11:45:24 +0000 (UTC)
Message-Id: <20160909114518.0780F43EA58@smistad.uninett.no>
Date: Fri, 9 Sep 2016 13:45:18 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: "pkgin: empty non-autoremovable package list" error message unhelpful
X-Send-Pr-Version: 3.95
>Number: 51465
>Category: pkg
>Synopsis: "pkgin: empty non-autoremovable package list" error message unhelpful
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jperkin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 09 11:50:00 +0000 2016
>Closed-Date: Tue Sep 05 05:55:13 +0000 2023
>Last-Modified: Tue Sep 05 05:55:13 +0000 2023
>Originator: he@NetBSD.org
>Release: NetBSD 6.1
>Organization:
None
>Environment:
System: NetBSD stats3..... 6.1_STABLE NetBSD 6.1_STABLE (SD_VMT_TWEAK) #0: Mon Aug 22 17:31:39 CEST 2016 root@stats......:/b/obj/sys/arch/i386/compile/SD_VMT_TWEAK i386
Architecture: i386
Machine: i386
>Description:
I'm using "pkgin" and binary packages for upgrade.
It appears that in certain situations when doing "pkgin
full-upgrade", pkgin can end up emitting this error message:
pkgin: empty non-autoremovable package list
For a naive system administrator this message may appear quite
meaningless, and it gives no hint as to what might be the
actual root cause of this problem -- whether it's a particular
package which is installed (which one?) which causes the
problem or ...
As it turns out, this problem appears to be fixable with
either "pkg_admin rebuild" and/or "pkg_admin rebuild-tree",
ref.:
stats3# pkgin up
processing remote summary (http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.1/All)...
pkg_summary.bz2 100% 2006KB 200.6KB/s 22.1KB/s 00:10
stats3# pkgin fug
pkgin: empty non-autoremovable package list
stats3# pkg_admin rebuild
Stored 37911 files and 9 explicit directories from 227 packages in /var/db/pkg/pkgdb.byfile.db.
Done.
stats3# pkg_admin rebuild-tree
Done.
stats3# pkgin fug
reading local summary...
processing local summary...
calculating dependencies... done.
6 packages to be upgraded:
php56-gd-5.6.24 php56-bcmath-5.6.24 ap24-php56-5.6.24 python27-2.7.11nb2 php-5.6.24 apache-2.4.23
6 packages to be installed (31M to download, 577K to install):
python27-2.7.12 php-5.6.25 apache-2.4.23nb2 php56-gd-5.6.25 php56-bcmath-5.6.25 ap24-php56-5.6.25
proceed ? [Y/n] y
downloading packages...
...
However, there is nothing in the error message which suggests
this might be the problem. The error message is therefore
... unhelpful and should most probably be improved.
>How-To-Repeat:
See above.
I'm not entirely certain what brought me into this situation;
it's conceivable it's a consequence of an earlier "pkgin fug".
>Fix:
Improve error message, hint at dependency database rebuild?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 09 Sep 2016 12:30:52 +0000
Responsible-Changed-Why:
Over to maintainer
Responsible-Changed-From-To: imil->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 02 Apr 2018 09:34:47 +0000
Responsible-Changed-Why:
imil observes
Responsible-Changed-From-To: pkg-manager->jperkin
Responsible-Changed-By: jperkin@NetBSD.org
Responsible-Changed-When: Tue, 03 Apr 2018 14:32:28 +0000
Responsible-Changed-Why:
I'll take this.
From: "Jonathan Perkin" <jperkin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51465 CVS commit: pkgsrc/pkgtools/pkgin
Date: Wed, 16 Aug 2023 17:19:55 +0000
Module Name: pkgsrc
Committed By: jperkin
Date: Wed Aug 16 17:19:55 UTC 2023
Modified Files:
pkgsrc/pkgtools/pkgin: Makefile distinfo
Log Message:
pkgin: Update to 23.8.0.
## Version 23.8.0 (2023-08-16)
This is the biggest overhaul of pkgin yet! As well as fixing many bugs, pkgin
23.8.0 runs "pkgin -n upgrade" over 2,000x faster on a test system with 12,663
packages installed compared to 22.10.0 (1.4 seconds vs over 54 minutes).
* Large overhaul of dependency resolution code, fixing many upgrade issues,
providing significant performance improvements, and improving code and
logic readability.
* Add support for SUPERSEDES.
* Fix install and removal ordering.
* Improve and fix handling of "keep" packages, using "pkg_add -A" to
correctly install automatic packages rather than applying keep or unkeep
flags afterwards.
* Output improvements, sorting packages alphabetically and providing a
simple progress counter. Fix unwanted output that could end up mixed
with package paths in "pkgin export".
* Correct handling of +REQUIRED_BY for reverse dependencies, fixing
DEPENDS that use alternate matches.
* Many internal code improvements, memory leaks plugged, and compiler
warnings eradicated.
Fixes at least the following issues:
* NetBSDfr/pkgin#10
* NetBSDfr/pkgin#44
* NetBSDfr/pkgin#79
* NetBSDfr/pkgin#95
* NetBSDfr/pkgin#97
* NetBSDfr/pkgin#110
* NetBSDfr/pkgin#113
* NetBSDfr/pkgin#128
* NetBSD PR#51465
* NetBSD PR#56683
To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 pkgsrc/pkgtools/pkgin/Makefile
cvs rdiff -u -r1.77 -r1.78 pkgsrc/pkgtools/pkgin/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: jperkin@NetBSD.org
State-Changed-When: Tue, 05 Sep 2023 05:55:13 +0000
State-Changed-Why:
Should be fixed in 23.8.0.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.