Subject: Re: pkgsrc via cvs instead of sup
To: Frederick Bruckman <fredb@immanent.net>
From: Alistair Crooks <agc@wasabisystems.com>
List: netbsd-users
Date: 05/22/2002 08:56:49
On Tue, May 21, 2002 at 10:48:32PM -0500, Frederick Bruckman wrote:
> On Tue, 21 May 2002, Frank Knappe wrote:
> 
> > On Mon, 20 May 2002, Frederick Bruckman wrote:
> >
> > For most of the pkgsrc packgaes I make a make update when there
> > are new versions. Unfortunatly this results in long compile jobs,
> > because the whole kde has to be compiled, like with libxml2 today.
> >
> > What can happen if there are still some work directories?
> 
> If "${WRKDIR}/.build_done" is already present, nothing more will be
> extracted or built.

That's correct, but doesn't tell the whole story.

At "make install" time, if the package that is trying to be installed
differs from the one that is present in the ${WRKDIR}, then the
${WRKDIR} will be deleted, and the package will be rebuilt. Taken
 from bsd.pkg.mk's cvs logs:

----------------------------
revision 1.966
date: 2002/04/18 20:54:51;  author: agc;  state: Exp;  lines: +4 -4
In the do-su-install target, when the ${WRKDIR} contains an outdated
version of the package, and an attempt is made to install the package,
first "make clean" and then "make build" to pick up the new version of
the package before continuing with "make install", rather than printing
an error message and dying.
----------------------------

Regards,
Alistair