From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 09:53:46 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE35D1065673 for ; Fri, 21 Oct 2011 09:53:45 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 55EA28FC12 for ; Fri, 21 Oct 2011 09:53:45 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p9L9rdmG028523 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 21 Oct 2011 10:53:39 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.1 smtp.infracaninophile.co.uk p9L9rdmG028523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1319190819; bh=GcDRtR9XvUiKIR6+7OMiV08zOrnoZtmMJX1oRmQzq5E=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=XQG6h7PmqaqLYgEYOPNgHtnvwksH703YbFlwaUmTiFcQN+SdpDn8TNv+B8+0ZBt8R aqhMcC7Ug9mJO6Aj8+GyY/5ImnIPtH3YozmB9Nqy6w+f2musN77zEWtFMvNRV94zm7 KiytK/vYBx7d/rxpWuTmIn2G1UhIf3eYeivBow/c= Message-ID: <4EA1411B.3050300@infracaninophile.co.uk> Date: Fri, 21 Oct 2011 10:53:31 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Thomas Mueller References: <20111021092727.DCD80106566C@hub.freebsd.org> In-Reply-To: <20111021092727.DCD80106566C@hub.freebsd.org> X-Enigmail-Version: 1.3.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig18D871E34727CF0A21415A10" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: csup: How do I know I have correct version? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 09:53:46 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig18D871E34727CF0A21415A10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21/10/2011 10:27, Thomas Mueller wrote: > After I run=20 >=20 > csup /usr/share/examples/releng9-supfile >=20 > how do I know I have the correct version, like 9.0-BETA3 or 9.0-RC1? So long as you're confident that you have actually downloaded the sources from the RELENG_9 branch, then you can be confident that the system version will be one of those -- at the moment, you'll get 9.0-RC1 but over time this will eventually change to 9.0-STABLE. > I can't find any such information explicitly anywhere under /usr/src . The file you want is /usr/src/sys/conf/newvers.sh This is a script that edits version information into various source code files. The bit you need is near the top of the file -- just following line 33: 33 TYPE=3D"FreeBSD" 34 REVISION=3D"9.0" 35 BRANCH=3D"RC1" 36 if [ "X${BRANCH_OVERRIDE}" !=3D "X" ]; then 37 BRANCH=3D${BRANCH_OVERRIDE} 38 fi 39 RELEASE=3D"${REVISION}-${BRANCH}" 40 VERSION=3D"${TYPE} ${RELEASE}" 41 SYSDIR=3D$(dirname $0)/.. Unfortunately the value want is RELEASE, which is assembled from parts, so not trivially grep'able. But you can easily see the REVISION is set to 9.0 and BRANCH is RC1 so the whole things comes to 9.0-RC1. Simple. > This releng9-supfile was made from stable-supfile by changing RELENG_8 = to RELENG_9 in the line >=20 > *default release=3Dcvs tag=3DRELENG_8 >=20 > I've been following the emailing lists current, questions and ports,=20 > noticed the heads-up that HEAD was going to 10-current. >=20 > Maybe also I should put this releng9-supfile in a safer place where=20 > it won't be deleted by the next installation/upgrade? No -- you shouldn't need to worry about that. The name 'releng9-supfile' you chose doesn't match anything produced by the system, so it won't be overwritten. (Not that you shouldn't keep a backup somewhere -- that's only sensible.) Hmmm.... actually you have highlighted a small omission in the procedures for branching RELENG_9 and RELENG_9_0 -- the cvsup example supfiles /usr/src/share/examples/{stable,standard}-supfile should be updated to match the branch they are installed from. In your case both of those files should use the RELENG_9 tag, but that hasn't been commmitted yet. Cheers Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig18D871E34727CF0A21415A10 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6hQSMACgkQ8Mjk52CukIzNcgCeMrBSrms6W5WH4qi6sax9Hl6T w+0AnRcBIKyWB05Z8ThxtBpY/END0RmG =vnKC -----END PGP SIGNATURE----- --------------enig18D871E34727CF0A21415A10--