From nobody@FreeBSD.org  Fri Jun 21 06:03:50 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 7FD072B5
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Jun 2013 06:03:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 732D51AE9
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Jun 2013 06:03:50 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5L63nmB093631
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Jun 2013 06:03:49 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5L63nk2093497;
	Fri, 21 Jun 2013 06:03:49 GMT
	(envelope-from nobody)
Message-Id: <201306210603.r5L63nk2093497@oldred.freebsd.org>
Date: Fri, 21 Jun 2013 06:03:49 GMT
From: "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] use svnlite on newvers.sh
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179800
>Category:       bin
>Synopsis:       [build] [patch] use svnlite on newvers.sh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 21 06:10:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun May 04 04:02:09 UTC 2014
>Originator:     Sergey V. Dyatko
>Release:        HEAD
>Organization:
>Environment:
FreeBSD tiger.minsk.domain 10.0-CURRENT FreeBSD 10.0-CURRENT #20 r251896:251900M: Tue Jun 18 12:29:44 FET 2013     root@tiger.minsk.domain:/usr/obj/usr/src/sys/tiger-desktop  amd64

>Description:
seems strange to me import svnlite and not even try to use it on newvers.sh:)

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: sys/conf/newvers.sh
===================================================================
--- sys/conf/newvers.sh	(revision 252052)
+++ sys/conf/newvers.sh	(working copy)
@@ -88,14 +88,17 @@
 i=`${MAKE:-make} -V KERN_IDENT`
 compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep 'version')
 
-for dir in /bin /usr/bin /usr/local/bin; do
-	if [ -x "${dir}/svnversion" ] && [ -z ${svnversion} ] ; then
-		svnversion=${dir}/svnversion
-	fi
-	if [ -x "${dir}/p4" ] && [ -z ${p4_cmd} ] ; then
-		p4_cmd=${dir}/p4
-	fi
+for svncmd in svnliteversion svnversion; do
+	for dir in /bin /usr/bin /usr/local/bin; do
+		if [ -x "${dir}/${svncmd}" ] && [ -z ${svnversion} ] ; then
+			svnversion=${dir}/${svncmd}
+		fi
+		if [ -x "${dir}/p4" ] && [ -z ${p4_cmd} ] ; then
+			p4_cmd=${dir}/p4
+		fi
+	done
 done
+
 if [ -d "${SYSDIR}/../.git" ] ; then
 	for dir in /bin /usr/bin /usr/local/bin; do
 		if [ -x "${dir}/git" ] ; then


>Release-Note:
>Audit-Trail:

From: "Sergey V. Dyatko" <sergey.dyatko@gmail.com>
To: bug-followup@FreeBSD.org, sergey.dyatko@gmail.com
Cc:  
Subject: Re: bin/179800: [patch] use svnlite on newvers.sh
Date: Fri, 21 Jun 2013 09:54:32 +0300

 Index: Makefile.inc1
 ===================================================================
 --- Makefile.inc1	(revision 252052)
 +++ Makefile.inc1	(working copy)
 @@ -114,7 +114,11 @@
  
  BUILDENV_SHELL?=/bin/sh
  
 +.if exists(/usr/bin/svnlite)
 +SVN?=		/usr/bin/svnlite
 +.else
  SVN?=		/usr/local/bin/svn
 +.endif
  SVNFLAGS?=	-r HEAD
  
  MAKEOBJDIRPREFIX?=	/usr/obj
 
 
 -- 
 wbr, tiger
>Unformatted:
