Re: Reading and applying patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ed Greshko wrote:

--- mlrate/mlrate.c 2003-01-27 10:31:31.000000000 +0100 I assume that I should copy and paste the text into a separate file and
save it. But how do I apply the patch to the source file, which is
mlrate.c?

Yes, be careful of linewrap if it did not come as an attachment. Because the patch file mentions m1rate.c, you don't have to specify that anywhere else.

Normally, it you simply do "patch -p0 < patchfilename"

That's right, just to explain the -p option says how many levels of directory to chop off the left hand side of filepaths talked about in the patch file. Sometimes patches come with more or less of the project path from the originator, and depending on what your current working directory is when you apply the patch, you can need to mess with it. -p0 is the case where you are in the same relative directory as the guy was when he made the patch. -p1 is for if you are one level down in your tree and need to lose the first part of his paths, and so on.

-Andy

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux