From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SKVgY-0006b0-7h for ptxdist@pengutronix.de; Wed, 18 Apr 2012 16:16:42 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1SKVgY-0004mG-6U for ptxdist@pengutronix.de; Wed, 18 Apr 2012 16:16:42 +0200 Date: Wed, 18 Apr 2012 16:16:42 +0200 From: Michael Olbrich Message-ID: <20120418141642.GE17656@pengutronix.de> References: <4F832414.2090800@biessmann.de> <20120409185943.GB7410@regiomontanus.bwalle.de> <4F834B30.7020002@biessmann.de> <20120410090436.GB598@regiomontanus.bwalle.de> <20120410183557.GA7335@regiomontanus.bwalle.de> <1B5EB76D-CF79-4E04-A49E-E4C9A49AF0BE@etit.tu-chemnitz.de> <20120417112406.GI8237@pengutronix.de> <20120417114504.GA11343@regiomontanus.bwalle.de> <20120418082935.GJ28513@pengutronix.de> <4295DCC4-649F-4EE5-928A-41DDF15A5490@etit.tu-chemnitz.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4295DCC4-649F-4EE5-928A-41DDF15A5490@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="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Wed, Apr 18, 2012 at 01:25:07PM +0200, Daniel Kriesten wrote: > Am 18.04.2012 um 10:29 schrieb Michael Olbrich: > >> [...] > >>> [...] > >>>> An other thing is xargs ... without the gnu version make distclean fails. > >>>> The solution is to symlink in .../lib/ptxdist-2012.04.0/bin/, too. > >>> > >>> It's "make clean" actually and that will remove the relevant symlink. > >>> Would this work: > >> > >> That one is already in ptxdist, after 2012.04: > >> > >> http://git.pengutronix.de/?p=ptxdist.git;a=commit;h=394af1de808e6fc4c3cf921d36e1b1f887133eb7 > > > > Yes it's there, and calling "make clean" twice still breaks. > > > >>> ------------------------------------------------------------------ > >>> diff --git a/Makefile.in b/Makefile.in > >>> index 8382402..32784c8 100644 > >>> --- 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 > >>> + @cd "$(abs_srcdir)/bin" && find -type l -print | xargs rm -f > >>> @$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean > >> > >> Maybe just -exec ? Maybe it is a bit slower? But see above. > > > > I really don't care either way. > > From my point of view removing -r and adding -f is a simple, but sufficient > solution. I added the corresponding patch, along with a patch fixing a typo > in configure.ac. So "find -print0" works, right? I wasn't sure if that's a GNU extension. The xargs man-page I have says "... The GNU find -print0 option produces input suitable for this mode.". So I wasn't sure if this works _only_ with GNU find. Michael -- 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