Date: Fri, 08 Apr 2005 15:37:36 +1000 From: SAMUEL ISAAC LAWRANCE <samuel.lawrance@studentmail.newcastle.edu.au> To: Alex Varju <alex@varju.ca> Cc: freebsd-ports@freebsd.org Subject: Re: Patching files with spaces in the name Message-ID: <22bcb21127.2112722bcb@studentmail.newcastle.edu.au>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Boundary_(ID_i3Dh1TXIi67848DstvYokw) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline ----- Original Message ----- From: Alex Varju <alex@varju.ca> Date: Friday, April 8, 2005 2:31 pm Subject: Re: Patching files with spaces in the name > 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. Looks like patch can't handle it as is - fetchname() in src/gnu/usr.bin/patch/util.c copies the filename up to the first space. Googling finds various discussions of the same problem. Sorry about the horrendous wrapping. --Boundary_(ID_i3Dh1TXIi67848DstvYokw) MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" --Boundary_(ID_i3Dh1TXIi67848DstvYokw)--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22bcb21127.2112722bcb>