OpenBSD Patch Branch

Getting the tree for the first time.

# cd /usr
# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_3_9 -P src

Updating an existing tree.

# cd /usr/src
# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs up -rOPENBSD_3_9 -Pd

Rebuild kernel.

# cd /usr/src/sys/arch/i386/conf
# /usr/sbin/config GENERIC
# cd /usr/src/sys/arch/i386/compile/GENERIC
# make clean && make depend && make

Reboot with new kernel.

# cd /usr/src/sys/arch/i386/compile/GENERIC
# cp /bsd /bsd.old          (Save an old copy of your kernel)
# cp bsd /bsd               (Copy the new kernel into place)
# reboot

Rebuild binaries.

# rm -rf /usr/obj/*
# cd /usr/src
# make obj
# cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
# cd /usr/src
# make build