=================================================================== RCS file: /cvsrepo/anoncvs/cvs/www/stable.html,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** www/stable.html 2006/05/01 08:44:50 1.17 --- www/stable.html 2006/05/02 18:02:36 1.18 *************** *** 3,8 **** --- 3,9 ----
!
!
! Starting with 2.7, OpenBSD provides a source tree that contains ! important patches and fixes (i.e. those from the ! errata plus others which are obvious and simple, ! but do not deserve an errata entry) ! and makes it available via CVS in addition to the ! current source. Thus, users can choose three options :
! ! As a general principle, all ! Errata entries will be merged into the patch ! branch within 48 hours of when an errata is published. Other post release ! patches may be merged in as well, subject to a number of conditions:
! To obtain the patch branch for a particular release of OpenBSD, you ! can update on top of a pre-existing source tree ! (from FTP or the CD) ! or you can grab the source tree freshly from ! an AnonCVS server. ! Instructions for getting the patch branch and staying up to date are ! described in the Getting Started section of the ! AnonCVS documentation. ! Note that patch branches do not help to upgrade from one release of ! OpenBSD to another, e.g. to go from 3.8 to 3.9. They only provide ! a means for staying up to date with the patches within a given release. ! If you are trying to go from one release to another via source, please visit ! the upgrade guide. ! Also, you cannot go backwards, from -current back to -stable, because of ! library versioning problems. !
! To rebuild the default kernel from stable:
# cd /usr/src/sys/arch/i386/conf # /usr/sbin/config GENERIC --- 11,101 ---- ! !!
パッチブランチ
!
! OpenBSD プロジェクトでは OpenBSD 2.7 以降、重要なパッチと修正 ! (errata および、errata ! に含まれていないような単純で明らかなもの) ! を取り込んだソースツリーを提供するようになりました。 ! これは最新のソースと同じように CVS 経由で ! 入手することができます。つまり修正パッチを利用する方法には、次の 3 種類があります。
! ! 一般的に、公開された ! errata はすべて、それが発行された時点から ! 48 時間以内にパッチブランチに取り込まれます。また、リリース後に作成されたその他の修正パッチも、 ! たとえば次のような条件が満たされていれば同様に取り込まれることがあります。
! OpenBSD のあるリリースに対応するパッチブランチを入手するには、 ! (FTP 経由、あるいは CD を使用して) ! 入手したソースツリーの一番上 (訳注: /usr/src) で更新を行うか、 ! AnonCVS サーバから新たにソースツリーを入手するという方法があります。 ! パッチブランチの入手と最新を維持する方法については、 ! AnonCVS の文書のはじめに ! (Getting Started) の節に記載されています。ただし、 ! パッチブランチはリリース間のアップグレード (たとえば 3.8 から 3.9) ! を行うわけではありませんのでご注意ください。 ! これはそのリリースにおいて最新の修正パッチが適用された ! バージョンを維持する手段を提供するというだけです。 ! ソースを用いてリリース間アップグレードを行う場合は ! アップグレードガイド ! をご覧ください。それともうひとつ、-current から -stable へ戻ることはできません。 ! これはライブラリのバージョンに互換性がないためです。 !
! stable の標準カーネルを再構築するには、次のようにします。
# cd /usr/src/sys/arch/i386/conf # /usr/sbin/config GENERIC *************** *** 103,130 ****
! Replace i386 with your architecture, e.g. ! sparc, alpha, etc. !
! To reboot with the newly compiled 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
! As above, substitute your architecture for i386. If your system has ! trouble booting the new kernel, you can easily go back and reboot from the ! old kernel, now called bsd.old. !
To rebuild the system binaries:
# rm -rf /usr/obj/* # cd /usr/src --- 104,131 ----
! i386 の部分をご使用のアーキテクチャ ! (たとえば sparc、alpha など) に置き換えてください。 !
! 新しく構築したカーネルを使って再起動します。
# cd /usr/src/sys/arch/i386/compile/GENERIC ! # cp /bsd /bsd.old (古いカーネルのバックアップをとる) ! # cp bsd /bsd (新しいカーネルを上書きコピーする) # reboot
! これも先ほどと同様に、i386 の部分をお使いのアーキテクチャに置き換えてください。 ! もし、システムが新しいカーネルで起動しない場合は、bsd.old という名前の古いカーネルを ! 使用して再起動することで、元の状態に復帰することができます。 !
次のようにして、システムバイナリの再構築を行います。
# rm -rf /usr/obj/* # cd /usr/src *************** *** 134,144 **** # make build!
This will take awhile...