Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: iPodFoo on October 29, 2006, 03:09:16 PM

Title: Create rejection file from dry runs?
Post by: iPodFoo on October 29, 2006, 03:09:16 PM
Hi.

Couple of questions.

1) Is there a way to have the rejection file be created when doing a dry run to list HUNK errors? I ask because if I apply the patch then do the -R then try again, it gives a different HUNK error. It seems the -R doesnt work very well. Its really annoying. The rejection file only seems to be made when I actually apply the patch. Not very useful.

2) I have the cross-compiler installed (debian vmware on XP), how do I make a simulator for XP from debian?

Thanks.
Title: Re: Create rejection file from dry runs?
Post by: LinusN on October 30, 2006, 03:15:27 AM
1) I'm not sure you can do that.

2) You don't. You build the simulator for Debian.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 07:34:35 AM
Quote
1) I'm not sure you can do that.
Shame. Would be much more useful.

Quote
2) You don't. You build the simulator for Debian.
Oh. I thought installing the cross-compiler with rockboxdev.sh allowed you to build for other platforms.
Title: Re: Create rejection file from dry runs?
Post by: saratoga on October 31, 2006, 08:24:25 AM
Quote
2) You don't. You build the simulator for Debian.
Oh. I thought installing the cross-compiler with rockboxdev.sh allowed you to build for other platforms.

