logo separator

[mkgmap-dev] Trouble applying patches

From Marko Mäkelä marko.makela at iki.fi on Sat Feb 4 09:32:03 GMT 2012

On Sat, Feb 04, 2012 at 10:22:04AM +0100, Thorsten Kukuk wrote:
>Sorry, no, I wasn't able to find out what exactly the linux patch
>utility did not like on the patches.

Educated guess: CR+LF instead of LF as line terminator.
Fix: tr -d \\015 < bad.patch > good.patch
or patch -lp0<bad.patch
(Or both, in case the mkgmap svn contains CR+LF line endings. For that,
the fix would be "svn propset svn:eol-style native" on all text files in 
the repository.)

Best regards,

	Marko



More information about the mkgmap-dev mailing list