Subject: Re: bin/36128: CRLF handling for make
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 04/14/2007 17:15:05
The following reply was made to PR bin/36128; it has been noted by GNATS.

From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/36128: CRLF handling for make
Date: Sat, 14 Apr 2007 18:16:08 +0100

 On Sat, Apr 14, 2007 at 03:20:02PM +0000, Alan Barrett wrote:
 > 
 >  On Fri, 06 Apr 2007, dholland@eecs.harvard.edu wrote:
 >  > It was mentioned on #pkgsrc irc that our make doesn't handle makefiles
 >  > that have embedded carriage returns (DOS-style CR/LF end of lines)...
 >  > ...and there seems no particular reason it shouldn't, since at least
 >  > one such makefile seems to exist in the wild.
 >  
 >  I am not at all convinced that this is a good idea.  I think that people
 >  who write their Makefiles under DOS should convert them to unix file
 >  format before trying to use them under NetBSD.
 
 I tend to agree, some makefiles might even contain a <cr> character in
 a variable assignment!
 (I've certainly used them in shell scripts.)
 
 Also it is rather the thin end of a big wedge!
 For instance the sun C compiler (or rather the preprocessor) doesn't
 treat \<cr><lf> as a line continuation.
 So do we start converting broken source files as well ?
 
 	David
 
 -- 
 David Laight: david@l8s.co.uk