Problem with Qt patch

Randy McMurchy randy at linuxfromscratch.org
Wed Dec 26 15:22:55 PST 2007


Chris Staub wrote:

> chris at chris:~$ tar xf qt-x11-free-3.3.8.tar.bz2
> chris at chris:~$ cd qt-x11-free-3.3.8
> chris at chris:~/qt-x11-free-3.3.8$ patch -Np0 -i ../Qt-3.3.8-UTF-8-fix.diff
> patching file src/codecs/qutfcodec.cpp
> Hunk #1 FAILED at 154.
> Hunk #2 FAILED at 168.
> Hunk #3 FAILED at 184.
> Hunk #4 FAILED at 194.
> Hunk #5 FAILED at 205.
> 5 out of 5 hunks FAILED -- saving rejects to file 
> src/codecs/qutfcodec.cpp.rej
> patching file src/tools/qstring.cpp
> Hunk #1 FAILED at 5805.
> Hunk #2 FAILED at 5823.
> Hunk #3 FAILED at 5851.
> 3 out of 3 hunks FAILED -- saving rejects to file src/tools/qstring.cpp.rej
> chris at chris:~/qt-x11-free-3.3.8$ file ../Qt-3.3.8-UTF-8-fix.diff
> ../Qt-3.3.8-UTF-8-fix.diff: ASCII C++ program text, with CRLF line 
> terminators

Thanks, Chris. Unfortunately I don't have access to a Linux box
right now. However, last time I applied the patch I received a
message that the process 'stripped' the CRLF from the patch file
and it applied.

How odd. I wonder if there is a difference in the patch program
(updated version or whatever) or something else that makes it
work for me, yet fail for you?

I'll check it out further when I can. Thanks again, Chris.

-- 
Randy



More information about the blfs-dev mailing list