Other platforms == Ipod, Irivier, etc.  The UI sim doesn't run under Windows, unless you've got cygwin installed, and in that case it needs to be compiled under cygwin to use it's .dlls IIRC.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 08:35:45 AM
I see. So whats the point of the rockboxdev.sh script? How come i could compile and build for any platform fine before . I followed this (http://forums.rockbox.org/index.php?topic=4689.0) tutorial installing debian on xp, did it automatically run that script?
Title: Re: Create rejection file from dry runs?
Post by: lowlight on October 31, 2006, 09:33:53 AM
rockboxdev.sh builds the cross-compilers that compile rockbox to run on the targets (archos, iriver, ipod, etc). These cross-compilers come pre-built in the Debian vmware image, so no need to run the script.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 09:59:27 AM
wish Id known that beforehand. How can I 'uninstall' what the rockboxdev.sh has done or is it too 'built in' now?
Title: Re: Create rejection file from dry runs?
Post by: saratoga on October 31, 2006, 10:06:57 AM
wish Id known that beforehand. How can I 'uninstall' what the rockboxdev.sh has done or is it too 'built in' now?

You could delete the cross compilers. However, if you do that, you won't be able to build Rockbox at all.  
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 02:15:57 PM
Guess Ill have to uninstall vmware and start again.  :-\

Anything I should be aware of? Is it just a simple case of uninstalling the VMWare Player and the 7-Zip 4.42 in XP?
Title: Re: Create rejection file from dry runs?
Post by: saratoga on October 31, 2006, 02:28:48 PM
Guess Ill have to uninstall vmware and start again.  :-\

Anything I should be aware of? Is it just a simple case of uninstalling the VMWare Player and the 7-Zip 4.42 in XP?

Why do you want to do this?
Title: Re: Create rejection file from dry runs?
Post by: Llorean on October 31, 2006, 02:36:54 PM
If you want a clean debian image, just delete the folder where you extracted the current one, and redownload and extract it (assuming you don't have the original .7z file around still).

You don't need to reinstall anything else.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 05:42:25 PM
Llorean: Do you mean delete the vmware folder which has a .nvram, .vmx and a couple of .vmdk files in?
 
Quote
Why do you want to do this?

Because I want to go back to how it was before I ran the rockboxdev.sh script. Its using up too much space on the drive and its changed the configuration slightly. Whenever I compile it keeps asking me to recommend upgrading the gcc.
Title: Re: Create rejection file from dry runs?
Post by: Llorean on October 31, 2006, 05:44:32 PM
It should be recommending you upgrade Make, not GCC...
Title: Re: Create rejection file from dry runs?
Post by: saratoga on October 31, 2006, 05:46:35 PM
Does rerunning the script even change anything?
Title: Re: Create rejection file from dry runs?
Post by: Llorean on October 31, 2006, 05:48:08 PM
It's possible it coudl overwrite your versions of the GCC crosscompilers with slightly different versions (the Debian image is older than the script, I *think* but I'm not sure) but it shouldn't introduce any new error messages.

The message regarding outdated Make occurs on the debian VMWare image no matter what right now, as it includes Make v 3.80
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 06:07:07 PM
This is what debian says when I 'make':

Quote
Makefile:11: Consider upgrading to GNU make 3.81+ for optimum build performance

Then it continues as normal.

I didnt get that before I ran the rockboxdev.sh script.


If its of any use, I typed the following to get more detail:

I ran gcc -v and have gcc version 3.3.5 (Debian 1:3.3.5-13).

$ m68k-elf-gcc --version gives m68k-elf-gcc (GCC) 3.4.6

$ arm-elf-gcc --version gives arm-elf-gcc (GCC) 4.0.2
Title: Re: Create rejection file from dry runs?
Post by: Llorean on October 31, 2006, 06:11:53 PM
Notice that it says consider upgrading GNU make.

NOWHERE does it say upgrading GCC. And, as I said, if you read my discussion, that is to be expected. The debian image only comes with make 3.80 anyway. The fact that you first noticed it after running the .sh is either coincidence or due to the fact that you hadn't compiled a new enough copy of the source prior to running it to get the message.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 06:36:49 PM
Fair enough. I assumed gnu, gcc, make was all interlinked someway.

Ill put it down to coincidence for the update message!

So Llorean, do I delete the vmware folder which has a .nvram, .vmx and a couple of .vmdk files in?
Title: Re: Create rejection file from dry runs?
Post by: Llorean on October 31, 2006, 06:40:36 PM
Yes.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on October 31, 2006, 07:03:30 PM
Thanks.

Do appreciate it.
Title: Re: Create rejection file from dry runs?
Post by: NicolasP on November 05, 2006, 06:49:25 PM
It seems you can create rejection files from dry runs like this :
Code: [Select]
patch -p0 --dry-run --global-reject-file=foo.rej < path-to-your-diffI haven't tried it personally (found it here (http://www.logic.at/people/preining/iriver/patches/README.rediffing))
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on November 06, 2006, 07:01:18 PM
Hmm.

Looked at it and tried it out but it returns with:

patch: unrecognized option `--global-reject=foo.rej'
patch: Try `patch --help' for more information.


So I looked at help and there was an option called --reject-file, so I used that like so:

patch -p0 --dry-run --reject-file=foo.rej < path-to-your-diff

But no file gets created.  >:(
Title: Re: Create rejection file from dry runs?
Post by: NicolasP on November 07, 2006, 07:51:58 AM
looks to me like you did
Quote
patch -p0 --dry-run --global-reject=foo.rej < path-to-your-diff
and not
Quote
patch -p0 --dry-run --global-reject-file=foo.rej < path-to-your-diff
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on November 07, 2006, 09:13:51 AM
sorry. forgot to type the "file" bit. It doesnt change anything though. Still doesnt recognise the command.

 :(
Title: Re: Create rejection file from dry runs?
Post by: bascule on November 07, 2006, 09:21:34 AM
sorry. forgot to type the "file" bit. It doesnt change anything though. Still doesnt recognise the command.


I can confirm that the --global-reject-file=foo.rej option does not work for me, either, under the VMware environment.
Title: Re: Create rejection file from dry runs?
Post by: NicolasP on November 08, 2006, 07:03:16 PM
from the PATCH manpage :
Quote
--global-reject-file=rejectfile
Put all rejects into rejectfile instead of creating separate reject files for all files that have rejects. The rejectfile will contain headers that identify which file each reject refers to. Note that the global reject file is created even if --dry-run is specified (while non-global reject files will only be created without --dry-run).
I tried it on my system and it did work. I'm on kubuntu and my 'patch' version is 2.5.9.
Title: Re: Create rejection file from dry runs?
Post by: iPodFoo on November 08, 2006, 07:15:41 PM
I have patch version 2.5.9 for debian.

I asked the guy from that website how he has that working, he said:
Quote
IU found the solution: the --global-reject-file is a Debian patch
addition. Sorry for this.
I assume you'd have to patch debian itself with a patch that does the global-reject-file command? ???

Is is possible to update debian?