From owner-freebsd-questions@FreeBSD.ORG Wed Mar 19 20:25:17 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26117C04 for ; Wed, 19 Mar 2014 20:25:17 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D7DD0993 for ; Wed, 19 Mar 2014 20:25:16 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WQN2w-0000i6-VQ for freebsd-questions@freebsd.org; Wed, 19 Mar 2014 21:25:06 +0100 Received: from pool-173-79-82-127.washdc.fios.verizon.net ([173.79.82.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Mar 2014 21:25:06 +0100 Received: from nightrecon by pool-173-79-82-127.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Mar 2014 21:25:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: Upgrading FreeBSD to patch level with subversion Date: Wed, 19 Mar 2014 16:24:53 -0400 Lines: 45 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-82-127.washdc.fios.verizon.net User-Agent: KNode/4.12.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 20:25:17 -0000 Olivier Nicole wrote: > Hi, > > I don't understand how subversion works (or does not work). > > When I upgrade a machine from 9.1 to 9.2 with: > > svn checkout http://svn0.us-west.FreeBSD.org/base/releng/9.2 /usr/src > > I get a kernel 9.2-RELEASE-p3 as expected Me too. > Now if I installed a machine with 9.2-RELEASE and I try the same svn > command, nothing get updated. Use update instead of checkout. You can do a cursory check first by establishing that there is a .svn directory with stuff below /usr/src. If this isn't there (maybe from deleting /usr/src) you can simply start over. Wipe everything under /usr/src with a rm -rf * which leaves the .svn - if one is present. You need to use chflags -R on .svn first before an rm -rf .svn will succeed. If there is no .svn and everything else under /usr/src is gone you're good to start again with fresh bits. Using the checkout command exactly as you did before will download a fresh, new copy of RELEASE to work with. > Is there some magic to be added (beside deleting /usr/src) to get svn > to do the update? After putting the new, fresh /usr/src in place the same way as you did before simply do: # svn update /usr/src Now you should have the same P3 as noted from your description of the source-based upgrade process from 9.1 to 9.2 (after round of make world/buildkernel/installworld...), etc. svn update /usr/src is essentially the same concept-wise as the old csup of the security branch of releng. [snip] -Mike