Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2014 16:24:53 -0400
From:      Michael Powell <nightrecon@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Upgrading FreeBSD to patch level with subversion
Message-ID:  <lgcue8$ier$1@ger.gmane.org>
References:  <CA%2Bg%2BBvgg6Ay=SgA6cUhxeNqFZoh%2B_11VhFjMFht-mp1vCM219Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lgcue8$ier$1>