<?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>29517</bug_id>
          
          <creation_ts>2009-09-19 00:24:44 -0700</creation_ts>
          <short_desc>[Gtk] Fix icu CFLAG for Darwin</short_desc>
          <delta_ts>2009-10-12 04:57:54 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Alonzo">jmalonzo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>148469</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2009-09-19 00:24:44 -0700</bug_when>
    <thetext>The unicode CFLAG additions for Darwin do not work. Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148470</commentid>
    <comment_count>1</comment_count>
      <attachid>39815</attachid>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2009-09-19 00:27:18 -0700</bug_when>
    <thetext>Created attachment 39815
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>148963</commentid>
    <comment_count>2</comment_count>
      <attachid>39815</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-09-21 22:37:09 -0700</bug_when>
    <thetext>Comment on attachment 39815
Patch v1

&gt;diff --git a/ChangeLog b/ChangeLog
&gt;index ea1f82c..dff1c2b 100644
&gt;--- a/ChangeLog
&gt;+++ b/ChangeLog
&gt;@@ -1,3 +1,15 @@
&gt;+2009-09-19  Jan Michael Alonzo  &lt;jmalonzo@webkit.org&gt;
&gt;+
&gt;+        Reviewed by NOBODY (OOPS!).
&gt;+
&gt;+        [Gtk] Fix icu CFLAG for Darwin
&gt;+        https://bugs.webkit.org/show_bug.cgi?id=29517
&gt;+
&gt;+        Don&apos;t escape the srcdir variable. Also use $host instead of the
&gt;+        os_foo variables.
&gt;+
&gt;+        * autotools/webkit.m4:
&gt;+

Can you explain why are you doing instead of just saying what are you doing? :)

I suppose it fails in interesting ways in OSX, but it would be good to put it in the ChangeLog for reference.

&gt; 2009-09-18  Xan Lopez  &lt;xlopez@igalia.com&gt;
&gt; 
&gt;         Reviewed by Gustavo Noronha and Jan Alonzo.
&gt;diff --git a/autotools/webkit.m4 b/autotools/webkit.m4
&gt;index 92fe5db..4698fe6 100644
&gt;--- a/autotools/webkit.m4
&gt;+++ b/autotools/webkit.m4
&gt;@@ -144,13 +144,16 @@ AC_MSG_RESULT([$with_unicode_backend])
&gt; # with the WTF Unicode backend being based on GLib while text codecs and TextBreakIterator
&gt; # keep the ICU dependency. That&apos;s why we temporarily add icu headers and libs for glib config case as well.
&gt; if test &quot;$with_unicode_backend&quot; = &quot;icu&quot; -o &quot;$with_unicode_backend&quot; = &quot;glib&quot;; then
&gt;-	if test &quot;$os_darwin&quot; = &quot;yes&quot;; then
&gt;-		UNICODE_CFLAGS=&quot;-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu&quot;
&gt;+        case &quot;$host&quot; in
&gt;+            *-*-darwin*)
&gt;+		UNICODE_CFLAGS=&quot;-I $srcdir/JavaScriptCore/icu -I $srcdir/WebCore/icu&quot;

I think the common practice is not to leave a space between -I and the path? 

&gt; 		UNICODE_LIBS=&quot;-licucore&quot;
&gt;-	elif test &quot;$os_win32&quot; = &quot;yes&quot;; then
&gt;+                ;;
&gt;+            *-*-mingw*)
&gt; 		UNICODE_CFLAGS=&quot;&quot;
&gt; 		UNICODE_LIBS=&quot;-licuin -licuuc&quot;
&gt;-	else
&gt;+                ;;
&gt;+            *)
&gt; 		AC_PATH_PROG(icu_config, icu-config, no)
&gt; 		if test &quot;$icu_config&quot; = &quot;no&quot;; then
&gt; 			AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
&gt;@@ -161,7 +164,8 @@ if test &quot;$with_unicode_backend&quot; = &quot;icu&quot; -o &quot;$with_unicode_backend&quot; = &quot;glib&quot;; the
&gt; 		# See man (1) icu-config for more info.
&gt; 		UNICODE_CFLAGS=`$icu_config --cppflags`
&gt; 		UNICODE_LIBS=`$icu_config --ldflags`
&gt;-	fi
&gt;+                ;;
&gt;+        esac
&gt; fi
&gt; 
&gt; if test &quot;$with_unicode_backend&quot; = &quot;glib&quot;; then</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149565</commentid>
    <comment_count>3</comment_count>
      <attachid>39815</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-23 17:27:05 -0700</bug_when>
    <thetext>Comment on attachment 39815
