Changeset 152191 in webkit


Ignore:
Timestamp:
Jun 28, 2013 3:21:03 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Tools] Add support for "webKitBranchBuild" git option when calculating jhbuildPath
https://bugs.webkit.org/show_bug.cgi?id=118195

Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-06-28
Reviewed by Daniel Bates.

Currently, ports that use jhbuild fail to determine jhbuild directory
when "webKitBranchBuild" git configuration property is enabled. To reproduce
that issue in Efl port, enable that flag in .git/config, switch to a git branch
other than "master" and try to build webkit. The build will fail to
locate dependencies due to lack of pkg-config paths which should be set
by jhbuild.

For more details about "webKitBranchBuild" option, see:
https://trac.webkit.org/wiki/UsingGitWithWebKit

  • Scripts/webkitdirs.pm:

(getJhbuildPath):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r152188 r152191  
     12013-06-28  Nick Diego Yamane  <nick.yamane@openbossa.org>
     2
     3        [Tools] Add support for "webKitBranchBuild" git option when calculating jhbuildPath
     4        https://bugs.webkit.org/show_bug.cgi?id=118195
     5
     6        Reviewed by Daniel Bates.
     7
     8        Currently, ports that use jhbuild fail to determine jhbuild directory
     9        when "webKitBranchBuild" git configuration property is enabled. To reproduce
     10        that issue in Efl port, enable that flag in .git/config, switch to a git branch
     11        other than "master" and try to build webkit. The build will fail to
     12        locate dependencies due to lack of pkg-config paths which should be set
     13        by jhbuild.
     14
     15        For more details about "webKitBranchBuild" option, see:
     16        https://trac.webkit.org/wiki/UsingGitWithWebKit
     17
     18        * Scripts/webkitdirs.pm:
     19        (getJhbuildPath):
     20
    1212013-06-28  Jessie Berlin  <jberlin@apple.com>
    222
  • trunk/Tools/Scripts/webkitdirs.pm

    r152104 r152191  
    18801880sub getJhbuildPath()
    18811881{
    1882     return join('/', baseProductDir(), "Dependencies");
     1882    my @jhbuildPath = File::Spec->splitdir(baseProductDir());
     1883    if (isGit() && isGitBranchBuild() && gitBranch()) {
     1884        pop(@jhbuildPath);
     1885    }
     1886    push(@jhbuildPath, "Dependencies");
     1887    return File::Spec->catdir(@jhbuildPath);
    18831888}
    18841889
Note: See TracChangeset for help on using the changeset viewer.