CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

Eric Blake eblake@redhat.com
Thu Jun 8 15:08:00 GMT 2017


On 06/08/2017 03:50 AM, Soegtrop, Michael wrote:

> 1.) I build many (~ 50) unix libs and tools MinGW cross on cygwin from sources and this breaks many of the configure and other scripts. Feeding back the fixes to the individual lib/tool maintainers will take quite some time and also results in lengthy discussion why they should care about crappy DOS artefacts at all. A compatibility option via environment variable would have been nice.

At one point in the distant past, we DID have an environment variable
($CYGWIN) which included an option to force all pipelines to behave as
text-mount rather than binary-mount.  I don't remember why it was ripped
out.  It may be worth a patch to cygwin1.dll to re-add some way to
enable text-mount pipelines - or maybe even limited-context text-mount
pipelines (if Cygwin already has an easy way to decide whether the
sending end of a pipeline is a cygwin or native windows process, then
the conditional decision would be that input from the pipeline is in
text mode if the sender is non-cygwin; while output to a pipeline is
always binary).  But I'm not in a position to write such a pach.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170608/1a0afe9b/attachment.sig>


More information about the Cygwin mailing list