Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-09-2005, 02:56 PM   #1
LQ Newbie
Registered: Oct 2004
Location: winder, ga
Posts: 5

Rep: Reputation: 0
I feel like an idiot but how do you patch...

code that you want to compile.

Specifically the Sphinx text to speech that has problems with the gcc compiler

the patch is found at:
blahblah blah://
Old 02-09-2005, 03:18 PM   #2
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Well in that case you would save that diff (just the actual part that's the patch) as a file called patch (for example) and go to the directory where the source is and do

patch -px < patch

where x depends on what directory level you are in. it will be a number 0-4 or whatever... Depends on how many /'s you need to strip off the diff file. Man patch will give you some hints, tho trial and error might be quicker. The wrong number will just give an error
Old 02-11-2005, 05:38 PM   #3
Senior Member
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45

this provides a nice example of patching


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
help an idiot with kenerl patch! ngan_yine Slackware 2 03-16-2005 10:41 AM
Yet again I feel like an idiot...(about drivers) SonicGT Linux - Newbie 2 11-07-2004 05:41 PM
Problems upgrading glibc. Very Frustrated. Feel like an idiot. :confused: maruson Linux - Software 2 08-25-2004 04:34 PM
Linux Makes Me Feel Like an Idiot GM287 Linux - General 27 06-28-2004 06:55 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 PM.

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