Date: Sun, 11 Aug 2013 08:25:42 -0500 (CDT) From: Dan Mack <mack@macktronics.com> To: Glen Barber <gjb@FreeBSD.org> Cc: Lev Serebryakov <lev@FreeBSD.org>, freebsd-embedded@freebsd.org, freebsd-current@freebsd.org Subject: Re: nanobsd-built system doesn't have SVN revision in "uname" (and it looks like regression) Message-ID: <alpine.BSF.2.00.1308110824240.3361@olive.macktronics.com> In-Reply-To: <20130810182459.GF2432@glenbarber.us> References: <383656436.20130810150849@serebryakov.spb.ru> <37152758.20130810151846@serebryakov.spb.ru> <602958881.20130810180203@serebryakov.spb.ru> <CAJ-Vmo=nwiC-598%2BaaA4FFQCscjyox4PwTiDDMXb6SGFGGx3Ng@mail.gmail.com> <20130810141324.GD2432@glenbarber.us> <529930061.20130810191339@serebryakov.spb.ru> <alpine.BSF.2.00.1308101235030.26745@olive.macktronics.com> <alpine.BSF.2.00.1308101300350.2513@olive.macktronics.com> <20130810181152.GE2432@glenbarber.us> <20130810182459.GF2432@glenbarber.us>
next in thread | previous in thread | raw e-mail | index | archive | help
There's still one problem left ... the svnliteversion test fails because you are not in the correct directory. This is the patch that worked for me ... root@olive:/usr/src # svnlite diff sys/conf/newvers.sh Index: sys/conf/newvers.sh =================================================================== --- sys/conf/newvers.sh (revision 254187) +++ sys/conf/newvers.sh (working copy) @@ -105,7 +105,7 @@ done if [ -z "${svnversion}" ] && [ -x /usr/bin/svnliteversion ] ; then - /usr/bin/svnliteversion $(basename ${0}) >/dev/null 2>&1 + cd ${SYSDIR}/conf && /usr/bin/svnliteversion $(basename ${0}) >/dev/null 2>&1 if [ $? -eq 0 ]; then svnversion=/usr/bin/svnliteversion else On Sat, 10 Aug 2013, Glen Barber wrote: > On Sat, Aug 10, 2013 at 02:11:52PM -0400, Glen Barber wrote: >> On Sat, Aug 10, 2013 at 01:09:20PM -0500, Dan Mack wrote: >>> It looks like you are doing the first [! -z '"${svnversion}"' ] >>> before $svnversion is being set. In the old version, this was >>> being set via: >>> >>> if [ -x /usr/bin/svnliteversion ] ; then >>> svnversion=/usr/bin/svnliteversion >>> fi >>> >>> But I'm not sure if that's intentional or not ... >>> >> >> Ugh. No, this was not intentional. I'll have this fixed shortly. >> > > Fixed in r254184. The problem is that I was evaluating ${svnversion} > being set before looking for /usr/bin/svnliteversion; however when > _running_ /usr/bin/svnliteversion, it was being run as > /usr/bin/svnversion by mistake. > > Thank you for the reports, and Dan, thank you for your help. > > Glen > > dan -- Dan Mack
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1308110824240.3361>