<?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>120793</bug_id>
          
          <creation_ts>2013-09-05 13:57:43 -0700</creation_ts>
          <short_desc>[GTK] GlibUtilities: getCurrentExecutablePath() does not compile on GNU/Hurd</short_desc>
          <delta_ts>2013-09-06 09:47:49 -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>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="Alberto Garcia">berto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gustavo</cc>
    
    <cc>pochu27</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>925197</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-05 13:57:43 -0700</bug_when>
    <thetext>That&apos;s because PATH_MAX is not defined there.

Reported in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669059</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925198</commentid>
    <comment_count>1</comment_count>
      <attachid>210658</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-05 13:59:49 -0700</bug_when>
    <thetext>Created attachment 210658
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925201</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-09-05 14:00:52 -0700</bug_when>
    <thetext>Attachment 210658 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WTF/ChangeLog&apos;, u&apos;Source/WTF/wtf/gobject/GlibUtilities.cpp&apos;]&quot; exit_code: 1
Source/WTF/wtf/gobject/GlibUtilities.cpp:43:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925202</commentid>
    <comment_count>3</comment_count>
      <attachid>210660</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-05 14:01:25 -0700</bug_when>
    <thetext>Created attachment 210660
Patch

The previous patch needed style fixes, here&apos;s the updated one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925443</commentid>
    <comment_count>4</comment_count>
      <attachid>210660</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2013-09-06 01:15:08 -0700</bug_when>
    <thetext>Comment on attachment 210660
Patch

I see how this could help with the build, but IMO the patch should actually fix the underlying issue. I believe there should be a way in GNU/Hurd to retrieve the current executable path even if PATH_MAX is not defined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925493</commentid>
    <comment_count>5</comment_count>
    <who name="Emilio Pozuelo Monfort">pochu27</who>
    <bug_when>2013-09-06 03:41:53 -0700</bug_when>
    <thetext>There&apos;s currently no way to get the executable path on GNU/Hurd (there is /proc/self but there&apos;s no /proc/self/exe), but the catch-all case in findWebKitProcess() which just uses LIBEXECDIR should work fine there.

If you want we can keep a downstream patch with a dummy getCurrentExecutablePath() until there&apos;s a way to get the executable path on the Hurd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925629</commentid>
    <comment_count>6</comment_count>
      <attachid>210660</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2013-09-06 09:38:47 -0700</bug_when>
    <thetext>Comment on attachment 210660
Patch

No point in waiting, I think, let&apos;s just do it and we can revisit if it is made possible in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925689</commentid>
    <comment_count>7</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-06 09:47:49 -0700</bug_when>
    <thetext>Committed r155193: &lt;http://trac.webkit.org/changeset/155193&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>210658</attachid>
            <date>2013-09-05 13:59:49 -0700</date>
            <delta_ts>2013-09-05 14:01:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>120793.diff</filename>
            <type>text/plain</type>
            <size>1280</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nIGIvU291cmNlL1dURi9DaGFuZ2VMb2cK
aW5kZXggNjcyMWJiNi4uNTNlZWJmMyAxMDA2NDQKLS0tIGEvU291cmNlL1dURi9DaGFuZ2VMb2cK
KysrIGIvU291cmNlL1dURi9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxOCBAQAorMjAxMy0wOS0wNSAg
QWxiZXJ0byBHYXJjaWEgIDxiZXJ0b0BpZ2FsaWEuY29tPgorCisgICAgICAgIFtHVEtdIEdsaWJV
dGlsaXRpZXM6IGdldEN1cnJlbnRFeGVjdXRhYmxlUGF0aCgpIGRvZXMgbm90IGNvbXBpbGUgb24g
R05VL0h1cmQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTEyMDc5MworCisgICAgICAgIFJldmlld2VkIGJ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W5nIGdldEN1cnJlbnRFeGVjdXRhYmxlUGF0aCgp
Cit7CisgIHJldHVybiBDU3RyaW5nKCk7Cit9CiAjZWxpZiBPUyhVTklYKQogQ1N0cmluZyBnZXRD
dXJyZW50RXhlY3V0YWJsZVBhdGgoKQogewo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>210660</attachid>
            <date>2013-09-05 14:01:25 -0700</date>
            <delta_ts>2013-09-06 09:38:47 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>120793.diff</filename>
            <type>text/plain</type>
            <size>1282</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nIGIvU291cmNlL1dURi9DaGFuZ2VMb2cK
