LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-23-2005, 03:25 PM   #1
landfill
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
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.
 
Old 05-25-2005, 12:25 PM   #2
landfill
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Anyone? I'm sure it's a simple answer...I'm just a bit of a newb!
 
Old 05-25-2005, 04:42 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
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...)
 
Old 05-26-2005, 01:35 AM   #4
landfill
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks, I'll try that
 
Old 05-26-2005, 01:51 AM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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
 
Old 05-26-2005, 02:22 AM   #6
landfill
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
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.
 
Old 09-11-2005, 03:14 AM   #7
MTT1k
Member
 
Registered: Jul 2005
Location: Bulgaria [Sofia city], bukston city[neighbourhood]
Distribution: Linux Slackware 10.2 [k 2.6.12.6]
Posts: 41

Rep: Reputation: 15
Angry 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?
 
Old 09-11-2005, 05:05 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,743
Blog Entries: 4

Rep: Reputation: 76
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
applying patches in gnome ?? mlu Linux - Software 0 07-05-2005 05:59 AM
applying patches in fluxbox corbis_demon Linux - Software 1 08-14-2004 05:31 AM
Order of applying patches Steve1445 Linux - Newbie 4 01-12-2004 10:10 AM
applying software patches yocompia Slackware 4 07-29-2003 07:36 PM
Applying Patches to Solaris 8 desbyleo Solaris / OpenSolaris 2 02-06-2003 03:37 PM


All times are GMT -5. The time now is 04:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration