<?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>31403</bug_id>
          
          <creation_ts>2009-11-12 04:52:38 -0800</creation_ts>
          <short_desc>[Qt] Disable pthread_setname_np.</short_desc>
          <delta_ts>2011-04-19 05:15:29 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jocelyn Turcotte">jturcotte</reporter>
          <assigned_to name="QtWebKit Unassigned">webkit-qt-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>hausmann</cc>
    
    <cc>kenneth</cc>
    
    <cc>kent.hansen</cc>
    
    <cc>mrowe</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>162869</commentid>
    <comment_count>0</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2009-11-12 04:52:38 -0800</bug_when>
    <thetext>Comment from original commit in Qt&apos;s 3rdparty:

BT: JavaScriptCore makes applications crash on leopard
JavaScriptCore checks the Mac OS version when building, and uses
symbols only defined in i e.g.snow leopard when building on snow
leopard.
This means that if you build Qt on snow leopard and later move
it to leopard, applications will crash looking for a missing
symbol (pthread_setname_np in particular).
In Qt, we garuantee that you can run your applications on 10.4 and up
for Carbon, and 10.5 and up for Cocoa. So using compile time checks
this way is not a proper soulution.

Result: In Qt, never use symbols not defined on all supported OS
versions, or at least implement run-time checks.

Rev-By: Simon Hausmann
Rev-By: Tor Arne
Rev-By: MortenS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162872</commentid>
    <comment_count>1</comment_count>
      <attachid>43057</attachid>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2009-11-12 05:06:54 -0800</bug_when>
    <thetext>Created attachment 43057
Patch from Qt src/3rdparty</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162886</commentid>
    <comment_count>2</comment_count>
      <attachid>43057</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-12 06:06:07 -0800</bug_when>
    <thetext>Comment on attachment 43057
Patch from Qt src/3rdparty

Clearing flags on attachment: 43057

Committed r50877: &lt;http://trac.webkit.org/changeset/50877&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162887</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-12 06:06:11 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162888</commentid>
    <comment_count>4</comment_count>
      <attachid>43057</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-11-12 06:08:22 -0800</bug_when>
    <thetext>Comment on attachment 43057
Patch from Qt src/3rdparty

This isn’t really the right way to address this.  I don’t know anything about how the Qt build process works but we have TARGETING_TIGER / TARGETING_LEOPARD macros that can be used to exclude code based on the minimum supported Mac OS X version that the binary will run on (rather than the BUILDING_ON macros which are about the maximum version).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162889</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-11-12 06:09:35 -0800</bug_when>
    <thetext>I’m reopening this so it can be fixed in a more appropriate manner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162892</commentid>
    <comment_count>6</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2009-11-12 06:35:17 -0800</bug_when>
    <thetext>Apparently the original code using BUILDING_ON_TIGER/LEOPARD could be replaced with TARGETING_TIGER/LEOPARD instead, depending on how the Qt build system works.

Quote from Mark Rowe:

i&apos;m not sure how the Qt build system works but I would imagine that if it builds on 10.6 but deploys on 10.5 it would be setting the so-called Mac OS X deployment target so that the right platform headers are exposed.

Tor Arne, can you look into this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198118</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Hansen">kent.hansen</who>
    <bug_when>2010-03-10 07:03:05 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; Apparently the original code using BUILDING_ON_TIGER/LEOPARD could be replaced
&gt; with TARGETING_TIGER/LEOPARD instead, depending on how the Qt build system
&gt; works.
&gt; 
&gt; Quote from Mark Rowe:
&gt; 
&gt; i&apos;m not sure how the Qt build system works but I would imagine that if it
&gt; builds on 10.6 but deploys on 10.5 it would be setting the so-called Mac OS X
&gt; deployment target so that the right platform headers are exposed.
&gt; 
&gt; Tor Arne, can you look into this?

