Subject: AIX bootstrap and patch (circular dependency)
To: None <>
From: Louis Guillaume <>
List: tech-pkg
Date: 06/26/2007 16:19:51

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
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

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

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

# 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

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

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

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

So I'm at a loss as to how to get past this. Any help would be fantastic,