Patch v1

I&apos;m not an expert, but this looks sane enough.  Rubberstamp=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152378</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-05 11:09:28 -0700</bug_when>
    <thetext>Ping?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154026</commentid>
    <comment_count>5</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2009-10-12 04:57:54 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Ping?

Thanks Eric. Landed as http://trac.webkit.org/changeset/49436.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>39815</attachid>
            <date>2009-09-19 00:27:18 -0700</date>
            <delta_ts>2009-09-23 17:27:05 -0700</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-29517-20090919172715.patch</filename>
            <type>text/plain</type>
            <size>1943</size>
            <attacher name="Jan Alonzo">jmalonzo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0NoYW5nZUxvZyBiL0NoYW5nZUxvZwppbmRleCBlYTFmODJjLi5kZmYxYzJi
IDEwMDY0NAotLS0gYS9DaGFuZ2VMb2cKKysrIGIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUgQEAK
KzIwMDktMDktMTkgIEphbiBNaWNoYWVsIEFsb256byAgPGptYWxvbnpvQHdlYmtpdC5vcmc+CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgW0d0a10gRml4
IGljdSBDRkxBRyBmb3IgRGFyd2luCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD0yOTUxNworCisgICAgICAgIERvbid0IGVzY2FwZSB0aGUgc3JjZGlyIHZh
cmlhYmxlLiBBbHNvIHVzZSAkaG9zdCBpbnN0ZWFkIG9mIHRoZQorICAgICAgICBvc19mb28gdmFy
aWFibGVzLgorCisgICAgICAgICogYXV0b3Rvb2xzL3dlYmtpdC5tNDoKKwogMjAwOS0wOS0xOCAg
WGFuIExvcGV6ICA8eGxvcGV6QGlnYWxpYS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgR3Vz
dGF2byBOb3JvbmhhIGFuZCBKYW4gQWxvbnpvLgpkaWZmIC0tZ2l0IGEvYXV0b3Rvb2xzL3dlYmtp
dC5tNCBiL2F1dG90b29scy93ZWJraXQubTQKaW5kZXggOTJmZTVkYi4uNDY5OGZlNiAxMDA2NDQK
LS0tIGEvYXV0b3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gICAgICAgICAgICAgOzsKKyAgICAgICAgICAgICopCiAJCUFDX1BBVEhf
UFJPRyhpY3VfY29uZmlnLCBpY3UtY29uZmlnLCBubykKIAkJaWYgdGVzdCAiJGljdV9jb25maWci
ID0gIm5vIjsgdGhlbgogCQkJQUNfTVNHX0VSUk9SKFtDYW5ub3QgZmluZCBpY3UtY29uZmlnLiBU
aGUgSUNVIGxpYnJhcnkgaXMgbmVlZGVkLl0pCkBAIC0xNjEsNyArMTY0LDggQEAgaWYgdGVzdCAi
JHdpdGhfdW5pY29kZV9iYWNrZW5kIiA9ICJpY3UiIC1vICIkd2l0aF91bmljb2RlX2JhY2tlbmQi
ID0gImdsaWIiOyB0aGUKIAkJIyBTZWUgbWFuICgxKSBpY3UtY29uZmlnIGZvciBtb3JlIGluZm8u
CiAJCVVOSUNPREVfQ0ZMQUdTPWAkaWN1X2NvbmZpZyAtLWNwcGZsYWdzYAogCQlVTklDT0RFX0xJ
QlM9YCRpY3VfY29uZmlnIC0tbGRmbGFnc2AKLQlmaQorICAgICAgICAgICAgICAgIDs7CisgICAg
ICAgIGVzYWMKIGZpCiAKIGlmIHRlc3QgIiR3aXRoX3VuaWNvZGVfYmFja2VuZCIgPSAiZ2xpYiI7
IHRoZW4=
</data>
<flag name="review"
          id="20950"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>