Changeset 206068 in webkit


Ignore:
Timestamp:
Sep 17, 2016 3:47:42 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r206020 - [CMake] Build broken with current debian testing
https://bugs.webkit.org/show_bug.cgi?id=162054

Reviewed by Žan Doberšek.

Building WTR bindings is broken now in Debian testing. The reason is that '.' is no longer included in @INC for
perl, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588017 and
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-1238.

  • Source/cmake/WebKitMacros.cmake(GENERATE_BINDINGS): Pass also the given BASE_DIR to perl executable so that it

can find modules in the current directory even if '.' is not in @INC. Also include generators in BASE_DIR to the
list of dependencies.

Location:
releases/WebKitGTK/webkit-2.14
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.14/ChangeLog

    r205962 r206068  
     12016-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [CMake] Build broken with current debian testing
     4        https://bugs.webkit.org/show_bug.cgi?id=162054
     5
     6        Reviewed by Žan Doberšek.
     7
     8        Building WTR bindings is broken now in Debian testing. The reason is that '.' is no longer included in @INC for
     9        perl, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588017 and
     10        https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-1238.
     11
     12        * Source/cmake/WebKitMacros.cmake(GENERATE_BINDINGS): Pass also the given BASE_DIR to perl executable so that it
     13        can find modules in the current directory even if '.' is not in @INC. Also include generators in BASE_DIR to the
     14        list of dependencies.
     15
    1162016-09-15  Carlos Garcia Campos  <cgarcia@igalia.com>
    217
  • releases/WebKitGTK/webkit-2.14/Source/cmake/WebKitMacros.cmake

    r204142 r206068  
    7676        list(APPEND COMMON_GENERATOR_DEPENDENCIES ${WEBCORE_DIR}/bindings/scripts/CodeGenerator${_generator}.pm)
    7777    endif ()
     78    if (EXISTS ${_base_dir}/CodeGenerator${_generator}.pm)
     79        list(APPEND common_generator_dependencies ${_base_dir}/CodeGenerator${_generator}.pm)
     80    endif ()
    7881
    7982    foreach (_file ${_input_files})
     
    8487            MAIN_DEPENDENCY ${_file}
    8588            DEPENDS ${COMMON_GENERATOR_DEPENDENCIES}
    86             COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${BINDING_GENERATOR} --defines "${_features}" --generator ${_generator} ${_idl_includes} --outputDir "${_destination}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --idlAttributesFile ${_idl_attributes_file} ${_supplemental_dependency} ${_file}
     89            COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts -I${_base_dir} ${BINDING_GENERATOR} --defines "${_features}" --generator ${_generator} ${_idl_includes} --outputDir "${_destination}" --preprocessor "${CODE_GENERATOR_PREPROCESSOR}" --idlAttributesFile ${_idl_attributes_file} ${_supplemental_dependency} ${_file}
    8790            WORKING_DIRECTORY ${_base_dir}
    8891            VERBATIM)
Note: See TracChangeset for help on using the changeset viewer.