Upgrading FreeBSD to patch level with subversion

Michael Powell nightrecon at hotmail.com
Wed Mar 19 20:25:17 UTC 2014


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




More information about the freebsd-questions mailing list