Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Issue 2521893002: webkit: Catch OSError for when gperf isn't avaliable. (Closed)

Created:
4 years, 1 month ago by mithro
Modified:
3 years, 10 months ago
Reviewers:
meade_UTC10
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

webkit: Catch OSError for when gperf isn't avaliable. Previously the error output would look like this; ---- [48/17064] ACTION //third_party/WebKit/Source/core:make_core_generated_css_property_names(//build/toolchain/linux:clang_x64) FAILED: gen/blink/core/CSSPropertyNames.cpp gen/blink/core/CSSPropertyNames.h python ../../third_party/WebKit/Source/build/scripts/make_css_property_names.py ../../third_party/WebKit/Source/core/css/CSSProperties.in --output_dir gen/blink/core --gperf gperf Traceback (most recent call last): File "../../third_party/WebKit/Source/build/scripts/make_css_property_names.py", line 238, in <module> in_generator.Maker(CSSPropertyNamesWriter).main(sys.argv) File "/usr/local/google/home/djd/chromium/src/third_party/WebKit/Source/build/scripts/in_generator.py", line 108, in main writer.write_files(options.output_dir) File "/usr/local/google/home/djd/chromium/src/third_party/WebKit/Source/build/scripts/in_generator.py", line 60, in write_files self._write_file_if_changed(output_dir, generator(), file_name) File "../../third_party/WebKit/Source/build/scripts/make_css_property_names.py", line 233, in generate_implementation gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory [79/17064] CXX obj/third_party/angle/libANGLE/Caps.o ---- ninja: Entering directory `out/Release' [2/3] ACTION //third_party/WebKit/Source/core:make_core_generated_css_property_names(//build/toolchain/linux:clang_x64) FAILED: python ../../third_party/WebKit/Source/build/scripts/make_css_property_names.py ../../third_party/WebKit/Source/core/css/CSSProperties.in --output_dir gen/blink/core --gperf gperf --key-positions=*: gperf: command not found Traceback (most recent call last): File "../../third_party/WebKit/Source/build/scripts/make_css_property_names.py", line 238, in <module> in_generator.Maker(CSSPropertyNamesWriter).main(sys.argv) File "/fast/chrome/src/third_party/WebKit/Source/build/scripts/in_generator.py", line 108, in main writer.write_files(options.output_dir) File "/fast/chrome/src/third_party/WebKit/Source/build/scripts/in_generator.py", line 60, in write_files self._write_file_if_changed(output_dir, generator(), file_name) File "../../third_party/WebKit/Source/build/scripts/make_css_property_names.py", line 234, in generate_implementation return subprocess.check_output(gperf_args, universal_newlines=True, shell=True) File "/usr/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['gperf', '--key-positions=*', '-P', '-n', '-m', '50', '-D']' returned non-zero exit status 127 ---- BUG=666161 Review-Url: https://codereview.chromium.org/2521893002 Cr-Commit-Position: refs/heads/master@{#447256} Committed: https://chromium.googlesource.com/chromium/src/+/7eb63c7a0993f13b444e4a2fda274d0d7df9a576

Patch Set 1 #

Patch Set 2 : Fixed comment slightly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M third_party/WebKit/Source/build/scripts/make_css_property_names.py View 1 1 chunk +10 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (16 generated)
mithro
4 years, 1 month ago (2016-11-22 03:54:28 UTC) #4
mithro
Poke?
4 years ago (2016-11-30 04:05:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2521893002/20001
4 years ago (2016-11-30 06:32:06 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-11-30 06:32:07 UTC) #11
Timothy Loh
On 2016/11/30 04:05:39, mithro wrote: > Poke? scottmg@ closed the bug as WontFix.
4 years ago (2016-12-01 03:01:03 UTC) #12
Timothy Loh
I'm not sure this error message helps. Isn't the user likely to just manually install ...
4 years ago (2016-12-05 03:50:03 UTC) #13
djd-OOO-Apr2017
On 2016/12/05 03:50:03, Timothy Loh wrote: > I'm not sure this error message helps. Isn't ...
4 years ago (2016-12-07 04:37:11 UTC) #14
mithro
Hi Eddy, Since Tim is no longer on style team, could you look at this ...
3 years, 10 months ago (2017-01-30 20:10:30 UTC) #17
meade_UTC10
lgtm
3 years, 10 months ago (2017-01-31 00:12:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2521893002/20001
3 years, 10 months ago (2017-01-31 17:24:02 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 17:29:15 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7eb63c7a0993f13b444e4a2fda27...

Powered by Google App Engine
This is Rietveld 408576698