<?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>131277</bug_id>
          
          <creation_ts>2014-04-06 05:08:58 -0700</creation_ts>
          <short_desc>[CMake] Include the ICU directories after everything else</short_desc>
          <delta_ts>2016-01-03 17:27:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Raphael Kubo da Costa (:rakuco)">rakuco</reporter>
          <assigned_to name="Raphael Kubo da Costa (:rakuco)">rakuco</assigned_to>
          <cc>bunhere</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>mrobinson</cc>
    
    <cc>sergio</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>997994</commentid>
    <comment_count>0</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2014-04-06 05:08:58 -0700</bug_when>
    <thetext>[CMake] Include the ICU directories after everything else</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997995</commentid>
    <comment_count>1</comment_count>
      <attachid>228698</attachid>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2014-04-06 05:14:43 -0700</bug_when>
    <thetext>Created attachment 228698
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998000</commentid>
    <comment_count>2</comment_count>
      <attachid>228698</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-06 09:15:44 -0700</bug_when>
    <thetext>Comment on attachment 228698
Patch

I&apos;m not sure I understand the danger. If we are using the system version of libicu, don&apos;t we want t compile against the system version&apos;s headers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998001</commentid>
    <comment_count>3</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2014-04-06 09:24:20 -0700</bug_when>
    <thetext>This isn&apos;t really about ICU, but rather that we want to include all WebKit paths before system ones. This isn&apos;t normally a problem on Linux where most headers are in /usr/include, which isn&apos;t passed explicitly to the compiler.

However, if I try to build WebKitGTK on another platform such as FreeBSD, where most headers are in /usr/local/include (including ICU&apos;s), I end up in a situation where the compiler gets passed something like this:

  g++ -I/path/to/WebKit/Source/WebCore -I/path/to/WebKit/Source/WebCore/html
      -I/path/to/WebKit/Source/WebCore/css [...]
      -I/usr/local/include -I/path/to/WebKit/Source/ThirdParty/ANGLE/include

This causes my system&apos;s GL headers to be picked up instead of ANGLE&apos;s, which can cause build failures when they differ because of constant names and other things.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998005</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-06 09:42:45 -0700</bug_when>
    <thetext>Sounds almost like Source/ThirdParty/ANGLE/include/GLES2/ shouldn&apos;t be on the include path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998006</commentid>
    <comment_count>5</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2014-04-06 09:48:33 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Sounds almost like Source/ThirdParty/ANGLE/include/GLES2/ shouldn&apos;t be on the include path.

Isn&apos;t it needed to build ANGLE and doesn&apos;t the code in platform/graphics/opengl assume ANGLE is used?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998007</commentid>
    <comment_count>6</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-06 10:08:18 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; Sounds almost like Source/ThirdParty/ANGLE/include/GLES2/ shouldn&apos;t be on the include path.
&gt; 
&gt; Isn&apos;t it needed to build ANGLE and doesn&apos;t the code in platform/graphics/opengl assume ANGLE is used?

At least for WebKitGTK+, the headers and GL library from the system should be used. ANGLE is only used now to convert GLES shaders to desktop shaders.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998010</commentid>
    <comment_count>7</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2014-04-06 10:26:20 -0700</bug_when>
    <thetext>At the moment, if I try to use my system (Mesa) GL headers and libraries, the build fails because Extensions3DOpenGLES.h references PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG and PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG, which have had different names for years.

Should this code be made to work with the system GL libraries? How about platforms that have to use ANGLE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998011</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-06 10:28:01 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; At the moment, if I try to use my system (Mesa) GL headers and libraries, the build fails because Extensions3DOpenGLES.h references PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG and PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG, which have had different names for years.

Yes, I think we should correct the names, if possible.

&gt; Should this code be made to work with the system GL libraries? How about platforms that have to use ANGLE?

I don&apos;t know of any platforms that use ANGLE for the GLES2 implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998013</commentid>
    <comment_count>9</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-06 10:29:23 -0700</bug_when>
    <thetext>(In reply to comment #8)

&gt; I don&apos;t know of any platforms that use ANGLE for the GLES2 implementation.

Actually, it is possible that ANGLE is used by the Windows ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998100</commentid>
    <comment_count>10</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2014-04-07 01:17:26 -0700</bug_when>
    <thetext>I&apos;m trying to create a patch that removes the ANGLE directories from the list of include paths, but the fact that GLSLANG/ is also in Source/ThirdParty/ANGLE/include along GLES2/ and friends makes things difficult.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1152199</commentid>
    <comment_count>11</comment_count>
      <attachid>228698</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-03 17:27:38 -0800</bug_when>
    <thetext>Comment on attachment 228698
Patch

Moving ${ICU_INCLUDE_DIRS} and ${ICU_LIBRARIES} is a strange hack; I don&apos;t want to do this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>228698</attachid>
            <date>2014-04-06 05:14:43 -0700</date>
            <delta_ts>2016-01-03 17:27:38 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-131277-20140406151421.patch</filename>
            <type>text/plain</type>
            <size>2288</size>
            <attacher name="Raphael Kubo da Costa (:rakuco)">rakuco</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2Njg0OSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQC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9VU0VfM0RfR1JBUEhJQ1MpCiAgICAgKQogZW5kaWYgKCkKIAor
IyBUaGlzIGlzIGEgbm9uLW9wdGlvbmFsIGRlcGVuZGVuY3ksIGJ1dCB3ZSBsZWF2ZSBpdCBhdCB0
aGUgZW5kIHRvIGF2b2lkCisjIHBhc3NpbmcgcmVndWxhciBpbmNsdWRlIHBhdGhzIChpZS4gL3Vz
ci9sb2NhbC9pbmNsdWRlKSBiZWZvcmUgYWxsIHRoZSBvbmVzIGluCisjIFdlYktpdCwgc2luY2Ug
ZS5nLiBhIEdMIGhlYWRlciBtYXkgYmUgcHJlc2VudCBpbiBBTkdMRSBhbmQgdGhlIHN5c3RlbSdz
IEdMCisjIGltcGxlbWVudGF0aW9uLCBhbmQgd2UgbmVlZCB0byBwaWNrIHRoZSBmb3JtZXIuCits
aXN0KEFQUEVORCBXZWJDb3JlX0lOQ0xVREVfRElSRUNUT1JJRVMKKyAgICAke0lDVV9JTkNMVURF
X0RJUlN9CispCisKIHNldChXZWJDb3JlVGVzdFN1cHBvcnRfSU5DTFVERV9ESVJFQ1RPUklFUwog
ICAgICIke1dFQkNPUkVfRElSfS9wbGF0Zm9ybS9tb2NrIgogICAgICIke1dFQkNPUkVfRElSfS90
ZXN0aW5nIgo=
</data>
<flag name="review"
          id="253018"
          type_id="1"
          status="-"
          setter="mcatanzaro"
    />
          </attachment>
      

    </bug>

</bugzilla>