Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Dec 2009 23:58:36 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Jay Hall <jhall@socket.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Source Code Update Question
Message-ID:  <4B1850AC.1070600@infracaninophile.co.uk>
In-Reply-To: <473690D7-CF14-4030-AA7D-A6E7C48A6780@socket.net>
References:  <473690D7-CF14-4030-AA7D-A6E7C48A6780@socket.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1C40992A4770386317E9C8E4
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Jay Hall wrote:
> Ladies and Gentlemen,
>=20
> This is the first time I have tried to upgrade FreeBSD's source code,=20
> and I have done something wrong, but I am not sure what.  I am upgradin=
g=20
> from 6.2 to 8.0.
>=20
> First, I upgraded the source code, using csup /root/supfile.
>=20
> Here are the contents of /root/supfile.
>=20
> # IMPORTANT: Change the next line to use one of the CVSup mirror sites
> # listed at http://www.freebsd.org/doc/handbook/mirrors.html.
> *default host=3Dcvsup9.us.FreeBSD.org
> *default base=3D/var/db
> *default prefix=3D/usr
> *default release=3Dcvs tag=3D.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is going to get you 9-CURRENT, which is not what you want.  Change i=
t to
read:

*default release=3Dcvs tag=3DRELENG_8_0

to get 8.0-RELEASE-p1.  Or you could try tag=3DRELENG_8 to get 8.0-STABLE=
 if you're
happy living with a development branch.

Handy hint:  you can csup your /usr/src and /usr/ports by:=20

    # cd /usr/src
    # make update

if you put the following into /etc/make.conf:

SUP_UPDATE=3D     yes
SUP=3D            /usr/bin/csup
SUPFLAGS=3D       -L2
SUPHOST=3D        cvsupN.XX.freebsd.org
SUPFILE=3D        /usr/share/examples/cvsup/standard-supfile
PORTSSUPFILE=3D   /usr/share/examples/cvsup/ports-supfile

Obviously change cvsupN.XX.freebsd.org to a server local to where you are=
=2E

To change versions, before csup'ing you'ld need to first edit the tag in =
/usr/share/examples/cvsup/standard-supfile -- this file will be updated
to match the installed OS version when you do the whole {build,install}wo=
rld
procedure, so don't worry too much about mucking up standard system files=
 by
editing it.

Note that you *do* want tag=3D. for ports or docs supfiles.

Now, directly updating from 6.2 to 8.0 may not work.  You may find it nec=
essary
to do the update in stages:  6.2 -> 7.0 -> 8.0.  Since about 5.4-RELEASE =
it has
generally been the case that you can update pretty freely within a major =
version
level (eg. 6.2 -> 6.4) and that you can update to the next highest major =
version
level (eg 7.2 -> 8.0) by simply csup'ing and doing a normal buildworld cy=
cle.  It=20
should be possible to do as you want and jump several major versions at o=
nce in
the same way, but this is not tested anything like as much and may not wo=
rk.=20

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enig1C40992A4770386317E9C8E4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAksYULMACgkQ8Mjk52CukIybJgCeL/s/VGgX2YXBvqk6EVd6Xlww
9ewAn3jc4eb0PHCYB64uTw45u/EOoxhh
=gX8l
-----END PGP SIGNATURE-----

--------------enig1C40992A4770386317E9C8E4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B1850AC.1070600>