Subject: Re: PKG_DEBUG_LEVEL>=1 breaks some targets
To: Kouichirou Hiratsuka <>
From: Johnny C. Lam <>
List: tech-pkg
Date: 10/01/2004 13:16:00
On Fri, Oct 01, 2004 at 06:18:40PM +0900, Kouichirou Hiratsuka wrote:
> With PKG_DEBUG_LEVEL>=1, some targets (clean-depends, etc.) do
> not work properly because mk/ uses output of make(1)
> at several places.  An expected output (e.g. directory list
> which depends on the package) is mixed with a debug output.  
> In this case, make(1) needs to call with `PKG_DEBUG_LEVEL=0',
> I think.  A following patch may fix this problem.  It works
> fine for me.  However, some debug outputs disappear...
> Any other ideas?

For those targets whose output is used by other targets, we could
simply replace "${_PKG_SILENT}${_PKG_DEBUG}" with "@".  This would
seem to be the simplest solution.


	-- Johnny Lam <>