This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: Procedural question
On Mon, Aug 21, 2000 at 05:16:56PM -0400, brent verner wrote:
> Are you having difficulty applying patches created with
> 'cvs diff $OPTS $DIR'?
Yes, but it turned out to be a path problem, which I just now fixed. Sigh.
(How many computer scientists does it take to change a <noun>?)
>I ask because I could not figure out how
> to apply a cvs created diff -- meaning that 'patch -p0 < file.diff'
> could not find the source file to patch.
>
> Question to the knowledgeable readership:
> How do I (without manually entering each file's name) apply a
> 'cvs diff ...' created patch?
Ah, that's a different problem. You need to pass the --posix option when
patching, or have the POSIXLY_CORRECT env variable set (to anything).
It loses some nifty features in the name of portability, but on the very
good side it makes the filename detection not suck. (The "Index:" line
actually does something.)
Setting POSIXLY_CORRECT affects some other GNU utilities besides patch.
Tar is the only other one I can think of.
I had simply built a customized version of patch way back when, named the
binary something different, and now I call it in particular when I need it.
(But my path was still recently dorked up, so the problems arose.)
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.