Subject: Re: pkg/28714: mail/maildrop uses native cp instead of ${CP}
To: None <irix-pkg-people@netbsd.org, gnats-admin@netbsd.org,>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 02/18/2005 22:40:02
The following reply was made to PR pkg/28714; it has been noted by GNATS.

From: "Johnny C. Lam" <jlam@NetBSD.org>
To: georg.schwarz@freenet.de
Cc: gnats-bugs@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/28714: mail/maildrop uses native cp instead of ${CP}
Date: Fri, 18 Feb 2005 22:39:14 +0000

 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>