[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Autobuild dependencies before install

From: David James <staple_at_gmail.com>
Date: 2004-09-18 01:02:42 CEST

This patch fixes the Subversion dependency system so that make targets
will automatically build their dependencies before installing them.
This change, in some cases, dramatically simplifies and speeds up the
process of installing subversion components.

With this patch, you can install any component of subversion in one
step. Simply type what you want to install, and make will handle the
dependencies!

SOME EXAMPLES:

To install javahl, simply type:
    ./configure [with appropriate options] && make install-javahl
To install the bdb library, simply type:
    ./configure [with appropriate options] && make install-bdb-lib
To test everything, simply type:
    ./configure [with appropriate options] && make check
To install everything, simply type:
    ./configure [with appropriate options] && make install

With this patch, there's no need to build all of subversion if you
just want to run one test or install one library! All of the
dependencies will be built automatically, and, if necessary,
installed.

OTHER ADVANTAGES:
- If you're working on the Subversion source code, this patch will
  improve the compile (and install) speed of Subversion. Instead of having
  to compile and reinstall everything from scratch, Subversion will only
  recompile and reinstall the changed files.
- This patch fixes issue 2039
  <http://subversion.tigris.org/issues/show_bug.cgi?id=2039> because
  this patch fixes the JavaHL dependencies
- This patch fixes issue 2032 by always running mkdir-init, even when
  we're not in a VPATH setup. See bug
  <http://subversion.tigris.org/issues/show_bug.cgi?id=2032>

CAVEATS:
- I haven't optimized all of the build and installation processes to
  avoid rebuilds during incremental compiles. I've only optimized some of
  them. I'll save the rest for my next patch.
- We should test the SWIG bindings with this patch
- We should test whether the new install process installs the same
files as the old install process
- Questions? Suggestions? Concerns? Send 'em my way.

The patch is attached as "autobuild_dependencies_before_install_patch.txt".

Cheers,

David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sat Sep 18 01:03:21 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.