LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I use a .cgi patch? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-use-a-cgi-patch-169481/)

Riichard 04-13-2004 04:51 AM

How do I use a .cgi patch?
 
How do I use a .cgi patch?
I've recently upgraded my SuSE to KDE 3.2.
The upgrade went ok but Kget is now unusable, it crashes all the time.
This is a known bug and there's some cgi patches here,
http://bugs.kde.org/show_bug.cgi?id=74597
to fix it but I don't know how to use them.
:confused:

hw-tph 04-13-2004 06:23 AM

Save the patch to disk using whatever name you wish. Then simply cd to the source directory where the files that need to be patched reside and type patch -p0 < filename.patch where filename.patch is the name you saved the page as. If no errors are reported you should be able to compile the program with the patch applied.


Håkan

Riichard 04-13-2004 09:42 AM

Quote:

Originally posted by hw-tph
Then simply cd to the source directory where the files that need to be patched reside
Håkan

I'm not sure which files need to be patched.
Ive had a look at the attachment in kwrite and first line contains, kdenetwork-3.2.0/kget/transfer.cpp
I don't have this file.

hw-tph 04-13-2004 05:29 PM

You will need the KDE sources. Patching and building a big piece of software like KDE can be pretty daunting a task, so perhaps it's a better idea to look for pre-built packages with the patch applied?

I am not a huge KDE fan, but just building the KDE-libs package on my laptop took close to a full day.

Håkan


All times are GMT -5. The time now is 10:14 AM.