How to apply a KDE patch?

openSUSE 11.1, KDE 3.5.10 release 21.9.

When I try to copy files using fish:// in Konqueror over SSH, my
transfer almost always stalls on a random file if there are a
significant number of files being copied. This appears to be a bug in
KDE’s kioslaves:

‘Bug 147948 – copying via fish stalls’
(http://bugs.kde.org/show_bug.cgi?id=147948)

and in that bug report a user posted a patch:

‘View of /branches/KDE/3.5/kdebase/kioslave/fish/fish.cpp’
(http://tinyurl.com/axggl9)

but I don’t know how to apply it. How do I apply this patch?


mightyteegar

mightyteegar’s Profile: http://forums.opensuse.org/member.php?userid=20170
View this thread: http://forums.opensuse.org/showthread.php?t=405141

Use patch ‘Howto apply a patch file to my Linux / UNIX source code’
(http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/).

Cheers


tusharjoshi

tusharjoshi’s Profile: http://forums.opensuse.org/member.php?userid=13276
View this thread: http://forums.opensuse.org/showthread.php?t=405141

Hrm … the patch from that bug report doesn’t appear to be a diff
patch, but instead the full source code for a fish kioslave. The
filename is fish.cpp, and on my system I found three possible candidates
for a matching existing binary:

/opt/kde3/lib/kde3/kio_fish.la
/opt/kde3/lib/kde3/kio_fish.so
/usr/lib/vhook/fish.so

So problem 1 is that I don’t know exactly how to compile the source for
fish.cpp that I downloaded from the bug report (do I need specific
flags? what is my output file name? etc.) and problem 2 is that I don’t
know where the compiled binary would live on my system.

I asked here first because I’m not overly familiar with where openSUSE
puts all its files, but perhaps this would be a better question on a
KDE-specific forum? I don’t know where to go from here.


mightyteegar

mightyteegar’s Profile: http://forums.opensuse.org/member.php?userid=20170
View this thread: http://forums.opensuse.org/showthread.php?t=405141