<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>160659</bug_id>
          
          <creation_ts>2016-08-08 08:19:33 -0700</creation_ts>
          <short_desc>Do not check if WebKitLibraries folder exists on EFL and GTK</short_desc>
          <delta_ts>2016-08-09 00:27:01 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gyuyoung Kim">gyuyoung.kim</reporter>
          <assigned_to name="Gyuyoung Kim">gyuyoung.kim</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>lforschler</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1218491</commentid>
    <comment_count>0</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-08-08 08:19:33 -0700</bug_when>
    <thetext>As far as I know WebKitLibraries is only needed by mac and win ports though, EFL and GTK ports have checked whether it exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218492</commentid>
    <comment_count>1</comment_count>
      <attachid>285566</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-08-08 08:21:26 -0700</bug_when>
    <thetext>Created attachment 285566
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218493</commentid>
    <comment_count>2</comment_count>
      <attachid>285566</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2016-08-08 08:35:21 -0700</bug_when>
    <thetext>Comment on attachment 285566
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285566&amp;action=review

&gt; Tools/Scripts/build-webkit:161
&gt; -if (!isIOSWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;) {
&gt; +if ((!isIOSWebKit() &amp;&amp; !isEfl() &amp;&amp; !isGtk()) &amp;&amp; !-d &quot;WebKitLibraries&quot;) {
&gt;      die &quot;Error: No WebKitLibraries directory found. Please do a fresh checkout.\n&quot;;
&gt;  }

AFAIK WebKitLibraries is used by Apple pots: Mac, iOS and Win too. There are *IOS* files in 
WebKitLibraries directory, so I don&apos;t understand this !isIOSWebKit() check. It was added 
by https://trac.webkit.org/changeset/161685 , we should as Daniel if we still need it for iOS.

I prefer whitelisting these platforms instead of blacklisting others. But we 
can be conservative until get answer from Apple, and leave iOS unchanged.

- if (!isIOSWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;)
+ if (!isIOSWebKit() &amp;&amp; isAppleWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218537</commentid>
    <comment_count>3</comment_count>
      <attachid>285566</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2016-08-08 11:39:57 -0700</bug_when>
    <thetext>Comment on attachment 285566
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=285566&amp;action=review

&gt; Tools/Scripts/build-webkit:159
&gt; +if ((!isIOSWebKit() &amp;&amp; !isEfl() &amp;&amp; !isGtk()) &amp;&amp; !-d &quot;WebKitLibraries&quot;) {

We should remove the !isIOSWebKit() from this line. As Csaba pointed out in comment #2, we expect the directory WebKitLibraries to exist when building the Apple WebKit ports.

For completeness, originally the iOS port did not make use of files in directory WebKitLibraries. So, we skipped the directory existence check for this directory when building for iOS.

&gt;&gt; Tools/Scripts/build-webkit:161
&gt;&gt;  }
&gt; 
&gt; AFAIK WebKitLibraries is used by Apple pots: Mac, iOS and Win too. There are *IOS* files in 
&gt; WebKitLibraries directory, so I don&apos;t understand this !isIOSWebKit() check. It was added 
&gt; by https://trac.webkit.org/changeset/161685 , we should as Daniel if we still need it for iOS.
&gt; 
&gt; I prefer whitelisting these platforms instead of blacklisting others. But we 
&gt; can be conservative until get answer from Apple, and leave iOS unchanged.
&gt; 
&gt; - if (!isIOSWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;)
&gt; + if (!isIOSWebKit() &amp;&amp; isAppleWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;)

From my understanding the WinCairo port also makes use of WebKitLibraries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218658</commentid>
    <comment_count>4</comment_count>
      <attachid>285621</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-08-08 17:49:12 -0700</bug_when>
    <thetext>Created attachment 285621
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218659</commentid>
    <comment_count>5</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-08-08 17:51:37 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 285566 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=285566&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/build-webkit:159
&gt; &gt; +if ((!isIOSWebKit() &amp;&amp; !isEfl() &amp;&amp; !isGtk()) &amp;&amp; !-d &quot;WebKitLibraries&quot;) {
&gt; 
&gt; We should remove the !isIOSWebKit() from this line. As Csaba pointed out in
&gt; comment #2, we expect the directory WebKitLibraries to exist when building
&gt; the Apple WebKit ports.

Daniel, I remove the !isIOSWebKit() in the line.

&gt; For completeness, originally the iOS port did not make use of files in
&gt; directory WebKitLibraries. So, we skipped the directory existence check for
&gt; this directory when building for iOS.
&gt; 
&gt; &gt;&gt; Tools/Scripts/build-webkit:161
&gt; &gt;&gt;  }
&gt; &gt; 
&gt; &gt; AFAIK WebKitLibraries is used by Apple pots: Mac, iOS and Win too. There are *IOS* files in 
&gt; &gt; WebKitLibraries directory, so I don&apos;t understand this !isIOSWebKit() check. It was added 
&gt; &gt; by https://trac.webkit.org/changeset/161685 , we should as Daniel if we still need it for iOS.
&gt; &gt; 
&gt; &gt; I prefer whitelisting these platforms instead of blacklisting others. But we 
&gt; &gt; can be conservative until get answer from Apple, and leave iOS unchanged.
&gt; &gt; 
&gt; &gt; - if (!isIOSWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;)
&gt; &gt; + if (!isIOSWebKit() &amp;&amp; isAppleWebKit() &amp;&amp; !-d &quot;WebKitLibraries&quot;)
&gt; 
&gt; From my understanding the WinCairo port also makes use of WebKitLibraries.

ok, I modify the condition which checks if port is isAppleWebKit() or isWinCairo(). Is it fine ?

if ((isAppleWebKit() || isWinCairo()) &amp;&amp; !-d &quot;WebKitLibraries&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218700</commentid>
    <comment_count>6</comment_count>
      <attachid>285621</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2016-08-08 23:40:17 -0700</bug_when>
    <thetext>Comment on attachment 285621
Patch

LGTM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218705</commentid>
    <comment_count>7</comment_count>
      <attachid>285621</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-08-09 00:26:56 -0700</bug_when>
    <thetext>Comment on attachment 285621
Patch

Clearing flags on attachment: 285621

Committed r204277: &lt;http://trac.webkit.org/changeset/204277&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1218706</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-08-09 00:27:01 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>285566</attachid>
            <date>2016-08-08 08:21:26 -0700</date>
            <delta_ts>2016-08-08 17:48:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-160659-20160809001953.patch</filename>
            <type>text/plain</type>
            <size>1241</size>
            <attacher name="Gyuyoung Kim">gyuyoung.kim</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjA0MjUyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYmU5NWE0NjAzZTg5NzljOWIwN2ExODFkYjFjNmVjZTJm
YmI2MGVmYS4uZDJjMDQ5MWIyMWJkZTZjMjhiZjE4NjM4NDVkNTI4NWNiNzc0NTNlMyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDE2LTA4LTA4ICBHeXV5b3VuZyBLaW0gIDxneXV5b3VuZy5raW1Ad2Via2l0Lm9yZz4K
KworICAgICAgICBEbyBub3QgY2hlY2sgaWYgV2ViS2l0TGlicmFyaWVzIGZvbGRlciBleGlzdHMg
b24gRUZMIGFuZCBHVEsKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcu
Y2dpP2lkPTE2MDY1OQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIFRob3VnaCBXZWJLaXRMaWJyYXJpZXMgaXMgb25seSBuZWVkZWQgYnkgbWFjIGFuZCB3
aW4gcG9ydHMsCisgICAgICAgIEVGTCBhbmQgR1RLIHBvcnRzIGhhdmUgY2hlY2tlZCB3aGV0aGVy
IGl0IGV4aXN0cy4KKworICAgICAgICAqIFNjcmlwdHMvYnVpbGQtd2Via2l0OgorCiAyMDE2LTA4
LTA3ICBEYW4gQmVybnN0ZWluICA8bWl0ekBhcHBsZS5jb20+CiAKICAgICAgICAgW0NvY29hXSBS
ZXBseSBibG9jayBsZWFrcyBpZiB0aGUgcmVtb3RlIG9iamVjdCBkb2VzbuKAmXQgY2FsbCBpdApk
aWZmIC0tZ2l0IGEvVG9vbHMvU2NyaXB0cy9idWlsZC13ZWJraXQgYi9Ub29scy9TY3JpcHRzL2J1
aWxkLXdlYmtpdAppbmRleCA2NTNkMzc0NTIwMzE4YzNhMjBlYWUwNjY1Yzc5MDhhYTc3MjE0Zjlk
Li5hNjNlYWQ2NmQ1MThlMjdlMzAxMzUwOWM5NWZmNDc1NDcyZDQ4MWEyIDEwMDc1NQotLS0gYS9U
b29scy9TY3JpcHRzL2J1aWxkLXdlYmtpdAorKysgYi9Ub29scy9TY3JpcHRzL2J1aWxkLXdlYmtp
dApAQCAtMTU2LDcgKzE1Niw3IEBAIGZvciBteSAkZGlyIChAcHJvamVjdHMpIHsKICAgICB9CiB9
CiAKLWlmICghaXNJT1NXZWJLaXQoKSAmJiAhLWQgIldlYktpdExpYnJhcmllcyIpIHsKK2lmICgo
IWlzSU9TV2ViS2l0KCkgJiYgIWlzRWZsKCkgJiYgIWlzR3RrKCkpICYmICEtZCAiV2ViS2l0TGli
cmFyaWVzIikgewogICAgIGRpZSAiRXJyb3I6IE5vIFdlYktpdExpYnJhcmllcyBkaXJlY3Rvcnkg
Zm91bmQuIFBsZWFzZSBkbyBhIGZyZXNoIGNoZWNrb3V0LlxuIjsKIH0KIAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>285621</attachid>
            <date>2016-08-08 17:49:12 -0700</date>
            <delta_ts>2016-08-09 00:26:56 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-160659-20160809094723.patch</filename>
            <type>text/plain</type>
            <size>1234</size>
            <attacher name="Gyuyoung Kim">gyuyoung.kim</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjA0MjUyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYmU5NWE0NjAzZTg5NzljOWIwN2ExODFkYjFjNmVjZTJm
YmI2MGVmYS4uZDJjMDQ5MWIyMWJkZTZjMjhiZjE4NjM4NDVkNTI4NWNiNzc0NTNlMyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDE2LTA4LTA4ICBHeXV5b3VuZyBLaW0gIDxneXV5b3VuZy5raW1Ad2Via2l0Lm9yZz4K
KworICAgICAgICBEbyBub3QgY2hlY2sgaWYgV2ViS2l0TGlicmFyaWVzIGZvbGRlciBleGlzdHMg
b24gRUZMIGFuZCBHVEsKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcu
Y2dpP2lkPTE2MDY1OQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIFRob3VnaCBXZWJLaXRMaWJyYXJpZXMgaXMgb25seSBuZWVkZWQgYnkgbWFjIGFuZCB3
aW4gcG9ydHMsCisgICAgICAgIEVGTCBhbmQgR1RLIHBvcnRzIGhhdmUgY2hlY2tlZCB3aGV0aGVy
IGl0IGV4aXN0cy4KKworICAgICAgICAqIFNjcmlwdHMvYnVpbGQtd2Via2l0OgorCiAyMDE2LTA4
LTA3ICBEYW4gQmVybnN0ZWluICA8bWl0ekBhcHBsZS5jb20+CiAKICAgICAgICAgW0NvY29hXSBS
ZXBseSBibG9jayBsZWFrcyBpZiB0aGUgcmVtb3RlIG9iamVjdCBkb2VzbuKAmXQgY2FsbCBpdApk
aWZmIC0tZ2l0IGEvVG9vbHMvU2NyaXB0cy9idWlsZC13ZWJraXQgYi9Ub29scy9TY3JpcHRzL2J1
aWxkLXdlYmtpdAppbmRleCA2NTNkMzc0NTIwMzE4YzNhMjBlYWUwNjY1Yzc5MDhhYTc3MjE0Zjlk
Li5mMGVmM2Q0M2NiMjMzNmY3ODJmMzNiODRiMDU3MWM1MTY3ZDE4MTExIDEwMDc1NQotLS0gYS9U
b29scy9TY3JpcHRzL2J1aWxkLXdlYmtpdAorKysgYi9Ub29scy9TY3JpcHRzL2J1aWxkLXdlYmtp
dApAQCAtMTU2LDcgKzE1Niw3IEBAIGZvciBteSAkZGlyIChAcHJvamVjdHMpIHsKICAgICB9CiB9
CiAKLWlmICghaXNJT1NXZWJLaXQoKSAmJiAhLWQgIldlYktpdExpYnJhcmllcyIpIHsKK2lmICgo
aXNBcHBsZVdlYktpdCgpIHx8IGlzV2luQ2Fpcm8oKSkgJiYgIS1kICJXZWJLaXRMaWJyYXJpZXMi
KSB7CiAgICAgZGllICJFcnJvcjogTm8gV2ViS2l0TGlicmFyaWVzIGRpcmVjdG9yeSBmb3VuZC4g
UGxlYXNlIGRvIGEgZnJlc2ggY2hlY2tvdXQuXG4iOwogfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>