Date: Sun, 31 Aug 2008 21:09:37 -0400 From: "Aryeh M. Friedman" <aryeh.friedman@gmail.com> To: Tony Sim <y2s1982@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Questions on how to use the Head files Pyun YongHyeon has created for re driver Message-ID: <48BB40D1.4030104@gmail.com> In-Reply-To: <5fb5cdcd0808312001k419cd735r55c37a15f5f76ab5@mail.gmail.com> References: <5fb5cdcd0808312001k419cd735r55c37a15f5f76ab5@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Just to answer the basic question of how to apply a patch take a quick glance at the patch to determine: 1. Does it make sense to install it 2. Determine from what dir you need to install it from (the filenames will give a good clue) Then to apply it cd to that dir and do: patch -p < [file] where [file] is the filename of the patch (don't forget to reference its patch if needed also) If the patch is for something in /usr/src or /usr/src/sys use the normal methods of rebuilding world or the kernel. Disclaimer: c(v)sup will ignore the fact you patched a file and will overwrite it. You have two options at this point: 1. Repatch after csup is done [often hard to tell if you need to] 2. Use some variant of the method in development(8) to create your own local cvs repo of the source tree then update the actual /usr/src with cvs not c(v)sup because it understands how to preserve your changes while adding new content to the file
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BB40D1.4030104>