LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-06-2004, 04:42 PM   #1
darthczyz
Member
 
Registered: May 2003
Distribution: Redhat 9
Posts: 49

Rep: Reputation: 15
applying a patch


hey guys,
newbie question for you. i'm trying to patch my orinoco wireless card. i went to this dude's site and found his patch, but i'm not sure how to apply it. when i clicked on the download link, it displayed the results of a diff that he had run against his new .h and .c. is there anyway i can run diff to make those changes to a new file, or am i going to have to manually make the changes in the .c and .h? also, once i've made those changes, how do i compile the new .o file so that it picks up the changes? i cannot remember the gcc command to make a .o, unless it's just gcc -o orinoco_cs.c orinoco_cs.o.

thanks for any help.
 
Old 05-06-2004, 05:55 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
you need to use the patch program, in the directory containing the file to be patched:

Code:
patch -p0 < the_patch_file
 
Old 05-07-2004, 09:44 AM   #3
darthczyz
Member
 
Registered: May 2003
Distribution: Redhat 9
Posts: 49

Original Poster
Rep: Reputation: 15
thanks man, always wondered how that worked.

is anyone out there familiar with recompiling the wireless lan drivers? in the wireless directory there's a makefile, but i can't figure out what options it wants.
 
  


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 a kernel patch.. RoaCh Of DisCor Linux - Software 2 05-07-2005 08:41 PM
applying kernel patch pirozzi Debian 1 12-01-2004 08:47 AM
applying patch? alaios Linux - General 1 11-29-2004 11:41 AM
Applying patch on nmap6 Kresimir Linux - Software 0 09-16-2004 06:55 AM
Applying XFree patch jspaceman Slackware 2 02-12-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 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