Subject: pkg/23521: pkgsrc broken on 1.6.1
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 11/21/2003 08:43:24
>Number:         23521
>Category:       pkg
>Synopsis:       pkgsrc broken on 1.6.1
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 21 13:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dan McMahill
>Release:        NetBSD 1.6.1
>Organization:
NetBSD
>Environment:
	
	
System: NetBSD bondage 1.6.1 NetBSD 1.6.1 (BONDAGE) #0: Mon Apr 21 18:28:45 EDT 2003 dan@bondage:/export/disk1/src/src-netbsd-1-6-1/sys/arch/alpha/compile/BONDAGE alpha
Architecture: alpha
Machine: alpha
>Description:

if you try and install pkgsrc from CVS on a fresh 1.6.1 system, you'll see this:
# make
===> Your package tools need to be updated to 2003/09/18 versions.
===> The installed package tools were last updated on 2003/02/02.
===> To fix this, use the following command:
===>    cd /usr/pkgsrc/pkgtools/pkg_install && make clean && make install
*** Error code 1

sounds ok, but now when you try and update pkg_install, it will try to build
digest which compiles, but fails package registration:
===> Installing for digest-20021220
===>  usage: pkg_admin [-V] command args ...
Where 'commands' and 'args' are:
 rebuild                     - rebuild pkgdb from +CONTENTS files
 check [pkg ...]             - check md5 checksum of installed files
 lsall /path/to/pkgpattern   - list all pkgs matching the pattern
 lsbest /path/to/pkgpattern  - list pkgs matching the pattern best
 dump                        - dump database
 pmatch pattern pkg          - returns true if pkg matches pattern,
 otherwise false is already installed - perhaps an older version?
 *** If so, you may use either of:
 ***  - "pkg_delete usage: pkg_admin [-V] command args ...
 Where 'commands' and 'args' are:
 rebuild                     - rebuild pkgdb from +CONTENTS files
 check [pkg ...]             - check md5 checksum of installed files
 lsall /path/to/pkgpattern   - list all pkgs matching the pattern
 lsbest /path/to/pkgpattern  - list pkgs matching the pattern best
 dump                        - dump database
 pmatch pattern pkg          - returns true if pkg matches pattern,
 otherwise false" and "make reinstall" to upgrade properly
 ***  - "make update" to rebuild the package and all of its dependencies
 ***  - "make replace" to replace only the package without re-linking
 ***    dependencies, risking various problems.
 *** Error code 1

 Stop.

	
>How-To-Repeat:

install 1.6.1, checkout pkgsrc, cd /usr/pkgsrc/pkgtools/pkg_install && make install
	
>Fix:

not sure.  maybe some logic in bsd.pkg.mk to deal with old pkgtools for digest?
maybe something in the digest Makefile?


	
>Release-Note:
>Audit-Trail:
>Unformatted: