Subject: Re: cleaning out pkg between each bulk build? (was: CVS commit:
To: Jeremy C. Reed <>
From: Todd Vierling <>
List: tech-pkg
Date: 03/31/2005 16:46:00
On Thu, 31 Mar 2005, Jeremy C. Reed wrote:

> > > I also had a man/man2 which was a text file.
> >
> > Do you have mtree invocation turned off somehow?  At "install" time, mtree
> > should run to ensure all the pkgsrc infrastructure directories exist.
> Yes, it is turned off. NO_MTREE=yes
> mtree complains so much in my non-root builds that my build failure logs
> had hundreds (thousands?) of lines about ownership failures.

Well, some directories are needed, and a *lot* of packages assume that some
standard paths do exist by virtue of mtree creating them.  I presume you're
volunteering to fix them?  :)

That cheeky point aside, I've made it my own personal policy to do

    ${INSTALL_*} foo ${PREFIX}/path/to/bar/

with that trailing slash, in an attempt to keep this case from occurring.
This should probably be standard practice, but is not really the case
always, and cases like you mention here can result if the directories don't

> If we deleted all of ${LOCALBASE} each time, we could save the leftovers
> only if the installation and then pkg_delete was successful.

That sounds plausible.

-- Todd Vierling <> <>