[Foresight-devel] Re: HowTo execute a program w/ rMake?

Michael K. Johnson johnsonm at rpath.com
Mon Aug 18 13:07:58 EDT 2008


On Mon, Aug 18, 2008 at 11:10:21AM -0400, Erik Southworth wrote:
> How would I do: { r.Run('./selfextractor.bin') } in rMake?
> 
> It 'cvc cooks' but rMake can't find the file.
> Seems likes it's reading the *cmd* as a literal whole and doesn't understand
> I want to run the program so it can dump it's contents.

Almost certainly, "selfextractor.bin" depends on some other program
that can't be discovered automatically.  You can discover this using
the strace program -- probably something like:
strace -o /tmp/selfextrator.out -etrace=exec -f selfextractor.bin

r.Run() isn't really any different with cvc cook or rMake -- it's just
that in the rMake case you don't have as much stuff installed (just
what is listed as required to build) and so that's almost always the
source of differences between cvc cook and rMake: rMake builds should
be repeatable, not just build on some system that happens to have the
right things installed.


More information about the Foresight-devel mailing list