<?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>140070</bug_id>
          
          <creation_ts>2015-01-04 20:10:03 -0800</creation_ts>
          <short_desc>[GTK] Rename LIBEXECDIR to PKGLIBEXECDIR</short_desc>
          <delta_ts>2015-07-15 13:35:34 -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>Linux</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>
          <dependson>140068</dependson>
          <blocked>110014</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mrobinson</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1058644</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-01-04 20:10:03 -0800</bug_when>
    <thetext>The path that&apos;s currently stored in LIBEXECDIR is one level lower than the real LIBEXECDIR, which we are going to need. Introduce PKGLIBEXECDIR so that we can use LIBEXECDIR for the real LIBEXECDIR in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058645</commentid>
    <comment_count>1</comment_count>
      <attachid>243958</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-01-04 20:18:54 -0800</bug_when>
    <thetext>Created attachment 243958
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058670</commentid>
    <comment_count>2</comment_count>
      <attachid>243958</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-01-04 23:21:55 -0800</bug_when>
    <thetext>Comment on attachment 243958
Patch

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

&gt; Source/WebKit2/Shared/gtk/ProcessExecutablePathGtk.cpp:62
&gt; -    return pathByAppendingComponent(filenameToString(LIBEXECDIR), processName);
&gt; +    return pathByAppendingComponent(filenameToString(PKGLIBEXECDIR), processName);

If it&apos;s one level lower, how can this work? I&apos;m confused.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058725</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-01-05 10:09:15 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; If it&apos;s one level lower, how can this work? I&apos;m confused.

It works because the patch only renames that compile-time constant. Now, as for why we should do it:

$LIBEXEC_INSTALL_DIR is set in OptionsGTK.cmake to $(libexecdir)/webkitgtk-4.0 (that&apos;s how we&apos;d write it using Autotools). This is confusing, but it&apos;s the result of different naming conventions. The platform-independent WebKit2/CMakeLists.txt, which I did not want to change, installs our helper binaries to $LIBEXEC_INSTALL_DIR, which makes sense if you consider that $LIBEXEC_INSTALL_DIR should be a subdirectory of GNU $(libexecdir) -- we don&apos;t install anything directly in $(libexecdir), so this is a reasonable definition for $LIBEXEC_INSTALL_DIR, which doesn&apos;t need to be changed.

But $LIBEXEC_INSTALL_DIR is not $(libexecdir), which is how we treat it in our GTK+ specific code, by setting $LIBEXECDIR = $LIBEXEC_INSTALL_DIR. This works because our code currently uses $LIBEXECDIR only for launching our helper binaries in $(libexecdir)/webkitgtk-4.0, but I need to use it to refer to the actual $(libexecdir) and I don&apos;t want to type LIBEXEDIR + &quot;../&quot; in order to get to $(libexecdir), which would be very confusing. Now, note that in Autotools, $(libexecdir)/webkitgtk-4.0 would be equivalent to $(pkglibexecdir), so the least-confusing way around this problem is to just set $LIBEXECDIR to what would in Autotools be $(libexecdir) and $PKGLIBEXECDIR to what would in Autotools be $(pkglibexecdir) and what in our build system is $LIBEXEC_INSTALL_DIR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109631</commentid>
    <comment_count>4</comment_count>
      <attachid>243958</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-07-15 08:09:31 -0700</bug_when>
    <thetext>Comment on attachment 243958
Patch

(More easy patches!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109638</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2015-07-15 09:13:34 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Comment on attachment 243958 [details]
&gt; Patch
&gt; 
&gt; (More easy patches!)

Perhaps PACKAGE_LIBEXECDIR or LIBEXEC_INSTALL_DIR for consistency?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109654</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-07-15 11:02:01 -0700</bug_when>
    <thetext>I&apos;d rather rename PACKAGE_LOCALE_DIR to LOCALEDIR, for consistency with the familiar GNU directory names; what do you think? To me, the PACKAGE_ prefix is reminiscent of the PKGWHATEVER prefix used in Autotools, which means &quot;a directory named for the project underneath the WHATEVER directory,&quot; but that&apos;s not what PACKAGE_LOCALE_DIR is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109661</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-07-15 12:04:50 -0700</bug_when>
    <thetext>Martin agreed on IRC to use PKGLIBEXECDIR. (And presumably he wants LOCALEDIR too, for consistency? I will do that in a separate patch after this one lands.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109682</commentid>
    <comment_count>8</comment_count>
      <attachid>243958</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-07-15 13:35:30 -0700</bug_when>
    <thetext>Comment on attachment 243958
Patch

Clearing flags on attachment: 243958

Committed r186852: &lt;http://trac.webkit.org/changeset/186852&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1109683</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-07-15 13:35:34 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>243958</attachid>
            <date>2015-01-04 20:18:54 -0800</date>
            <delta_ts>2015-07-15 13:35:30 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>0007-GTK-Rename-LIBEXECDIR-to-PKGLIBEXECDIR.patch</filename>
            <type>text/plain</type>
            <size>2884</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">RnJvbSAxZDhiYmZhZWUyNzFjNmIwNjAwNWZlMWVhYmQyZmVjMzdkNDk1MWUzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIENhdGFuemFybyA8bWNhdGFuemFyb0BpZ2FsaWEu
Y29tPgpEYXRlOiBUdWUsIDMwIERlYyAyMDE0IDE5OjExOjQ4IC0wNjAwClN1YmplY3Q6IFtQQVRD
SCA3LzddIFtHVEtdIFJlbmFtZSBMSUJFWEVDRElSIHRvIFBLR0xJQkVYRUNESVIKClRoZSBwYXRo
IHRoYXQncyBjdXJyZW50bHkgc3RvcmVkIGluIExJQkVYRUNESVIgaXMgb25lIGxldmVsIGxvd2Vy
IHRoYW4KdGhlIHJlYWwgTElCRVhFQ0RJUiwgd2hpY2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