From owner-freebsd-ports@FreeBSD.ORG Fri Apr 8 12:00:22 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BBFA16A4D0 for ; Fri, 8 Apr 2005 12:00:21 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3B7E43D4C for ; Fri, 8 Apr 2005 12:00:19 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from ppp2D44.dyn.pacific.net.au (ppp2D44.dyn.pacific.net.au [61.8.45.68])j38C0FH4003789; Fri, 8 Apr 2005 22:00:16 +1000 From: Sam Lawrance To: antonio@php.net In-Reply-To: <42566DB0.8050803@php.net> References: <424CCC27.6060807@varju.ca> <42551A04.8050201@php.net> <42560932.6050702@varju.ca> <42566DB0.8050803@php.net> Content-Type: text/plain Date: Fri, 08 Apr 2005 22:00:27 +1000 Message-Id: <1112961627.3600.4.camel@dirk.no.domain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: Patching files with spaces in the name X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 12:00:22 -0000 On Fri, 2005-04-08 at 08:40 -0300, Antonio Carlos Venancio Junior wrote: > Alex, > > Alex Varju wrote: > > Antonio Carlos Venancio Junior wrote: > > >> Alex Varju wrote: > > > >>> While I'm sure this question must have come up in the past, I can't > >>> find anything in the archives. Is there any good method for patching > >>> source files with spaces in the name? > >>> > >>> I'm looking at creating an eclipse-devel port for Eclipse 3.1m5a. > >>> I've already got something working now that allows me to build on > >>> AMD64 (see the freebsd-java archives if you are interested). Now I'm > >>> trying to clean up my work, and one of the problems I've encountered > >>> is that Eclipse uses spaces in many of their paths. If I take a diff > >>> for changes I've made to files within one of these directories, the > >>> patch won't apply again afterwards. > >>> > >>> Are there any ports that deal with similar problems in an elegant > >>> manner? > > > > > > > > do you have some examples? > > > > Hi Antonio, > > > > Yes, I do have an example. I've attached a diff from the port I have in > > progress. The theory is that it should update the file build.sh in the > > directory "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library". > > Unfortunately, because of the spaces in "Eclipse SWT PI", the patch does > > not work. > > > > Alex. > > > > > > ------------------------------------------------------------------------ > > > > --- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig Fri Apr 1 13:56:58 2005 > > +++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh Thu Apr 7 21:28:24 2005 > > try this two options: > > plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library/build.sh > "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh" > > Got it?! ;) That won't work, patch doesn't know anything about quoting with respect to filenames. All that will do is give you a file named like plugins/org.eclipse.swt/Eclipse\ "plugins/org.eclipse.swt/Eclipse