version 1.484, 2018/05/27 06:47:06 |
version 1.485, 2018/09/05 14:27:12 |
|
|
<a href="faq/faq5.html#wsrc">these instructions</a> to give a non-root |
<a href="faq/faq5.html#wsrc">these instructions</a> to give a non-root |
user write access to the src, ports and xenocara directories. |
user write access to the src, ports and xenocara directories. |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/src</b> |
$ <b>cd /usr/src</b> |
$ <b>tar xzf /tmp/src.tar.gz</b> |
$ <b>tar xzf /tmp/src.tar.gz</b> |
$ <b>tar xzf /tmp/sys.tar.gz</b> |
$ <b>tar xzf /tmp/sys.tar.gz</b> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>tar xzf /tmp/ports.tar.gz</b> |
$ <b>tar xzf /tmp/ports.tar.gz</b> |
$ <b>tar xzf /tmp/xenocara.tar.gz</b> |
$ <b>tar xzf /tmp/xenocara.tar.gz</b> |
</pre></blockquote> |
</pre> |
|
|
<h3 id="using">Using CVS to get and update your source trees</h3> |
<h3 id="using">Using CVS to get and update your source trees</h3> |
|
|
|
|
<p> |
<p> |
If you are following -current: |
If you are following -current: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P src</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P src</b> |
</pre></blockquote> |
</pre> |
|
|
If you are following the 6.3 -stable branch: |
If you are following the 6.3 -stable branch: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_3 -P src</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_3 -P src</b> |
</pre></blockquote> |
</pre> |
<!-- DO NOT EDIT ANONCVS.HTML MANUALLY - IT IS GENERATED FROM TEMPLATES! --> |
<!-- DO NOT EDIT ANONCVS.HTML MANUALLY - IT IS GENERATED FROM TEMPLATES! --> |
<!-- XXXrelease: bump -rOPENBSD_X_Y --> |
<!-- XXXrelease: bump -rOPENBSD_X_Y --> |
|
|
|
|
you will be asked to confirm the SSH fingerprint to ensure that you |
you will be asked to confirm the SSH fingerprint to ensure that you |
are connecting to the expected server: |
are connecting to the expected server: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cvs -d anoncvs@anoncvs.spacehopper.org:/cvs checkout -P src</b> |
$ <b>cvs -d anoncvs@anoncvs.spacehopper.org:/cvs checkout -P src</b> |
The authenticity of host 'anoncvs.spacehopper.org (2001:67c:15f4:a423::28)' can't be established. |
The authenticity of host 'anoncvs.spacehopper.org (2001:67c:15f4:a423::28)' can't be established. |
ED25519 key fingerprint is SHA256:oaJ7VEyjt2EHMeixzKn9zJGiV5YlWHIUls070tKdBzI. |
ED25519 key fingerprint is SHA256:oaJ7VEyjt2EHMeixzKn9zJGiV5YlWHIUls070tKdBzI. |
Are you sure you want to continue connecting (yes/no)? |
Are you sure you want to continue connecting (yes/no)? |
</pre></blockquote> |
</pre> |
|
|
In most cases, the list below includes the fingerprints for the server, |
In most cases, the list below includes the fingerprints for the server, |
so you can compare it against the displayed fingerprint as additional |
so you can compare it against the displayed fingerprint as additional |
verification that you are connecting to the correct server. |
verification that you are connecting to the correct server. |
Confirm this, and the fingerprint will then be saved as usual. |
Confirm this, and the fingerprint will then be saved as usual. |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
Are you sure you want to continue connecting (yes/no)? <b>yes</b> |
Are you sure you want to continue connecting (yes/no)? <b>yes</b> |
Warning: Permanently added 'anoncvs.spacehopper.org' (ED25519) to the list of known hosts. |
Warning: Permanently added 'anoncvs.spacehopper.org' (ED25519) to the list of known hosts. |
</pre></blockquote> |
</pre> |
|
|
<h4 id="updating">Updating an existing tree</h4> |
<h4 id="updating">Updating an existing tree</h4> |
|
|
If you are following -current: |
If you are following -current: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/src</b> |
$ <b>cd /usr/src</b> |
$ <b>cvs -q up -Pd -A</b> |
$ <b>cvs -q up -Pd -A</b> |
</pre></blockquote> |
</pre> |
|
|
If you are following the 6.3 -stable branch: |
If you are following the 6.3 -stable branch: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/src</b> |
$ <b>cd /usr/src</b> |
$ <b>cvs -q up -Pd -rOPENBSD_6_3</b> |
$ <b>cvs -q up -Pd -rOPENBSD_6_3</b> |
</pre></blockquote><!-- XXXrelease: bump -rOPENBSD_X_Y --> |
</pre><!-- XXXrelease: bump -rOPENBSD_X_Y --> |
|
|
Every time you run this, cvs(1) synchronizes your <tt>/usr/src</tt> tree. |
Every time you run this, cvs(1) synchronizes your <tt>/usr/src</tt> tree. |
It does not destroy any of your local changes; rather it attempts to merge |
It does not destroy any of your local changes; rather it attempts to merge |
|
|
from a different server, or from a tar file, you <b>must</b> |
from a different server, or from a tar file, you <b>must</b> |
add the <em>-d [cvsroot]</em> option to cvs. |
add the <em>-d [cvsroot]</em> option to cvs. |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/src</b> |
$ <b>cd /usr/src</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs -q up -Pd</b> |
</pre></blockquote> |
</pre> |
|
|
<h4>Getting the ports and xenocara trees</h4> |
<h4>Getting the ports and xenocara trees</h4> |
|
|
|
|
<p> |
<p> |
If you are following -current: |
If you are following -current: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P ports</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P ports</b> |
</pre></blockquote> |
</pre> |
|
|
If you are following the 6.3 -stable branch: |
If you are following the 6.3 -stable branch: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr</b> |
$ <b>cd /usr</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_3 -P ports</b> |
$ <b>cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -rOPENBSD_6_3 -P ports</b> |
</pre></blockquote><!-- XXXrelease: bump -rOPENBSD_X_Y --> |
</pre><!-- XXXrelease: bump -rOPENBSD_X_Y --> |
|
|
<li> Any time afterwards, to update this tree: |
<li> Any time afterwards, to update this tree: |
|
|
<p> |
<p> |
If you are following -current: |
If you are following -current: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/ports</b> |
$ <b>cd /usr/ports</b> |
$ <b>cvs -q up -Pd -A</b> |
$ <b>cvs -q up -Pd -A</b> |
</pre></blockquote> |
</pre> |
|
|
If you are following the 6.3 -stable branch: |
If you are following the 6.3 -stable branch: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/ports</b> |
$ <b>cd /usr/ports</b> |
$ <b>cvs -q up -Pd -rOPENBSD_6_3</b> |
$ <b>cvs -q up -Pd -rOPENBSD_6_3</b> |
</pre></blockquote><!-- XXXrelease: bump -rOPENBSD_X_Y --> |
</pre><!-- XXXrelease: bump -rOPENBSD_X_Y --> |
|
|
</ul> |
</ul> |
|
|
|
|
To make a diff of a locally patched module (here <tt>cd.c</tt>) to include with |
To make a diff of a locally patched module (here <tt>cd.c</tt>) to include with |
a bug report: |
a bug report: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /usr/src</b> |
$ <b>cd /usr/src</b> |
$ <b>cvs diff -u sys/scsi/cd.c > /tmp/patch</b> |
$ <b>cvs diff -u sys/scsi/cd.c > /tmp/patch</b> |
</pre></blockquote> |
</pre> |
|
|
<h3 id="EXAMPLE">Example usage for cvs(1)</h3> |
<h3 id="EXAMPLE">Example usage for cvs(1)</h3> |
|
|
A sample use of an anoncvs server would be: |
A sample use of an anoncvs server would be: |
|
|
<blockquote><pre> |
<pre class="cmdbox"> |
$ <b>cd /tmp</b> |
$ <b>cd /tmp</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P src/sys/arch/sparc</b> |
$ <b>cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs checkout -P src/sys/arch/sparc</b> |
[copies the files from the repository to your machine] |
[copies the files from the repository to your machine] |
|
|
[shows the commit log for the chosen file] |
[shows the commit log for the chosen file] |
$ <b>cvs diff -bc -r1.1 -r1.5 locore.s</b> |
$ <b>cvs diff -bc -r1.1 -r1.5 locore.s</b> |
[shows the changes between revisions 1.1 and rev 1.5] |
[shows the changes between revisions 1.1 and rev 1.5] |
</pre></blockquote> |
</pre> |
|
|
<h3 id="CVSROOT">Available Anonymous CVS servers</h3> |
<h3 id="CVSROOT">Available Anonymous CVS servers</h3> |
|
|
|
|
These are noted in the list above. |
These are noted in the list above. |
To use a different port, reconfigure your ssh client by adding a <tt>Host</tt> |
To use a different port, reconfigure your ssh client by adding a <tt>Host</tt> |
entry to <tt>$HOME/.ssh/config</tt>, e.g.: |
entry to <tt>$HOME/.ssh/config</tt>, e.g.: |
<blockquote><pre> |
<pre class="cmdbox"> |
Host anoncvs.ca.openbsd.org |
Host anoncvs.ca.openbsd.org |
Port 2022 |
Port 2022 |
</pre></blockquote> |
</pre> |
|
|
<h3 id="MIRROR">Setting up an anoncvs mirror</h3> |
<h3 id="MIRROR">Setting up an anoncvs mirror</h3> |
|
|