From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Thz0E-0006af-NF for ptxdist@pengutronix.de; Mon, 10 Dec 2012 09:46:18 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1Thz0E-0004RW-Me for ptxdist@pengutronix.de; Mon, 10 Dec 2012 09:46:18 +0100 Date: Mon, 10 Dec 2012 09:46:18 +0100 From: Michael Olbrich Message-ID: <20121210084618.GH26985@pengutronix.de> References: <20120417114504.GA11343@regiomontanus.bwalle.de> <20120418082935.GJ28513@pengutronix.de> <4295DCC4-649F-4EE5-928A-41DDF15A5490@etit.tu-chemnitz.de> <20120418141642.GE17656@pengutronix.de> <0CD03835-B077-48D9-98B3-D6BD380253BA@etit.tu-chemnitz.de> <742DF9D3-D7F9-4E91-B5DB-D5B33C424B8F@etit.tu-chemnitz.de> <4F8FF706.1040103@corscience.de> <7781E107-7A27-441D-AD08-EB8A981AE12D@etit.tu-chemnitz.de> <4F90042A.6060804@corscience.de> <1AD430B7-0904-4E5D-BEA8-D359221672AA@etit.tu-chemnitz.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1AD430B7-0904-4E5D-BEA8-D359221672AA@etit.tu-chemnitz.de> Subject: Re: [ptxdist] Using PTXdist on Mac OS Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sat, Dec 08, 2012 at 04:31:34PM +0100, Daniel Kriesten wrote: > Hi all, > = > this is quite a late reply to this mail. But today I struggled about this= once again. So here its the patch. ${PTXDIST_TOPDIR}/bin/xargs should be a gnu xargs. Is that not used? Michael > ---8<--- > = > From dd717be19e704b71a030b091d2604d7a05ccebb2 Mon Sep 17 00:00:00 2001 > From: Daniel Kriesten > Date: Sat, 8 Dec 2012 16:27:35 +0100 > Subject: [PATCH] Remove -r from call to xargs > = > The '-r' flag is a GNU extension. To enhance compatibility remove '-r' > and suppress error mesages using 'rm -f'. > --- > Makefile.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/Makefile.in b/Makefile.in > index e171045..72509a2 100644 > --- a/Makefile.in > +++ b/Makefile.in > @@ -71,7 +71,7 @@ environment: > = > clean: > @rm -f .done > - @find "$(abs_srcdir)/bin" -type l -print0 | xargs -r -0 rm > + @find "$(abs_srcdir)/bin" -type l -print0 | xargs -0 rm -f > @$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean > = > dirty-check: > -- = > 1.8.0 > = > --->8--- > = > Am 19.04.2012 um 14:25 schrieb Andreas Bie=DFmann: > > Hi, > > = > > On 19.04.2012 14:04, Daniel Kriesten wrote: > >> Hi all, > >> = > >> Am 19.04.2012 um 13:29 schrieb Andreas Bie=DFmann: > >> = > >>> Hi all, > >>> = > >>> On 19.04.2012 12:41, Daniel Kriesten wrote: > >>>> Hi Michael, > >>>> at leas on a Mac (OS X 10.6.8) the BSD find supports -print0 > >>> = > >>> yes, OS X delivered BSD find supports -print0, but it does _not_ supp= ort > >>> omitting the path! > >>> [...] > >>> OR leaving the xargs -r param > >>> = > >>> ---8<--- > >>> --- a/Makefile.in > >>> +++ b/Makefile.in > >>> @@ -63,7 +63,7 @@ environment: > >>> = > >>> clean: > >>> @rm -f .done > >>> - @find "$(abs_srcdir)/bin" -type l -print0 | xargs -r -0 rm > >>> + @find "$(abs_srcdir)/bin" -type l -print0 | xargs -0 rm > >>> @$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean > >>> --->8--- > >> = > >> This one is my promoted solution in yesterdays patch, except I would r= ecommend 'rm -f' to avoid errors if find returns an empty list. > > = > > well ok, +1 for your solution. I maybe missed that in my mail history > > (can you please send patches inline next time?). > > = > > best regards > > = > > Andreas Bie=DFmann > > = > > -- = > > ptxdist mailing list > > ptxdist@pengutronix.de > > = > = > = > -- = > Daniel Kriesten > Professur Schaltkreis- und Systementwurf > Technische Universit=E4t Chemnitz, Reichenhainer Str. 31-33, 09126 Chemni= tz > Tel: +49 371 531 33058 Fax: +49 371 531 833058 > http://www.tu-chemnitz.de/etit/sse > = > -- = > ptxdist mailing list > ptxdist@pengutronix.de -- = Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- = ptxdist mailing list ptxdist@pengutronix.de