FreeBSD 5.2-RELEASE から FreeBSD 5.4-RELEASE へあげる 6.0 にしようとしたが make してみると 5.3 からでないとあげられないと怒られた。 ERROR: Source upgrades from versions prior to 5.3 not supported. *** Error code 1 1 error *** Error code 2 1 error *** Error code 2 ということなのでまずは 5.2 から 5.4 へあげる。 sera# cp /usr/share/examples/cvsup/stable-supfile . sera# mv stable-supfile cur-supfile sera# cp /usr/share/examples/etc/make.conf /etc/make.conf $ diff -u /usr/share/examples/cvsup/stable-supfile /usr/local/etc/cvsup/cur-supfile --- /usr/share/examples/cvsup/stable-supfile Sun Jan 11 11:47:18 2004 +++ /usr/local/etc/cvsup/cur-supfile Thu Jan 27 03:46:21 2005 @@ -65,12 +65,12 @@ # # 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=CHANGE_THIS.FreeBSD.org +*default host=cvsup.jp.FreeBSD.org *default base=/usr *default prefix=/usr # The following line is for 4-stable. If you want 3-stable or 2.2-stable, # change "RELENG_4" to "RELENG_3" or "RELENG_2_2" respectively. -*default release=cvs tag=RELENG_4 +*default release=cvs tag=RELENG_5_4 *default delete use-rel-suffix # If you seem to be limited by CPU rather than network or disk bandwidth, try $ diff -u /usr/share/examples/etc/make.conf /etc/make.conf --- /usr/share/examples/etc/make.conf Sun Jan 11 11:47:19 2004 +++ /etc/make.conf Thu Jan 27 02:59:31 2005 @@ -44,7 +44,7 @@ # Note also that at this time the -O2 setting is known to produce BROKEN # CODE on the Alpha platform. # -#CFLAGS= -O -pipe +CFLAGS= -O -pipe # # CXXFLAGS controls the compiler settings used when compiling C++ code. # Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish @@ -102,7 +102,7 @@ # To avoid building various parts of the base system: #NO_CVS= true # do not build CVS #NO_CXX= true # do not build C++ and friends -#NO_BIND= true # do not build BIND +NO_BIND= true # do not build BIND #NO_FORTRAN= true # do not build g77 and related libraries #NO_GDB= true # do not build GDB #NO_I4B= true # do not build isdn4bsd package @@ -115,7 +115,7 @@ #NO_OPENSSH= true # do not build OpenSSH #NO_OPENSSL= true # do not build OpenSSL (implies NO_KERBEROS and # NO_OPENSSH) -#NO_SENDMAIL= true # do not build sendmail and related programs +NO_SENDMAIL= true # do not build sendmail and related programs #NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs #NO_TCSH= true # do not build and install /bin/csh (which is tcsh) #NO_X= true # do not compile in XWindows support (e.g. doscmd) sera# make buildworld sera# make buildkernel sera# make installkernel sera# shutdown -r now リブートする sera# make installworld しようとすると以下のように怒られる。 creating osreldate.h from newvers.sh [snip] touch: not found *** Error code 127 ここを参考に * BSD Diary Version 0.8090 http://www.bsddiary.net/d/200301.html#06 touch する。 touch /usr/obj/usr/src/include/osreldate.h 再度 installworld sera# make installworld /etc 以下を更新する。 5.2 をインストール直後なので設定は何もしていないのですべて i と答える。 sera# mergemaster -i 以上。