<?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>127309</bug_id>
          
          <creation_ts>2014-01-20 14:27:30 -0800</creation_ts>
          <short_desc>Webkit GTK 2.2.3 build fails if configured with --prefix command</short_desc>
          <delta_ts>2014-03-25 15:28:55 -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>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Niranjan Rao">nhrdls</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>mrobinson</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>970013</commentid>
    <comment_count>0</comment_count>
    <who name="Niranjan Rao">nhrdls</who>
    <bug_when>2014-01-20 14:27:30 -0800</bug_when>
    <thetext>I want to install the build at $HOME/webkitbuild, so I ran configure as follows from the exploded tar ball directory.

./configure --prefix=$FP_BUILD_ROOT --enable-gtk-doc=no --enable-gtk-doc-html=no  --enable-gtk-doc-pdf=no  --enable-webkit1=no --enable-credential-storage=no --enable-debug-symbols=full

Configure command runs successfully. When running make command it fails with error

Make command says Source/autotools/FindDependencies.m4:95: warning: macro &apos;AM_PATH_GLIB_2_0&apos; not found in library.

When configure is executed without --prefix parameter, everything is successful, but it wants to install where I need root permissions.

I have built other 2.2.3 dependencies with --prefix flags e.g. gtk+-3.6.4 and gstreamer-1.0.3. And it has worked correctly for those builds. It only fails for webkit-2.2.3 build.

A quick inspection reveals that it fails when make command tries to execute another configure command. Current workaround is to run configure without --prefix parameter, build once and then run configure again with --prefix parameter and then run make install.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>970177</commentid>
    <comment_count>1</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-01-20 23:26:25 -0800</bug_when>
    <thetext>I&apos;m assuming glib is not installed in the prefix you&apos;re using. Because of that, aclocal can&apos;t find the glib autoconf macros, so this error occurs.

Can you try exporting ACLOCAL_FLAGS=&apos;-I /glib/prefix&apos; and then running configure?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>970290</commentid>
    <comment_count>2</comment_count>
    <who name="Niranjan Rao">nhrdls</who>
    <bug_when>2014-01-21 09:51:11 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; I&apos;m assuming glib is not installed in the prefix you&apos;re using. Because of that, aclocal can&apos;t find the glib autoconf macros, so this error occurs.
&gt; 
&gt; Can you try exporting ACLOCAL_FLAGS=&apos;-I /glib/prefix&apos; and then running configure?


I&apos;ll try that and post over here. However larger issue still remains. Configure help says  

==================================
 --prefix=PREFIX         install architecture-independent files in PREFIX

By default, \`make install&apos; will install all the files in
\`$ac_default_prefix/bin&apos;, \`$ac_default_prefix/lib&apos; etc.  You can specify
an installation prefix other than \`$ac_default_prefix&apos; using \`--prefix&apos;,
for instance \`--prefix=\$HOME&apos;.
==================================

If we go by above logic, that means I need to have all my libs $HOME.

Please suggest alternative way to install webkit build to different location, but still able to build from standard paths - which is what configure command without prefix flag does.

I have built other webkit dependencies with --prefix command and only webkit compilation is affected by this flag. It looks like all others treat it as just output location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>994393</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-03-25 15:28:55 -0700</bug_when>
    <thetext>We no longer use autotools, but please create a new bug if you have issues with the CMake build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>