[Webkit-unassigned] [Bug 162256] New: Use 'use lib $FindBin::Bin' to append Perl module include path

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 19 23:10:34 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=162256

            Bug ID: 162256
           Summary: Use 'use lib $FindBin::Bin' to append Perl module
                    include path
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com
                CC: lforschler at apple.com

We need to use '-I' switch to explicitly append Perl module include path to invoke some Perl scripts such like following:

> COMMAND ${PERL_EXECUTABLE} -I${WEBCORE_DIR}/bindings/scripts ${NAMES_GENERATOR} --input ${_infile} --outputDir ${DERIVED_SOURCES_WEBCORE_DIR}

This can be solved by using 'use lib'. 

> use lib $FindBin::Bin

Documentation: http://perldoc.perl.org/lib.html

Some scripts already do this. For example, build-webkit do that.

  https://trac.webkit.org/browser/trunk/Tools/Scripts/build-webkit?rev=204444#L41

I'd like to change following script files:

  Source/WebCore/bindings/scripts/generate-bindings.pl
  Source/WebCore/bindings/scripts/preprocess-idls.pl
  Source/WebCore/css/makegrammar.pl
  Source/WebCore/css/makeprop.pl
  Source/WebCore/css/makevalues.pl
  Source/WebCore/dom/make_dom_exceptions.pl
  Source/WebCore/dom/make_event_factory.pl
  Source/WebCore/dom/make_names.pl
  Source/WebCore/page/make_settings.pl

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160920/7e9a4e5d/attachment.html>


More information about the webkit-unassigned mailing list