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

[suggestion] svnstatic (was Re: How build a completely static client)

From: Alexy Khrabrov <alexy.khrabrov_at_setup.org>
Date: 2002-08-04 19:06:05 CEST

I thought I'm building a static svn, too, but really ldd svn
after ./configure ... --disable-shared shows it links to everything
_but_ libsvn_*... I guess you should just link it with -static...
iManually, if you want so very much -- but I suggest trhe currrent
builds build a separate svnstatic binary client which isi truly static.
The reason is, many of us keep an svn repository at our server, but need
clients at work, home, etc., to access it. It's usual to maintain/build
svn from source on the server, and then copy the binary client over to
any client machines from which you need access.

Currenly, and the docs actually describe this, you have to go through
the dance of ./configure --disable-shared, make, then you grab your "static"
client, then you re ./configure --enable-shared and install server stuff --
and that overwrites the static client with a dynamic one. If you forgot
to grab the static before, you have to repeat it to get a client out to
external machines. Annoying.

I suggest the build process with --disable-shared builds a binary svnstatic
alongside svn. I surrently use a simple cpstatic script which sits above
the top-level subversion dir:

-- 
#!/bin/sh
s=subversion/clients/cmdline/svn
f="$s subversion/svnadmin/svnadmin subversion/svnlook/svnlook"
for file in $f; do
  cp -p $file /usr/local/bin/static
done
cp -p $s /usr/local/bin/svnstatic
--
But it better be automatic, so the build process is one step.
Cheers,
Alexy
> On Sun, Aug 04, 2002 at 12:32:54PM -0400, Garrett Rooney wrote:
> > On Sun, Aug 04, 2002 at 05:34:30PM +0200, Daniele Nicolodi wrote:
> > > I want tio build a completely static client. How i can do this ??
> > > I haven't any experience with libtool so i don't know how hack Makefile
> > > to do this. I have seen ftp://ftp.phunnypharm.org/pub/svn/clients/ so
> > > i think that this isn't to much difficult.
> > 
> > './configure --disable-shared' shoudl do the trick for you. 
> 
> No. This disable the build of svn libraries as shared libraries but svn
> client still build dinamically linking other libraries as libcrypt,
> libz, libbdb4, etc
> 
> Ciao
> -- 
> Daniele
> 		    --- http://www.grinta.net ---
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 4 19:07:26 2002

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.