Subject: circular dependency when bootstrapping
To: Discussion List NetBSD Packages Technical <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 08/19/2006 19:19:20
When bootstrappen on IRIX 5 with the current pkgsrc bootstrap I end  
up in a circular dependency when it comes to installing pkgtools/ 
bootstrap-mk-files:


===> Installing dependencies for bootstrap-mk-files-20060714
=> Required installed package gzip-base>=1.2.4b: NOT found
=> Verifying reinstall for ../../archivers/gzip-base
=> Required installed package digest>=20010302: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Installing dependencies for digest-20060302
=> Required installed package gzip-base>=1.2.4b: NOT found
=> Verifying reinstall for ../../archivers/gzip-base
=> Required installed package digest>=20010302: NOT found
...

I'm wondering why /pkgtools/digest depends on gzip-base?

Adding EXTRACT_SUFX= to /pkgtools/digest's Makefile does away with  
this (caused by USE_TOOLS containing gzcat). However, I think this  
ought not be necessary when DISTFILES is empty, as it is for pkgtools/ 
digest.
This could probably be achieved by a
.if !empty(DISTFILES)
...
.endif

in mk/extract/bsd.extract-vars.mk around the paragraph where the  
various extraction tools are added to USE_TOOLS. Is this preferable  
to setting EXTRACT_SUFX to an empty string?

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
georg.schwarz@freenet.de  +49 178 8545053