aW5kZXggNjcyMWJiNi4uNTNlZWJmMyAxMDA2NDQKLS0tIGEvU291cmNlL1dURi9DaGFuZ2VMb2cK
KysrIGIvU291cmNlL1dURi9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxOCBAQAorMjAxMy0wOS0wNSAg
QWxiZXJ0byBHYXJjaWEgIDxiZXJ0b0BpZ2FsaWEuY29tPgorCisgICAgICAgIFtHVEtdIEdsaWJV
dGlsaXRpZXM6IGdldEN1cnJlbnRFeGVjdXRhYmxlUGF0aCgpIGRvZXMgbm90IGNvbXBpbGUgb24g
R05VL0h1cmQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTEyMDc5MworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IE9yaWdpbmFsIHBhdGNoIGJ5IFN2YW50ZSBTaWduZWxsIDxzdmFudGUuc2lnbmVsbEB0ZWxpYS5j
b20+LgorCisgICAgICAgIFBBVEhfTUFYIGlzIG5vdCBkZWZpbmVkIGluIEdOVS9IdXJkLCB0aGlz
IHBhdGNoIGFkZHMgYSBkdW1teQorICAgICAgICBpbXBsZW1lbnRhdGlvbiB0byBtYWtlIGl0IGNv
bXBpbGUuCisKKyAgICAgICAgKiB3dGYvZ29iamVjdC9HbGliVXRpbGl0aWVzLmNwcDoKKyAgICAg
ICAgKGdldEN1cnJlbnRFeGVjdXRhYmxlUGF0aCk6CisKIDIwMTMtMDktMDUgIEFuZGVycyBDYXJs
c3NvbiAgPGFuZGVyc2NhQGFwcGxlLmNvbT4KIAogICAgICAgICBDaGFuZ2UgU3RyaW5nQnVmZmVy
IGJhY2sgdG8gbm90IHVzZSBhbiBPd25QdHIgaW4gYW4gYXR0ZW1wdCB0byBmaXggcG9ydHMuCmRp
ZmYgLS1naXQgYS9Tb3VyY2UvV1RGL3d0Zi9nb2JqZWN0L0dsaWJVdGlsaXRpZXMuY3BwIGIvU291
cmNlL1dURi93dGYvZ29iamVjdC9HbGliVXRpbGl0aWVzLmNwcAppbmRleCAxYTJhOGIxLi5mMDhl
MzMzIDEwMDY0NAotLS0gYS9Tb3VyY2UvV1RGL3d0Zi9nb2JqZWN0L0dsaWJVdGlsaXRpZXMuY3Bw
CisrKyBiL1NvdXJjZS9XVEYvd3RmL2dvYmplY3QvR2xpYlV0aWxpdGllcy5jcHAKQEAgLTM3LDYg
KzM3LDExIEBAIENTdHJpbmcgZ2V0Q3VycmVudEV4ZWN1dGFibGVQYXRoKCkKICAgICAgICAgcmV0
dXJuIENTdHJpbmcoKTsKICAgICByZXR1cm4gQ1N0cmluZyhyZWFkTGlua0J1ZmZlciwgcmVzdWx0
KTsKIH0KKyNlbGlmIE9TKEhVUkQpCitDU3RyaW5nIGdldEN1cnJlbnRFeGVjdXRhYmxlUGF0aCgp
Cit7CisgICAgcmV0dXJuIENTdHJpbmcoKTsKK30KICNlbGlmIE9TKFVOSVgpCiBDU3RyaW5nIGdl
dEN1cnJlbnRFeGVjdXRhYmxlUGF0aCgpCiB7Cg==
</data>
<flag name="review"
          id="232753"
          type_id="1"
          status="+"
          setter="gustavo"
    />
          </attachment>
      

    </bug>

</bugzilla>