Linux: version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:30:39 EST 2005 Compiler: gcc (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4) Product: WebKit nightly build (03.03.2008) Command: WebKit/WebKitTools/Scripts/build-webkit --qt What I got: "Could not find top level webkit directory above source directory using FindBin." Comment: The root cause is extra slash at the end of the path returned by FindBin. How to avoid: 1)open webkitdirs.pm (in the Scripts folder) 2) in the function determineSourceDir after line $sourceDir = $FindBin::Bin; insert $sourceDir=s|/$||;
Confirming bug as it seems a pretty common issue with $FindBin. Switching it to "Tools / Tests".
I should add that our code checks just after for s|/[^/]+$|| which will fail if $FindBin::Bin ends with a '/' (and this is the common issue I was mentioning).
Created attachment 20225 [details] trivial fix
Comment on attachment 20225 [details] trivial fix Seems like we should remove any number of trailing / characters, not just one, but the change seems fine. r=me
Committed in r31469 with Darin's comment.