From owner-freebsd-stable@FreeBSD.ORG Thu Jul 4 15:32:02 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CFD129A1 for ; Thu, 4 Jul 2013 15:32:02 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from batman.home4u.ch (batman.home4u.ch [IPv6:2001:8a8:1005:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 47DFC1CDB for ; Thu, 4 Jul 2013 15:32:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at home4u.ch Received: from flashback.wenks.ch (fabian@flashback.wenks.ch [IPv6:2001:8a8:1005:1:223:dfff:fedf:13c9]) (authenticated bits=0) by batman.home4u.ch (8.14.5/8.14.5) with ESMTP id r64FVwpR006843 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 4 Jul 2013 17:31:59 +0200 (CEST) (envelope-from fabian@wenks.ch) Message-ID: <51D5956E.8090400@wenks.ch> Date: Thu, 04 Jul 2013 17:31:58 +0200 From: Fabian Wenk User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: Where's the docs for FreeBSD maintenance with Subversion? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 15:32:02 -0000 Hello Chris On 04.07.2013 10:00, Chris H wrote: > working on a fairly wobbly system. I'm on RELENG_8 (8.4), and would like to sync my src && > ports via the (now defacto) subversion method. My previous experience is with the client For /usr/src/ I did the following steps: Adjust the variables in /etc/make.conf (remove the "old" SUP* variables and add): SVN_UPDATE=yes SVN=/usr/local/bin/svn Then do the following steps: Backup your custom kernel config file and anything else you have customized in /usr/src/, or if you have the space, use: mv /usr/src /usr/src-old rm -rf /usr/src # only if you did not 'mv ...' svn checkout svn://svn.freebsd.org/base/releng/8.4 /usr/src Restore your custom kernel config file cd /usr/src make update # should not sync anything, just for testing Everything else is "almost" identical as before with csup/cvsup. The only drawback with the subversion method is, that when you would like to upgrade to e.g. RELENG_8_5, you need to redo the above steps with removing /usr/src and checkout. This was more easier with the csup/cvsup method with just adjusting the version in the supfile. If there is an easier solution to upgrade an existing svn checkout from e.g. 8.4 to 8.5, please tell me. With the above created svn checkout and then doing the 'make update' you will get the updates from any Security Advisory affecting your current RELEASE, as it was with csup/cvsup. The checkout with subversion uses significant more disk space than it was with csup/cvsup before. With subversion 1.8 I have ~720 MB (was ~770 MB with svn 1.7) in /usr/src/.svn (RELEASE-9.1) and ~670 MB (was ~830 MB with svn 1.7) in /usr/ports/.svn. A fresh install of a FreeBSD system is also an interesting challenge. In the past I did the install without Ports, then fetched a newer ports.tar.gz from the mirror and extracted it into /usr/ports/ and did use csup to get it up-to-date. With subversion this is a little bit more complicated, as subversion is also in the Ports and not in the FreeBSD base. You could install subversion and all the dependencies from packages and then do the svn checkout of /usr/ports/ and then upgrading the installed packages. Or you install the Ports and use portsnap to upgrade, build subversion and dependencies, remove /usr/ports/ again (probably preserve /usr/ports/distfiles/) and do the svn checkout of /usr/ports/. bye Fabian