Subject: pkg/36563: Cannot bootstrap pkgsrc on AIX 5.3 (circular dependency w/ patch and digest)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 06/27/2007 01:30:00
>Number:         36563
>Category:       pkg
>Synopsis:       Cannot bootstrap pkgsrc on AIX 5.3 (circular dependency w/ patch and digest)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 01:30:00 +0000 2007
>Originator:     Louis Guillaume
>Release:        
>Organization:
>Environment:
# uname -a
AIX xxxxxx 3 5 00CCABAE4C00

# oslevel -s
5300-05-05
>Description:
I just tried to bootstrap a brand new AIX box. It gets pretty far
without complaining, but then, as it tries to build bmake...

===> Registering installed packages
===> running: (cd /usr/pkgsrc/pkgtools/bootstrap-mk-files &&
/usr/pkg/bin/bmake  -DPKG_PRESERVE
MAKECONF=/tmp/pkgbootstrap/mk.conf.example
WRKOBJDIR=/tmp/pkgbootstrap/pkgsrc  bootstrap-register)
=> Registering installation for bootstrap-mk-files-20061111
===> Cleaning for bootstrap-mk-files-20061111
===> running: (cd /usr/pkgsrc/devel/bmake && /usr/pkg/bin/bmake
-DPKG_PRESERVE MAKECONF=/tmp/pkgbootstrap/mk.conf.example
WRKOBJDIR=/tmp/pkgbootstrap/pkgsrc  bootstrap-register)
ERROR: [resolve-dependencies] A package matching ``patch>=2.2'' should
ERROR:     be installed, but one cannot be found.  Perhaps there is a
ERROR:     stale work directory for ../../devel/patch?
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/bmake
===> exited with status 1
aborted.


I tried to install devel/patch manually but it depends in digest, which
depends in patch and they go back and forth forever.

Trying to install pkgtools/digest gives this more informative message up
front:

# cd ../../pkgtools/digest
# bmake package
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Installing dependencies for digest-20060826
=> Required installed package patch>=2.2: NOT found
=> Verifying package for ../../devel/patch
=> Required installed package digest>=20010302: NOT found
=> Verifying package for ../../pkgtools/digest
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/patch
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/digest


>How-To-Repeat:
Try to bootstrap pkgsrc on an AIX 5.3 machine.
>Fix: