Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2011 04:48:44 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   sys/conf/newvers.sh vs. subversion-1.7
Message-ID:  <20111020114844.GK59810@albert.catwhisker.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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-1.7.0.1.

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

Then I noticed the logic iin newvers.sh:

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

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.

Peace,
david
-- 
David H. Wolfskill				david@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk6gCpsACgkQmprOCmdXAD35jwCeNEpvPqRPFGYHCG5SwW2dmhrE
9oEAn2CfXfAx/DW+gAxVZMZ+ccpGwuwx
=giK2
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111020114844.GK59810>