NetBSD Problem Report #32790
From tron@colwyn.zhadum.org.uk Fri Feb 10 12:57:30 2006
Return-Path: <tron@colwyn.zhadum.org.uk>
Received: from colwyn.zhadum.org.uk (colwyn.zhadum.org.uk [81.187.181.119])
by narn.netbsd.org (Postfix) with ESMTP id 44CEC63B863
for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Feb 2006 12:57:29 +0000 (UTC)
Message-Id: <200602101257.k1ACvRaZ016851@colwyn.zhadum.org.uk>
Date: Fri, 10 Feb 2006 12:57:27 GMT
From: Matthias Scheler <tron@zhadum.org.uk>
Reply-To: tron@zhadum.org.uk
To: gnats-bugs@netbsd.org
Subject: "pkg_chk" uses binary packages when it shouldn't
X-Send-Pr-Version: 3.95
>Number: 32790
>Category: pkg
>Synopsis: "pkg_chk" uses binary packages when it shouldn't
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: abs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 10 13:00:00 +0000 2006
>Closed-Date:
>Last-Modified: Sun Jul 10 22:26:46 +0000 2022
>Originator: tron@zhadum.org.uk
>Release: NetBSD 3.0_STABLE, 2006-02-10 package sources, pkg_chk 1.67
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Environment:
System: NetBSD colwyn.zhadum.org.uk 3.0_STABLE NetBSD 3.0_STABLE (COLWYN) #1: Sat Dec 31 16:58:03 GMT 2005 tron@colwyn.zhadum.org.uk:/src/sys/compile/COLWYN i386
Architecture: i386
Machine: i386
>Description:
I run "pkg_chk -u" this morning and it figured out that it needs to update
Mesa. After some recompiling I ran it again few minutes ago and it reported
*again* that the Mesa packages are out of date. What it apparently did
was to remove the Mesa package, recheck and then install the old binary
packages.
>How-To-Repeat:
Use "pkg_chk -u" with some outdated binary packages in "/usr/pkgsrc/packages".
>Fix:
None provided.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Mon, 13 Feb 2006 22:15:39 +0000
Responsible-Changed-Why:
abs is the maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: abs@netbsd.org
State-Changed-When: Wed, 15 Feb 2006 13:31:14 +0000
State-Changed-Why:
I believe this could happen, but cannot reproduce it this end. For reference:
-- With out of date package for which newer binary available:
# pkg_info
tnef-1.3.2nb1 Decode MS-TNEF MIME attachments
pkg_chk-1.67 Check installed package versions against pkgsrc
# pkg_chk -u
tnef-1.3.4: version mismatch - tnef-1.3.2nb1 (binary package available)
13:14 /usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r tnef-1.3.2nb1
[ Rechecking packages after deletions ]
tnef-1.3.4: missing (binary package available)
[ Install ]
13:14 /usr/bin/env /usr/sbin/pkg_add -K /var/db/pkg /files/netbsd/pkgsrc/packages/NetBSD-3.0-i386/All/tnef-1.3.4.tgz
13:14 rm -f /pkgsrc/pkgchk_update-forsaken.conf
Installed: tnef-1.3.4
-- With out of date package for which binary is also out of date:
# pkg_info rzip-2.0nb1 Create or extract .rz files, like gzip but smaller
pkg_chk-1.67 Check installed package versions against pkgsrc
# pkg_chk -u rzip-2.1: version mismatch - rzip-2.0nb1
Merging in previous /pkgsrc/pkgchk_update-forsaken.conf
13:17 /usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r rzip-2.0nb1
[ Rechecking packages after deletions ]
rzip-2.1: missing
[ Install ]
13:17 cd /pkgsrc/archivers/rzip && /usr/bin/make update CLEANDEPENDS=yes
[...]
would it be possible that there are multiple Mesa binary packages in the
package dir?
Alternatively, what could happen:
pkg-a depends on pkg-b
pkg-b version is changed, but not pkg-a
pkg_chk removes outdated pkg-b and (automatically) pkg-a
pkg_chk.conf contains pkg-a
pkg_chk finds correct binary package for pkg-a, so installs it. This pulls in
the outdated pkg-b.
Could this be happening in your case?
.
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32790 ("pkg_chk" uses binary packages when it shouldn't)
Date: Wed, 15 Feb 2006 13:55:17 +0000
On Wed, Feb 15, 2006 at 01:31:15PM +0000, abs@netbsd.org wrote:
> would it be possible that there are multiple Mesa binary packages in the
> package dir?
No of the package which it was about to build because I remove old binary
packages with a script after updating my packages.
It is however very likely that there were two binary packages of one of
the package which just had been update: the old one and the one which
just has been created.
> Alternatively, what could happen:
>
> pkg-a depends on pkg-b
> pkg-b version is changed, but not pkg-a
> pkg_chk removes outdated pkg-b and (automatically) pkg-a
> pkg_chk.conf contains pkg-a
> pkg_chk finds correct binary package for pkg-a, so installs it. This pulls in
> the outdated pkg-b.
I know about that behaviour and that's not what I complaining about. In my
case it definitely reinstalled an outdated version from a binary package.
Can it perhaps like this:
1.) "a" depends on "b" and "c".
2.) "b" and "c" are outdated.
3.) "pkg_chk -u" removes "b" and "c".
4.) "pkg_chk -u" builds and install "b".
5.) "pkg_chk -u" tries to install "a", find the binary package for it and
runs "pkg_add a.tgz".
6.) "pkg_add a.tgz" detects that "b" is missing and install the outdated
"b" binary package.
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32790 ("pkg_chk" uses binary packages when it shouldn't)
Date: Wed, 15 Feb 2006 08:02:38 -0800 (PST)
On Wed, 15 Feb 2006, Matthias Scheler wrote:
> Can it perhaps like this:
> 1.) "a" depends on "b" and "c".
> 2.) "b" and "c" are outdated.
> 3.) "pkg_chk -u" removes "b" and "c".
> 4.) "pkg_chk -u" builds and install "b".
> 5.) "pkg_chk -u" tries to install "a", find the binary package for it and
> runs "pkg_add a.tgz".
> 6.) "pkg_add a.tgz" detects that "b" is missing and install the outdated
> "b" binary package.
I have the problem very frequently (although I never use pkg_chk).
I had suggested a couple weeks ago about adding another option to pkg_add
where you can override or supplement the the dependencies by adding a
package pattern on the command line. But then I realized that may be
overly complictaed (compared to other ideas) since I have to look at
binary package first (looking at @blddep) to see what it depends on and
then compare that with what it should be or is available.
Instead, maybe pkg_add can add an option so that the fixed @blddep is
ignored and just use the @pkgdep range.
Or maybe pkg_chk could move the out-dated packages out of the way so they
are not seen. (This is probably the easiest.)
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32790 ("pkg_chk" uses binary packages when it shouldn't)
Date: Fri, 17 Feb 2006 10:28:44 +0000
On Wed, Feb 15, 2006 at 01:55:17PM +0000, Matthias Scheler wrote:
> Can it perhaps like this:
> 1.) "a" depends on "b" and "c".
> 2.) "b" and "c" are outdated.
> 3.) "pkg_chk -u" removes "b" and "c".
> 4.) "pkg_chk -u" builds and install "b".
> 5.) "pkg_chk -u" tries to install "a", find the binary package for it and
> runs "pkg_add a.tgz".
> 6.) "pkg_add a.tgz" detects that "b" is missing and install the outdated
> "b" binary package.
The problem just happen again and it was exactly caused by a scenario
like the one described above:
1.) "p5-HTML-Parser" was outdated.
2.) "pkg_chk" removed it with "pkg_delete -r p5-HTML-Parser".
3.) "pkg_chk" checked which packets are missing and found out that
"spamassassin" which depends on "p5-HTML-Parser" is missing.
4.) "pkg_chk" runs "pkg_add spamassassin-3.1.0nb3.tgz" which reinstalls
the old and outdated "p5-HTML-Parser" package.
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/
State-Changed-From-To: feedback->open
State-Changed-By: tron@netbsd.org
State-Changed-When: Sun, 05 Mar 2006 07:43:05 +0000
State-Changed-Why:
The requested feedback was provided.
State-Changed-From-To: open->analyzed
State-Changed-By: abs@netbsd.org
State-Changed-When: Wed, 20 Sep 2006 22:14:59 +0000
State-Changed-Why:
We know why it happens, but fixing it is less trivial
State-Changed-From-To: analyzed->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 06 Jun 2022 05:15:48 +0000
State-Changed-Why:
Is this problem current?
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/32790 ("pkg_chk" uses binary packages when it shouldn't)
Date: Mon, 6 Jun 2022 07:21:42 +0100
On Mon, Jun 06, 2022 at 05:15:49AM +0000, dholland@NetBSD.org wrote:
> Synopsis: "pkg_chk" uses binary packages when it shouldn't
>
> State-Changed-From-To: analyzed->feedback
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Mon, 06 Jun 2022 05:15:48 +0000
> State-Changed-Why:
> Is this problem current?
I honestly don't know as I'm using "pkg_rolling_replace" these days.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 10 Jul 2022 22:26:46 +0000
State-Changed-Why:
feedback received, not sure what to do about it
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.