sys/conf/ vs. subversion-1.7

David Wolfskill david at
Thu Oct 20 11:48:45 UTC 2011

I got to wondering why the "uname -a" output from my head slice no
longer showed the SVN GRN after I had updated to subversion-

First thing I checked was that "svnversion" existed & worked; check.

Then I noticed the logic iin

for dir in /bin /usr/bin /usr/local/bin; do
        if [ -d "${SYSDIR}/.svn" -a -x "${dir}/svnversion" ] ; then
        if [ -d "${SYSDIR}/../.git" -a -x "${dir}/git" ] ; then
                git_cmd="${dir}/git --git-dir=${SYSDIR}/../.git"

Well, as of subversion-1.7, we don't have a ".svn" directory in
${SYSDIR} any more -- it's only at the root of the working copy
(/usr/src, in this case).  So "svnversion" is never invoked.

So I've just hacked my copy to parallel the "git" stanza & look for
${SYSDIR}/../.svn,  Not sure that's ideal, but there appears to be
precedent.... :-}

It might be handy to resolve this prior to 9.0-RELEASE, I think.

David H. Wolfskill				david at
Depriving a girl or boy of an opportunity for education is evil.

See for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list