File readME of Package linphoneqt
How to fix patch error due to different line endings
or error patch ends in the middle of the line:
Consider to use emacs to edit patchfiles, not gedit, to avoid wrong
line endings.
Append the proper linefeed without opening the file up for editing:
echo -e "\n" >> YOURPATCHFILE
If your patch file is weird or you want to go through several
possible fixes at once, you can correct many problems with encoding
(to ascii) including the line endings (CR or CRLF to LF):
dos2unix -k YOURPATCHFILE