Applying patches.
Hi,
I'm trying to get ussp-push to work with OpenOBEX in order to send files to my phone via bluetooth. I found this guide: http://www.frasunek.com/HOWTO-Nokia7650-Bluetooth.txt The problem is, I'm not sure how to apply the patch to the source code for ussp-push. I tried compiling without applying the patch but it complains about stuff like guint32 being undeclared. I'm pretty sure that the patch is the answer. If anyone could help me out, I'd appreciate it a lot! Cheers in advance, L. |
Anyone? I'm sure it's a simple answer...I'm just a bit of a newb! ;)
|
man patch will give you the details, but typically you just download the patch, place it in the root directory of the source code being patched, then:
$ patch -p1 < patchfile Make sure the patch is gunzipped first...if you get errors you may need to adjust the 'p' number (see man patch for how this works...) |
Thanks, I'll try that :D
|
make sure you read the info provided by the patch as there are different types
generally cd into the top of the source directory and leave the patchfile outside the source directory then patch -Np1 -i ../filename.patch -N says to ignore a patch that seems to be already applied the -p argument is related to the target prefix in the patch file (relative path within the source tree) you might have to read the file to figure this out if it doesn't work normally -i says the input is your patchfile |
I tired your suggestions but got an error about a malformed line in the patch. I also had to manually type in the name of the file to patch. Is this normal?
I just copied the text from the page into a file called work.patch, is that ok? Thanks, L. |
Patching KDE
I Have just downloaded post-3.4.2-kdebase-kcheckpass.diff
And i want to apply it to my KDE 3.4.2 [i haven't got the source of KDE 3.4.2 ONLY the binary install package - the tgz-s ] How you suggest to apply the patch? |
MTT1k:
You will have to download the source code to apply the patch. Were there no instructions provided with the patch? The problem is that the kde source code is huge, and is distributed in 10 or 11 different packages. I don't know if your patch is supposed to be applied against kde_base kde_libs etc etc... |
All times are GMT -5. The time now is 03:41 AM. |