Hi Thibaut, On Sunday 16 September 2007, Thibaut VARENE wrote: > On 9/16/07, Frank S. Thomas <[EMAIL PROTECTED]> wrote: > > Ok, so a good solution for your problem would be, if it were possible to > > set the platform name, which uses the client for identification, in the > > client's configuration file cc_config.xml, because the alternate platform > > mechanism is not applicable in your situation. Right? > > Richtig! ;-)
I just had a look at the code and specifying an alternate platform in the cc_config.xml is possible in only three lines of code, see the attached patch. I've tested it with a i686-pc-linux-gnu client, after adding <alt_platform>windows_intelx86</alt_platform> to the <options> element in cc_config.xml and attaching PrimeGrid (which only offers applications for Windows) to my client, it indeed downloaded the windows_intelx86 application and a workunit. Could you please try this patch yourself and verify that it works for you. However I'm not sure that this is the right sollution, because IMHO it should be possible to set more than one alternate platforms. Instead of a single elment, it should be possible to have something like this: <alternate_platforms> <platform>alternative_platform</platform> <platform>another_alternative_platform</platform> <platform>a_third_alternative_platform</platform> </alternate_platforms> What do you think? Grüße, Frank -- Die Garde stirbt, aber sie ergibt sich nicht!
diff -Naur boinc-5.10.8.orig/client/cs_platforms.C boinc-5.10.8/client/cs_platforms.C --- boinc-5.10.8.orig/client/cs_platforms.C 2007-05-07 21:38:27.000000000 +0200 +++ boinc-5.10.8/client/cs_platforms.C 2007-10-11 13:00:17.000000000 +0200 @@ -93,6 +93,8 @@ #endif + if (strlen(config.alt_platform)>0) add_platform(config.alt_platform); + if (config.no_alt_platform) { PLATFORM p = platforms[0]; platforms.clear(); diff -Naur boinc-5.10.8.orig/client/log_flags.C boinc-5.10.8/client/log_flags.C --- boinc-5.10.8.orig/client/log_flags.C 2007-06-11 23:30:26.000000000 +0200 +++ boinc-5.10.8/client/log_flags.C 2007-10-11 13:05:37.000000000 +0200 @@ -216,6 +216,7 @@ if (xp.parse_bool(tag, "disallow_attach", disallow_attach)) continue; if (xp.parse_bool(tag, "os_random_only", os_random_only)) continue; if (xp.parse_bool(tag, "no_alt_platform", no_alt_platform)) continue; + if (xp.parse_str(tag, "alt_platform", alt_platform, sizeof(alt_platform))) continue; msg_printf(NULL, MSG_USER_ERROR, "Unparsed tag in %s: <%s>\n", CONFIG_FILE, tag ); diff -Naur boinc-5.10.8.orig/client/log_flags.h boinc-5.10.8/client/log_flags.h --- boinc-5.10.8.orig/client/log_flags.h 2007-05-07 21:38:27.000000000 +0200 +++ boinc-5.10.8/client/log_flags.h 2007-10-11 13:02:23.000000000 +0200 @@ -91,6 +91,7 @@ bool disallow_attach; bool os_random_only; bool no_alt_platform; + char alt_platform[256]; CONFIG(); void defaults();
signature.asc
Description: This is a digitally signed message part.