Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: ruben12345 on September 04, 2006, 02:05:52 AM

Title: how to use cvs and patches
Post by: ruben12345 on September 04, 2006, 02:05:52 AM
I've downloaded a .c and .h file from the cvs. How do I apply these patches or files to rockbox. Can anyone help me please. I've read the documents but I simple cannot figure out how to handle .h and .c files.

Title: Re: how to use cvs and patches
Post by: bluebrother on September 04, 2006, 09:47:19 AM
These are source files. You don't apply them with patch.
Depending on the files itself you need to add them to the source tree at the correct place and most probably will need to add the appropriate SOURCES file.
Title: Re: how to use cvs and patches
Post by: Rincewind on September 04, 2006, 10:45:53 AM
if you want to make your own rockbox build, you need the full source, not only a few files. You need to set up a development environment (linux or a virtual machine or cygwin), too.
Everything is explained in our wiki, look for "SimpleGuideToCompiling" and "UsingCVS"
Title: Re: how to use cvs and patches
Post by: tdtooke on October 17, 2006, 12:56:14 AM
I have a related question, I've looked at the UsingCVS wiki and I have a handle on how to download the current build.  I just need to know how to download a previous build that's no longer on the daily page.
Title: Re: how to use cvs and patches
Post by: bluebrother on October 17, 2006, 06:51:45 AM
use cvs -D date spec.
Title: Re: how to use cvs and patches
Post by: tdtooke on October 18, 2006, 12:08:01 AM
It took me a bit to figure out that -D needed to be a parameter of the command and not cvs but I finally figured it out.  Thanks!  I recommend updating the wiki to idiot-proof it for guys like me that want to download older sources.
Title: Re: how to use cvs and patches
Post by: larry_llama on October 18, 2006, 12:25:08 AM
I'm going through the same thing and it's not super clear. Just sifted through CVS manual and I think this is working:
cvs -z3 -d:pserver:anonymous@rockbox.haxx.se:/cvsroot/rockbox co -D yyyy-mm-dd rockbox-devel

....well it's downloading something form the repository anyway. Time will tell if it's the right one!


edit: i guess you beat me to it! i'll leave this up in case others are looking for it. I agree it would be great to add this info to the wiki. Perhaps I will complete my current project before getting into wiki crud though!
Title: Re: how to use cvs and patches
Post by: tdtooke on October 18, 2006, 12:46:09 AM
That is exactly what I typed.  I probably shoulda left an example instead of waiting on someone else to do it.
Title: Re: how to use cvs and patches
Post by: larry_llama on October 18, 2006, 01:12:22 AM
my compiled rockbox reports version 061017 though. that's today. I thought I was compiling aug 22, 2006. hrmmmmmmm
Title: Re: how to use cvs and patches
Post by: bluebrother on October 18, 2006, 05:21:07 AM
my compiled rockbox reports version 061017 though. that's today. I thought I was compiling aug 22, 2006.
That's ok -- the date reported is the time you compiled it, not the cvs date.

Btw, if you want to have a description of -D in the wiki go ahead and add it -- that's the way a wiki is intended to work.
Title: Re: how to use cvs and patches
Post by: larry_llama on October 18, 2006, 12:03:44 PM
OK that will be my next project. Since this patched build seems to be working now. Sweet!

Thanks for pushing me in the right direction guys
Title: Re: how to use cvs and patches
Post by: tdtooke on October 19, 2006, 11:55:33 PM
I just signed up on the wiki with the intention of editing that very page to include a -D description but apparently I have to be a member of TWikiUsersGroup to do that.  So I guess I would ask a member of that group to do so, or allow me membership, whichever seems best to the powers that be.
Title: Re: how to use cvs and patches
Post by: scorche on October 20, 2006, 12:02:35 AM
The wiki registration page tells you to ask in IRC after registering to get that done.  If you have not already done so, do it and tell them your wiki name so that someone in there can add it.
Title: Re: how to use cvs and patches
Post by: tdtooke on October 21, 2006, 03:15:41 AM
I thought I'd add this in case anybody finds this useful.  For some insane reason when I run CVS through my plain ol' dos prompt I always get that 'dying gasps' message with a premature disconnect.  I am able to get everything however when I run CVS through the Cygwin bash shell.  I have no idea why this is, but somebody might be having a similar problems so this might help.....maybe.
Title: Re: how to use cvs and patches
Post by: scorche on October 21, 2006, 03:55:11 AM
Also, please do not continue old threads with an unrelated question.  There was a thread not too long ago on the dying gasps message that would be well suited for this post.  :)
Title: Re: how to use cvs and patches
Post by: Rincewind on October 21, 2006, 08:54:20 AM
The Thread about dying gasps is here: http://forums.rockbox.org/index.php?topic=6947.0