At 2:42 Uhr -0400 16.05.2002, Jeremy Erwin wrote: >On Wednesday, May 15, 2002, at 11:50 PM, Ben Hines wrote: > >>As a test I added: >> -j `hostinfo | grep processors | tail -n1 | sed -e >>'s/^.*,[[:space:]]\([[:digit:]]*\)[[:space:]]processors.*$/\1/'` >> >>just after the "make" command in the "glib2" package and >>"gnome-core" package (i had to add the standard compilescript to >>gnome-core) >> >> >Personally, I websurf while building my packages, but if you don't >care about system responsiveness, you can spawn unlimited make jobs >(make -j) and use the "-l" flag to limit spawning to a specific >system load. The "-j" flag is not specific to the number of CPUs >available to a system-- "make -j2" can be useful on uniprocessor >systems.. Be aware that parallel make jobs have been known, in some >instances, to produce race conditions.
In fact, this happens quite a lot (race conditions). The evil things is that it *can* work, but will fail on other systems, leading to really nasty to debug errors. And don't forget that only people who actually have dual-processor systems can test these modified build scripts. Thus, I won't add such code to my packages (those that use GNU make anyway, which are not all), because I would have to spend a lot of time to first research whether a package is MP-compilation-clean, then I would need to get some testers with dual processor machines to test it. Hm, although at least in my case, I have two DP test machines at hand (the two CompileFarm boxen at SourceForge - since I am co-admin for them and have root, and permission to use them to test Fink packages, I could do it). But if package authors want to add code like that to their packages, feel free to do so, provided you test it on a DP machine and a SP machine. I.e. don't just blindly add it. If enough packages do this, and it works well, we can discuss about a %j Fink macro or anything like that. Cheers, Max -- ----------------------------------------------- Max Horn Software Developer email: <mailto:[EMAIL PROTECTED]> phone: (+49) 6151-494890 _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel