Hitchhiker's Guide to Openbsd


- Fetching the appropriate source code


Download 1.27 Mb.
Pdf ko'rish
bet69/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   65   66   67   68   69   70   71   72   ...   258
Bog'liq
obsd-faq49

5.3.3 - Fetching the appropriate source code
OpenBSD source is managed using the 
CVS
version control system, and 
cvs(1)
is used to pull a copy of 
the desired source to your local machine for compilation. This can be done by using an 
AnonCVS
 server 
(a machine holding a publicly accessible copy of the entire CVS repository used by the OpenBSD 
project) or from a local CVS repository you maintain using the 
CVSup
, or 
CVSync
 programs available 
as 
packages
. CVSup can also be used in a "checkout" mode, but that will not be covered here. If you 
have multiple machines you wish to maintain source code trees on, you may find it worth having a local 
http://www.openbsd.org/faq/faq5.html (6 of 26)9/4/2011 10:02:02 AM


5 - Building the System from Source
CVS repository, created and maintained using CVSup or CVSync. 
After deciding which 
AnonCVS server
 you wish to use, you must "checkout" the source tree, after that, 
you then maintain the tree by running "updates", to pull updated files to your local tree. 
The 
CVS(1)
command has many options, some of them are required to checkout and update a useful 
tree. Other commands can cause a broken tree. Following and understanding directions here is 
important. 
Following -current
In this case, we will assume we are using a public AnonCVS server, anoncvs@anoncvs.
example.org:/cvs. We will also assume you are using 
sh(1)
 as your command shell, if you 
are using a different shell, you will have to adjust some of these commands. 
To checkout a -current CVS src tree, you can use the following: 
cd /usr
export CVSROOT=anoncvs@anoncvs.example.org:/cvs
cvs -d$CVSROOT checkout -P src
Once you have a tree, you can update it at a later time: 
cd /usr/src
export CVSROOT=anoncvs@anoncvs.example.org:/cvs
cvs -d$CVSROOT up -Pd

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   65   66   67   68   69   70   71   72   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling