Subject: Re: Surprising xargs behavior on Solaris 10
To: Stefan Bethke <stb@lassitu.de>
From: segv <segv@netctl.net>
List: tech-pkg
Date: 08/31/2005 16:14:12
On Wed, 31 Aug 2005 16:41:46 +0200
Stefan Bethke <stb@lassitu.de> wrote:

> I ran into some trouble trying to build devel/tcllib:
> 
> ===> Extracting for tcllib-1.7
> ===> Required installed package tcl>=8.4.7nb1: tcl-8.4.11 found
> ===> Patching for tcllib-1.7
> => Fixing hardcoded ftp binary
> usage: rm [-fiRr] file ...
> *** Error code 2
> 
> The Makefile contains this:
> post-patch:
>          @${FIND} ${WRKSRC} -name \*.orig | ${XARGS} ${RM}
> 
> Apparently, there are no .orig files, but on Solaris, /usr/bin/xargs  
> (as well as /usr/xpg6/bin/xargs) still runs rm, just without any args?!

Maybe replace it with:

@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} \{\} \\;