version 1.21, 2006/11/01 06:29:55 |
version 1.22, 2007/01/02 01:00:02 |
|
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Strict//EN"> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
<html> |
<html> |
<head> |
<head> |
<title>OpenBSD Patch Branches</title> |
<title>OpenBSD Patch Branches</title> |
<link rev=made href=mailto:www@openbsd.org> |
<link rev=made href="mailto:www@openbsd.org"> |
<meta name="resource-type" content="document"> |
<meta name="resource-type" content="document"> |
<meta name="description" content="stable"> |
<meta name="description" content="stable"> |
<meta name="keywords" content="openbsd,anoncvs,updates,stable"> |
<meta name="keywords" content="openbsd,anoncvs,updates,stable"> |
<meta name="distribution" content="global"> |
<meta name="distribution" content="global"> |
<meta name="copyright" content="This document copyright 1996-2006 by OpenBSD."> |
<meta name="copyright" content="This document copyright 1996-2006 by OpenBSD."> |
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
</head> |
</head> |
|
|
<body bgcolor="#ffffff" text="#000000" link="#23238E"> |
<body bgcolor="#ffffff" text="#000000"> |
|
<!-- Passes validator.w3.org, please keep it this way; |
|
please, use a max of 72 chars per line --> |
|
|
<a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a> |
<a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a> |
<p> |
<p> |
<h2><font color=#e00000>Patch Branches</font><hr></h2> |
<h2><font color="#e00000">Patch Branches</font></h2> |
|
<hr> |
|
|
<p> |
<p> |
<ul><h3>Table Of Contents</h3> |
<h3>Table Of Contents</h3> |
|
<ul> |
<li><a href="#whatis">What is the patch branch?</a> |
<li><a href="#whatis">What is the patch branch?</a> |
<li><a href="#getting">Getting the patch branch</a> |
<li><a href="#getting">Getting the patch branch</a> |
<li><a href="#building">Building from the patch branch</a> |
<li><a href="#building">Building from the patch branch</a> |
</ul> |
</ul> |
</p> |
|
<hr> |
<hr> |
|
|
<a name="whatis"></a> |
<a name="whatis"></a> |
<h3><font color=#0000e0>What is the patch branch?</font></h3> |
<h3><font color="#0000e0">What is the patch branch?</font></h3> |
|
|
<p> |
<p> |
Starting with 2.7, OpenBSD provides a source tree that contains |
Starting with 2.7, OpenBSD provides a source tree that contains |
|
|
<p> |
<p> |
|
|
<a name="getting"></a> |
<a name="getting"></a> |
<h3><font color=#0000e0>Getting a stable branch</font></h3> |
<h3><font color="#0000e0">Getting a stable branch</font></h3> |
|
|
<p> |
<p> |
To obtain the patch branch for a particular release of OpenBSD, you |
To obtain the patch branch for a particular release of OpenBSD, you |
|
|
library versioning problems. |
library versioning problems. |
|
|
<a name="building"></a> |
<a name="building"></a> |
<h3><font color=#0000e0>Building from an OpenBSD patch branch</font></h3> |
<h3><font color="#0000e0">Building from an OpenBSD patch branch</font></h3> |
Once you have obtained a source tree via <a href="anoncvs.html">anoncvs</a>, |
Once you have obtained a source tree via <a href="anoncvs.html">anoncvs</a>, |
you must rebuild the system. The stages for doing so are: |
you must rebuild the system. The stages for doing so are: |
|
|
|
|
<li>Rebuild the binaries |
<li>Rebuild the binaries |
</ul> |
</ul> |
|
|
<h4><font color=#0000e0>Rebuilding the kernel</font></h4> |
<h4><font color="#0000e0">Rebuilding the kernel</font></h4> |
|
|
<p> |
<p> |
To rebuild the default kernel from stable: |
To rebuild the default kernel from stable: |
<ul><pre> |
<blockquote><pre> |
# <strong>cd /usr/src/sys/arch/i386/conf</strong> |
# <strong>cd /usr/src/sys/arch/i386/conf</strong> |
# <strong>/usr/sbin/config GENERIC</strong> |
# <strong>/usr/sbin/config GENERIC</strong> |
# <strong>cd /usr/src/sys/arch/i386/compile/GENERIC</strong> |
# <strong>cd /usr/src/sys/arch/i386/compile/GENERIC</strong> |
# <strong>make clean && make depend && make</strong> |
# <strong>make clean && make depend && make</strong> |
</pre></ul> |
</pre></blockquote> |
|
|
<p> |
<p> |
Replace <i>i386</i> with your architecture, e.g. |
Replace <i>i386</i> with your architecture, e.g. |
<i>sparc</i>, <i>alpha</i>, etc. |
<i>sparc</i>, <i>alpha</i>, etc. |
|
|
<h4><font color=#0000e0>Rebooting with the new kernel</font></h4> |
<h4><font color="#0000e0">Rebooting with the new kernel</font></h4> |
|
|
<p> |
<p> |
To reboot with the newly compiled kernel: |
To reboot with the newly compiled kernel: |
<ul><pre> |
<blockquote><pre> |
# <strong>cd /usr/src/sys/arch/i386/compile/GENERIC</strong> |
# <strong>cd /usr/src/sys/arch/i386/compile/GENERIC</strong> |
# <strong>cp /bsd /bsd.old</strong> <i>(Save an old copy of your kernel)</i> |
# <strong>cp /bsd /bsd.old</strong> <i>(Save an old copy of your kernel)</i> |
# <strong>cp bsd /bsd</strong> <i>(Copy the new kernel into place)</i> |
# <strong>cp bsd /bsd</strong> <i>(Copy the new kernel into place)</i> |
# <strong>reboot</strong> |
# <strong>reboot</strong> |
</pre></ul> |
</pre></blockquote> |
|
|
<p> |
<p> |
As above, substitute your architecture for <i>i386</i>. If your system has |
As above, substitute your architecture for <i>i386</i>. If your system has |
trouble booting the new kernel, you can easily go back and reboot from the |
trouble booting the new kernel, you can easily go back and reboot from the |
old kernel, now called <i>bsd.old</i>. |
old kernel, now called <i>bsd.old</i>. |
|
|
<h4><font color=#0000e0>Rebuilding the binaries</font></h4> |
<h4><font color="#0000e0">Rebuilding the binaries</font></h4> |
|
|
<p> To rebuild the system binaries: |
<p> To rebuild the system binaries: |
<ul><pre> |
<blockquote><pre> |
# <strong>rm -rf /usr/obj/*</strong> |
# <strong>rm -rf /usr/obj/*</strong> |
# <strong>cd /usr/src</strong> |
# <strong>cd /usr/src</strong> |
# <strong>make obj</strong> |
# <strong>make obj</strong> |
# <strong>cd /usr/src/etc && env DESTDIR=/ make distrib-dirs</strong> |
# <strong>cd /usr/src/etc && env DESTDIR=/ make distrib-dirs</strong> |
# <strong>cd /usr/src</strong> |
# <strong>cd /usr/src</strong> |
# <strong>make build</strong> |
# <strong>make build</strong> |
</pre></ul> |
</pre></blockquote> |
|
|
<p>This will take awhile... |
<p>This will take awhile... |
<hr> |
<hr> |
<a href=index.html><img height=24 width=24 src=back.gif border=0 alt=OpenBSD></a> |
<a href=index.html><img height=24 width=24 src=back.gif border=0 alt=OpenBSD></a> |
<a href=mailto:www@openbsd.org>www@openbsd.org</a> |
<a href="mailto:www@openbsd.org">www@openbsd.org</a> |
<br><small>$OpenBSD$</small> |
<br><small>$OpenBSD$</small> |
</body> |
</body> |
</html> |
</html> |