Subject: Re: pkg/36563 (Cannot bootstrap pkgsrc on AIX 5.3 (circular dependency
To: None <rillig@NetBSD.org, gnats-admin@netbsd.org,>
From: Louis Guillaume <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 06/30/2007 18:05:03
The following reply was made to PR pkg/36563; it has been noted by GNATS.

From: Louis Guillaume <lguillaume@berklee.edu>
To: gnats-bugs@NetBSD.org
Cc: rillig@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/36563 (Cannot bootstrap pkgsrc on AIX 5.3 (circular dependency
 w/ patch and digest))
Date: Sat, 30 Jun 2007 14:02:50 -0400

 OBATA Akio wrote:
 >  
 >  We may reset locale related environment to "C" in bootstrap script.
 >  
 
 Very interesting!
 
 On our system, LANG is already set to "C" due to some other application
 environment restrictions. But I noticed that LC_ALL was unset.
 
 # locale
 LANG=C
 LC_COLLATE="C"
 LC_CTYPE="C"
 LC_MONETARY="C"
 LC_NUMERIC="C"
 LC_TIME="C"
 LC_MESSAGES="C"
 LC_ALL=
 
 After Setting LC_ALL to "C", gcc seems happy but I get the following
 problem...
 
 ===> 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 ``digest>=20010302'' should
 ERROR:     be installed, but one cannot be found.  Perhaps there is a
 ERROR:     stale work directory for ../../pkgtools/digest?
 *** Error code 1
 
 Stop.
 bmake: stopped in /usr/pkgsrc/devel/bmake
 
 Also, Tobias Nygren has made a suggestion regarding this problem on the
 tech-pkg mailing list. Perhaps there is something there as well, however
 I have verified that `bmake show-depends' does not show any dependencies
 for bootstrap-mk-files:
 
 > The bootstrap should never depend on patch being installed.
 > Please remove all work directories and supply output of
 > 	bmake show-depends
 > and
 > 	bmake show-depends VARNAME=BUILD_DEPENDS
 > in bootstrap-mk-files.
 > 
 > To get going, you can install gnu patch manually and set
 > TOOLS_PLATFORM.patch?=/path/to/bin/patch in tools.AIX.mk.
 > 
 > -Tobias
 
 
 
 Thanks!
 
 Louis