Subject: Re: pkg/28714: mail/maildrop uses native cp instead of ${CP}
To: None <georg.schwarz@freenet.de>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 02/18/2005 22:39:14
On Sun, Dec 19, 2004 at 07:57:00PM +0000, georg.schwarz@freenet.de wrote:
> >Description:
> mail/maildrop in its Makefile directly cp instead of ${CP}. On systems where cp does not support a -f option, for example, this fails.
> >How-To-Repeat:
> 
> >Fix:
> Patch Makefile* to replace cp with $(CP) and add MAKE_ENV+=CP="${CP}".
> Maybe even better use the appropriate $INSTALL_* instead.  Other
> commands like rm might also be substituted the same way.

We could patch the Makefiles, but I suspect that this is going to be
a fairly common problem on IRIX 5.  It might be easier just to create
a "cp" wrapper in tools.mk that understands "-f".  Alternatively, we
could make sysutils/coreutils a build dependency for IRIX 5.  I'm just
tossing out ideas here, but adding coreutils as a a build dependency
will probably make most of these problems just go away and is less
work than the wrappers idea.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>