Fedora Linux Support Community & Resources Center
Old 24th February 2007, 04:33 PM
awt586 Offline
Registered User
Join Date: Oct 2006
Posts: 10
How-To Apply a diff

The Fedora Bible and online research has produced little to nothing on the subject of how to apply a patch or .diff file. Can anyone provide a couple of steps or procedure in how to do this?

Seems this is something overlooked across the board regardless of distro. How to install from an rpm, deb or source is pretty well documented but the diff's are - well..... being mysterious.

Reply With Quote
Old 24th February 2007, 06:19 PM
markkuk Offline
Registered User
Join Date: Apr 2005
Location: Finland
Posts: 5,072
Use the patch command. See "man patch" for details.
Reply With Quote
Old 24th February 2007, 07:17 PM
awt586 Offline
Registered User
Join Date: Oct 2006
Posts: 10
Already done that but this is cryptic at best.

What does
patch - apply a diff file to an original

patch [options] [originalfile [patchfile]]

but usually just

patch -pnum <patchfile

tell me about the price of eggs in China? To explain is one thing but an example would lend a great deal to completing the dialog and enhance if not improve the comprehension factor here.

I'm trying to apply a diff patch from the ivtv source for mplayer to provide a tv or viewing capability for /dev/video0 which is my video capture card (Hauppauge PVR-150). I don't want to go through setting up MythTV just to watch TV. It's ludicrous. To simply view this shouldn't be such a chore when apps like TVTime, XAWTV are available but only for BTTV types of devices not one's such as mine or many others. DVB cards have the capabilities like BTTV but not MPEG cards which are the majority. So.....

Without sounding rude; thanks but no thanks. You didn't answer my question.
Reply With Quote
Old 24th February 2007, 08:57 PM
jcliburn Offline
Registered User
Join Date: Nov 2004
Location: Mississippi, USA
Posts: 1,180
It's been awhile since I tried it, but mplayer should already play from /dev/video0. Does this not work for you?

mplayer -vo xv /dev/video0

(I might not quite understand what you're trying to do though...)

Don't know what else to tell you about applying a patch; Markku's recommendation is spot on. The value for -p is the most important thing to worry about, and the -p value you use depends upon how your diff file was created. Sometimes you can navigate to the directory of the file to be patched and execute:

patch -p1 < /path/to/patchfile

But this assumes your patchfile was created in such a way that the use of -p1 is appropriate. Sorry, but the manpage is your best bet. Focus on the -p explanation and look at the first few lines of your .diff file to see which -p num you need to use.
Reply With Quote

apply, diff, howto

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning diff languages to diff users deacky_blue Using Fedora 2 17th February 2009 02:07 PM
How to apply kernel patches? The_Source_HIM Using Fedora 3 8th February 2008 08:39 PM
how to apply patch scotta3234 Using Fedora 1 9th February 2007 04:05 AM
How to make it like you didn't apply an update royeo Using Fedora 3 3rd November 2006 11:51 AM
HELP!Cannot apply the CONNMARK patch sherman Using Fedora 0 25th February 2005 05:00 AM

Current GMT-time: 18:48 (Saturday, 19-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat