This is the mail archive of the
mailing list for the Cygwin project.
Re: problem with 'patch' version 2.7.1-1 in Apache OpenOffice build under Windows
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Cc: Oliver-Rainer Wittmann <orwittmann at googlemail dot com>
- Date: Mon, 29 Jul 2013 17:19:52 +0200
- Subject: Re: problem with 'patch' version 2.7.1-1 in Apache OpenOffice build under Windows
- References: <51F6798D dot 3040905 at googlemail dot com>
- Reply-to: cygwin at cygwin dot com
I forgot the CC in my first reply, sorry. I extended my reply a bit.
On Jul 29 16:17, Oliver-Rainer Wittmann wrote:
> I am Oliver-Rainer Wittmann, a software developer working on Apache
> I am not subscribed to this mailing cygwin at cygwin dot com. Thus,
> please include my mail address in your replies - Thx in advance.
> I just want to inform you that version 2.7.1-1 of 'patch' breaks the
> current Apache OpenOffice build under Windows.
> It is caused by the fact that a non-CRLF patch could not be applied
> to a CRLF file.
> I have seen that this has been already reported on this list - see
> thread [Bug with Cygwin's 'quilt' is actually in 'patch']
> As Apache OpenOffice is built on different platforms (Windows,
> MacOS, Linux, ...) and developers are working on different platforms
> it can happen that patches and files got different line endings.
> Thus, Apache OpenOffice is hit by the change in new cygwin 'patch'.
> Is it still possible to change the line ending of a certain line in
> a file from CRLF to non-CRLF with 'patch' version 2.7.1-1?
This is an upstream choice. What you can do:
- Use dos2unix.
- Use a temporary text mount
- Discuss with the patch maintainers why they refuse to patch a UNIX
file with a DOS patch and vice versa.
I guess it's a problem with mixing the line endings. If you have a
file with UNINX line endings and a patch containing DOS lines, what is
the end result supposed to be? Are the CRs to be kept intact or not?
Since patch doesn't know what the input is about, there's no way to be
sure what behaviour is right or wrong. Something like that.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple