$Date:: 2008-07-17 #$

make world


1. cvsup によるソースのアップデート

/etc/make.conf に以下を定義して、 /usr/src で「# make update」するのが楽。
SUP_UPDATE=     yes
SUP=            /usr/local/bin/cvsup
SUPFLAGS=       -g -L 2
SUPHOST=        cvsup.jp.FreeBSD.org
SUPFILE=        /conf/supfiles/stable-supfile

2. /usr/src/UPDATING を読む

3. /etc のバックアップ

4. make.conf のチェック

/etc/make.conf をバックアップしたのち、 /usr/src/share/examples/etc/make.conf をコピーして、 以下の修正をするのが無難(?)。
CFLAGS=-O -pipe
NO_PROFILE=true
COPTFLAGS=-O -pipe

# Postfixなどを使っていてsendmailが不要な場合
NO_SENDMAIL=true

※注意
  1. NOPROFILEは古い→NO_PROFILE
  2. SENDMAIL_MC 等、余計な定義はコメントアウトしておく

5. /etc の更新

# mergemaster -p

6. /usr/obj の掃除

# cd /usr/obj
# chflags -R noschg *
# rm -rf *

7. コンパイル

# cd /usr/src
# (date && make -j4 buildworld; date) |& tee buildworld.log
# (date && make -j4 buildkernel; date) |& tee buildkernel.log
# (date && make installkernel; date) |& tee installkernel.log

8. シングルユーザモードで起動

シングルユーザモード起動後
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a
# adjkerntz -i

9. インストール

# cd /usr/src
# (date && make installworld; date 2>&1) | tee installworld.log

10. /etc の更新

# mergemaster -iU
必要に応じて、適宜修正。

11. 再起動

12. make.confの復帰/修正


Valid HTML 4.01 Transitional