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

Re: Re: compile just svnversion (in addition to the eclipse-plugin)

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 27 Mar 2013 00:21:17 +0200

Arno Steffens wrote on Tue, Mar 26, 2013 at 14:54:09 +0100:
> I finally extracted binary and some libs out of a newer Ubuntu version.
> Just 5 libs (sqlite, svn_delta, diff, subr, wc) hasn't been enough for this.
> A Linux guru super tip has been to just put this libs into some extra folder and
> call svnversion with a different LD_LIBRARY_PATH and copy just a shell script to
> the /usr/bin:
>
> #!/bin/sh
> export LD_LIBRARY_PATH=/home/user/svnfix/lib:$LD_LIBRARY_PATH
> /home/user/svnfix/svnversion $1 $2 $3 $4
>

No offence to your guru, but that's better written like this:

#!/bin/sh
LD_LIBRARY_PATH=/home/user/svnfix/lib:"$LD_LIBRARY_PATH" /home/user/svnfix/svnversion "$@"

... and unless it's a single-user system, it's a bad idea for /usr/bin
binaries to refer a /home/user this way.

Cheers

Daniel

> Thanks all of you helping me with your ideas!
> Arno
>  
>  
>
> Gesendet: Dienstag, 26. März 2013 um 13:47 Uhr
> Von: "Philip Martin" <philip.martin_at_wandisco.com>
> An: "Daniel Shahaf" <d.s_at_daniel.shahaf.name>
> Cc: "Arno Steffens" <epsi_at_gmx.de>, users_at_subversion.apache.org
> Betreff: Re: compile just svnversion (in addition to the eclipse-plugin)
> Daniel Shahaf <d.s_at_daniel.shahaf.name> writes:
>
> > Philip Martin wrote on Tue, Mar 26, 2013 at 10:09:21 +0000:
> >>
> >> Getting another package is probably an easier solution, however...
> >>
> >> The Subversion libraries are binary compatible so the binary from the
> >> standard Ubuntu package should work with the libraries from the Eclipse
> >> package. Extract the binary and put it somewhere on your PATH. Ubuntu
> >> changes the so-version of the libsvn libraries, if the Eclipse package
> >> doesn't do the same you would need to create some library symlinks as
> >> well.
> >
> > IIUC, you are simply saying that instead of installing the 'subversion'
> > package (which provides /usr/bin/svnversion), extracting the
> > 'svnversion' binary from that package and adding it to $PATH should
> > work.
> >
> > I agree, but I'm not sure how that simplifies things: the 'subversion'
> > package contains little more than the binaries to begin with, so you
> > won't save much by installing just parts of it.
>
> The problem, as I understand it, is that the new package doesn't contain
> an svnversion binary.
>
> > The interesting part is that you might be able to use the 'svn' binary
> > from the *old* system, too. (ie, old binary and new libraries) This
> > should work for every other client, but the cmdline client sometimes
> > uses subversion/include/private/ functions --- which breaks this
> > use-case (practically at the runtime linker, though that's not
> > guaranteed).
>
> That's what I am suggesting. Extract the svnversion binary from the old
> package that does provide it and use that binary with the new packages
> that don't provide it.
>
> --
> Certified & Supported Apache Subversion Downloads:
> http://www.wandisco.com/subversion/download
Received on 2013-03-26 23:21:53 CET

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

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