Patching files with spaces in the name
SAMUEL ISAAC LAWRANCE
samuel.lawrance at studentmail.newcastle.edu.au
Thu Apr 7 22:43:41 PDT 2005
----- Original Message -----
From: Alex Varju <alex at 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
> >> find anything in the archives. Is there any good method for
> >> source files with spaces in the name?
> >> I'm looking at creating an eclipse-devel port for Eclipse
> >> I've already got something working now that allows me to build
> >> 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
> >> 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,
> >> 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.
-------------- next part --------------
freebsd-ports at freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
More information about the freebsd-ports