Subject: Re: pkg/32790 ("pkg_chk" uses binary packages when it shouldn't)
To: None <abs@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Matthias Scheler <tron@zhadum.org.uk>
List: pkgsrc-bugs
Date: 02/17/2006 10:30:02
The following reply was made to PR pkg/32790; it has been noted by GNATS.

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/