[BusyBox] multibuild.pl script (or perl) seems broken

Larry Doolittle ldoolitt at recycle.lbl.gov
Thu Mar 15 22:09:40 UTC 2001


My computer isn't fast enough to make the problem obvious, I
got about one such failure for every two runs of multibuild.pl.
So I was able to confirm Giulio's effect.  Matt Kraai's guess
is indeed correct, I can see it clearly in the log file after
such a glitch.  I even understand _why_ it can happen.  Patch
appended.

     - Larry Doolittle   <LRDoolittle at lbl.gov>

--- /home/ldoolitt/cvs/busybox/tests/multibuild.pl	Fri Feb 16 11:14:12 2001
+++ multibuild.pl	Thu Mar 15 14:03:46 2001
@@ -53,14 +53,16 @@
 	print O "#define BB_$a\n", $trailer;
 	close O;
 	system("echo -e '\n***\n$a\n***' >>$logfile");
-	# todo: figure out why the "rm -f *.o" is needed
-	$result{$a} = system("rm -f *.o; make $make_opt busybox >>$logfile 2>&1");
+	# With a fast computer and 1-second resolution on file timestamps, this
+	# process pushes beyond the limits of what unix make can understand.
+	# That's why need to weed out obsolete files before restarting make.
+	$result{$a} = system("rm -f *.o applet_source_list; make $make_opt busybox >>$logfile 2>&1");
 	$flag = $result{$a} ? "FAILED!!!" : "ok";
 	printf("Applet %-20s: %s\n", $a, $flag);
 	$total_tests++;
 	$failed_tests++ if $flag eq "FAILED!!!";
 	# pause long enough to let user stop us with a ^C
-	select(undef, undef, undef, 0.05);
+	select(undef, undef, undef, 0.03);
 }
 
 # Clean up our mess





More information about the busybox mailing list