LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-24-2004, 10:36 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
.patch files


i have a .patch file that is supposed to edit a .cpp file, but it gets an error.. i was just wondering how i would manually do the patch... what does each line mean in the file... here is the part that failes

2533c2566
< QTimer *m_sysTimer = new QTimer(this);
---
> m_sysTimer = new QTimer(this);
 
Old 01-25-2004, 07:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
if you are in the SAME directory as the file you are patching, you wuold run something like

path -p0 < file.patch

the -p0 relates to the directory level you are in so 0 is the same directory.

if that doesn't work, or doesn't answer your question, please provide more information, as you've not really provided anything to go on. there is nothing abnormal about the section you have provided...
 
  


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
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 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
How do you put patch files on a boot floppy? gnunoob Mandriva 3 12-15-2003 01:51 AM
Help needed using diff files to patch squid dexteroo Linux - Newbie 0 10-06-2003 05:59 AM
patch files? gabebster Linux From Scratch 2 08-23-2003 11:10 PM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration