Chromium Code Reviews
Descriptionwebkit: Catch OSError for when gperf isn't avaliable.
This was fixed for make_css_property_names.py in
https://crrev.com/2521893002 but I missed make_css_value_keywords.py
which also needed the change.
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 "../../third_party/WebKit/Source/build/scripts/make_css_property_names.py", line 242, in generate_implementation
raise subprocess.CalledProcessError(127, gperf_args, output='Command not found.')
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/2691083003
Cr-Commit-Position: refs/heads/master@{#450111}
Committed: https://chromium.googlesource.com/chromium/src/+/9eb78b78bdc41b99596e1b03c40e8eabfa6fe957
Patch Set 1 #
Messages
Total messages: 8 (4 generated)
|
|||||||||||||||||||