Bug 3402 - Cairo should support non-srcdir builds
Summary: Cairo should support non-srcdir builds
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 12:26 UTC by Thomas Fitzsimmons
Modified: 2005-08-22 00:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Thomas Fitzsimmons 2005-05-26 12:26:25 UTC
Cairo should support building in a directory separate from the source directory.
 For example, GTK's autogen.sh can be run from a separate directory, where all
build-related files will end up:

[gtk+-bld]$ /home/fitzsim/sources/gtk+/autogen.sh --prefix=/home/fitzsim/install

Cairo's configury should also support this form of operation.  It means that
build files don't clutter up the source directory, so e.g. grep doesn't search
through .o files.  Also, it means you can clear out the build files simply by
just rm -rf builddir.  JHBuild assumes this mode of operation by default.
Comment 1 Carl Worth 2005-05-26 12:46:09 UTC
Is there a bug here?

I believe that "make distcheck" does a non-srcdir build and we've used
that for every snapshot for a long time.

Or is it autogen.sh in particular that has a problem?

Either way, we'll need more specifics about what the problem is before
we can fix anthing.
Comment 2 Thomas Fitzsimmons 2005-05-26 12:58:18 UTC
Ah, OK.  I should have been clearer.  Likely just autogen.sh is the problem. 
I'm working with JHBuild, which assumes that autogen.sh is runnable from the
build directory.  For example, GTK's autogen.sh changes to the source directory
if it's not being run from there already, runs the autotools, changes back to
the build directory and runs configure from there.
Comment 3 Owen Taylor 2005-08-21 09:58:15 UTC
2005-08-21  Owen Taylor  <otaylor@redhat.com>

        * autogen.sh: When invoked as, say, ../autogen.sh, switch to
        the sourcedir to run the auto*. Based on corresponding code
        in GTK+'s autogen.sh. (#3402, Thomas Fitzsimmons)

Ran into an issue with the non-srcdir build when gtk-doc wasn't disabled, 
filed as #4170.
Comment 4 Carl Worth 2005-08-22 17:14:31 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.