Maybe Platform.h should be using TARGETING rather than BUILDING_ON for that stuff? The TARGETING macros were added not that long ago.
I have a patch in the queue that switches from BUILDING_ON to TARGETING for similar reasons (https://bugs.webkit.org/show_bug.cgi?id=34888).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221080</commentid>
    <comment_count>8</comment_count>
      <attachid>55117</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-05-05 06:33:59 -0700</bug_when>
    <thetext>Created attachment 55117
Use TARGETING instead of BUILDING_ON

Uptate with the comments of Mark and Kent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234777</commentid>
    <comment_count>9</comment_count>
      <attachid>55117</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-07 04:20:12 -0700</bug_when>
    <thetext>Comment on attachment 55117
Use TARGETING instead of BUILDING_ON

r=me, but the ChangeLog needs to be a bit more verbose on what the problem is. I&apos;ll try to do that when landing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234800</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-07 05:16:08 -0700</bug_when>
    <thetext>Committed r60773: &lt;http://trac.webkit.org/changeset/60773&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234809</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-07 05:50:07 -0700</bug_when>
    <thetext>Revision r60773 cherry-picked into qtwebkit-2.0 with commit f943ead2759537527faa7f3cb057d995291663b9</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43057</attachid>
            <date>2009-11-12 05:06:54 -0800</date>
            <delta_ts>2009-11-12 06:08:22 -0800</delta_ts>
            <desc>Patch from Qt src/3rdparty</desc>
            <filename>disable_pthreadsetnamenp.patch</filename>
            <type>text/plain</type>
            <size>1174</size>
            <attacher name="Jocelyn Turcotte">jturcotte</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZyBiL0phdmFTY3JpcHRDb3JlL0No
YW5nZUxvZwppbmRleCAxMzNjZDZkLi5jYjg3MzlkIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUg
QEAKKzIwMDktMTEtMTIgIFJpY2hhcmQgTW9lIEd1c3RhdnNlbiAgPHJpY2hhcmQuZ3VzdGF2c2Vu
QG5va2lhLmNvbT4KKworICAgICAgICBSZXZpZXdl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AhUExBVEZPUk0oUVQpCiAj
ZGVmaW5lIEhBVkVfTUFEVl9GUkVFX1JFVVNFIDEKICNkZWZpbmUgSEFWRV9NQURWX0ZSRUUgMQog
I2RlZmluZSBIQVZFX1BUSFJFQURfU0VUTkFNRV9OUCAxCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55117</attachid>
            <date>2010-05-05 06:33:59 -0700</date>
            <delta_ts>2010-06-07 04:20:11 -0700</delta_ts>
            <desc>Use TARGETING instead of BUILDING_ON</desc>
            <filename>31403.patch</filename>
            <type>text/plain</type>
            <size>1194</size>
            <attacher name="Benjamin Poulain">benjamin</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZyBiL0phdmFTY3JpcHRDb3JlL0No
YW5nZUxvZwppbmRleCBjNjFjODgzLi5hMjkzMTdhIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUg
QEAKKzIwMTAtMDUtMDUgIEJlbmphbWluIFBvdWxhaW4gIDxiZW5qYW1pbi5wb3VsYWluQG5va2lh
LmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBb
UXRdIERpc2FibGUgcHRocmVhZF9zZXRuYW1lX25wLgorICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzE0MDMKKworICAgICAgICBVc2UgdGhlIGRlZmluZXMg
VEFSR0VUSU5HX1hYIGluc3RlYWQgb2YgQlVJTERJTkdfT05fWFggCisgICAgICAgIGZvciBmZWF0
dXJlcyB0aGF0IGNhbm5vdCBiZSB1c2VkIGJlZm9yZSBTbm93IExlb3BhcmQuCisKKyAgICAgICAg
KiB3dGYvUGxhdGZvcm0uaDoKKwogMjAxMC0wNS0wNCAgWW9uZ2p1biBaaGFuZyAgPHlvbmdqdW5f
emhhbmdAYXBwbGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVyLgpkaWZm
IC0tZ2l0IGEvSmF2YVNjcmlwdENvcmUvd3RmL1BsYXRmb3JtLmggYi9KYXZhU2NyaXB0Q29yZS93
dGYvUGxhdGZvcm0uaAppbmRleCA5YmUyY2NkLi44ZDViMjExIDEwMDY0NAotLS0gYS9KYXZhU2Ny
aXB0Q29yZS93dGYvUGxhdGZvcm0uaAorKysgYi9KYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0u
aApAQCAtNzA4LDExICs3MDgsMTEgQEAKICNkZWZpbmUgSEFWRV9TWVNfVElNRV9IIDEKICNkZWZp
bmUgSEFWRV9TWVNfVElNRUJfSCAxCiAKLSNpZiAhZGVmaW5lZChCVUlMRElOR19PTl9USUdFUikg
JiYgIWRlZmluZWQoQlVJTERJTkdfT05fTEVPUEFSRCkKKyNpZiAhZGVmaW5lZChUQVJHRVRJTkdf
VElHRVIpICYmICFkZWZpbmVkKFRBUkdFVElOR19MRU9QQVJEKQogCiAjZGVmaW5lIEhBVkVfRElT
UEFUQ0hfSCAxCiAKLSNpZiAhUExBVEZPUk0oSVBIT05FKSAmJiAhUExBVEZPUk0oUVQpCisjaWYg
IVBMQVRGT1JNKElQSE9ORSkKICNkZWZpbmUgSEFWRV9NQURWX0ZSRUVfUkVVU0UgMQogI2RlZmlu
ZSBIQVZFX01BRFZfRlJFRSAxCiAjZGVmaW5lIEhBVkVfUFRIUkVBRF9TRVROQU1FX05QIDEK
</data>
<flag name="review"
          id="39219"
          type_id="1"
          status="+"
          setter="hausmann"
    />
    <flag name="commit-queue"
          id="39220"
          type_id="3"
          status="-"
          setter="hausmann"
    />
          </attachment>
      

    </bug>

</bugzilla>