Bug 127309 - Webkit GTK 2.2.3 build fails if configured with --prefix command
Summary: Webkit GTK 2.2.3 build fails if configured with --prefix command
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 14:27 PST by Niranjan Rao
Modified: 2014-03-25 15:28 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niranjan Rao 2014-01-20 14:27:30 PST
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 'AM_PATH_GLIB_2_0' 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.
Comment 1 Zan Dobersek 2014-01-20 23:26:25 PST
I'm assuming glib is not installed in the prefix you're using. Because of that, aclocal can't find the glib autoconf macros, so this error occurs.

Can you try exporting ACLOCAL_FLAGS='-I /glib/prefix' and then running configure?
Comment 2 Niranjan Rao 2014-01-21 09:51:11 PST
(In reply to comment #1)
> I'm assuming glib is not installed in the prefix you're using. Because of that, aclocal can't find the glib autoconf macros, so this error occurs.
> 
> Can you try exporting ACLOCAL_FLAGS='-I /glib/prefix' and then running configure?


I'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' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
==================================

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.
Comment 3 Martin Robinson 2014-03-25 15:28:55 PDT
We no longer use autotools, but please create a new bug if you have issues with the CMake build.