WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
17665
determineSourceDir() dies if $sourceDir has a trailing backslash
https://bugs.webkit.org/show_bug.cgi?id=17665
Summary
determineSourceDir() dies if $sourceDir has a trailing backslash
Dmitriy Kazachkov
Reported
2008-03-03 23:31:24 PST
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|/$||;
Attachments
trivial fix
(1.24 KB, patch)
2008-03-30 16:24 PDT
,
Julien Chaffraix
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Julien Chaffraix
Comment 1
2008-03-30 15:34:55 PDT
Confirming bug as it seems a pretty common issue with $FindBin. Switching it to "Tools / Tests".
Julien Chaffraix
Comment 2
2008-03-30 15:46:13 PDT
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).
Julien Chaffraix
Comment 3
2008-03-30 16:24:03 PDT
Created
attachment 20225
[details]
trivial fix
Darin Adler
Comment 4
2008-03-30 16:39:51 PDT
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
Julien Chaffraix
Comment 5
2008-03-31 13:19:19 PDT
Committed in
r31469
with Darin's comment.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug