Hitchhiker's Guide to Openbsd


Download 1.27 Mb.
Pdf ko'rish
bet75/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   71   72   73   74   75   76   77   78   ...   258
Bog'liq
obsd-faq49

5.5 - Building X (Xenocara)
Starting with 
X.org v7,
X switched to "modular build" system, splitting the x.org source tree into more 
than three hundred more-or-less independent packages. 
To simplify life for OpenBSD users, a "meta-build" called 
Xenocara
 was developed. This system 
"converts" X back into one big tree to be built in one process. As an added bonus, this build process is 
much more similar to the build process used by the rest of OpenBSD than the previous versions were. 
The official instructions for building X exist in your machine's 
/usr/xenocara/README
file and in 
release(8)

Getting source code
http://www.openbsd.org/faq/faq5.html (13 of 26)9/4/2011 10:02:02 AM


5 - Building the System from Source
The "usual" location for the xenocara source tree is 
/usr/xenocara
, and the source is stored in the 
xenocara
module in CVS. So, the checkout process is this: 
cd /usr
cvs -qdanoncvs@anoncvs.example.org:/cvs checkout -P 
xenocara
Building Xenocara
For building the standard xenocara tree as supported by OpenBSD, no external tools are needed. 
cd /usr/xenocara
rm -rf /usr/xobj/*
make bootstrap
make obj
make build
If you wish to make actual modifications to the source code, you will probably need to add several 
packages
. Details are in the 
/usr/xenocara/README
file. 
Making a release
This is similar to the main system release process. After successfully building X, you will define a 
DESTDIR and RELEASEDIR, with the same purposes as above. The RELEASEDIR can be the same 
directory as the main system RELEASEDIR, but DESTDIR will be erased and rebuilt in this process. If 
done carefully, this is not a problem, but using a separate DESTDIR may be "safer". 
For this example, we will use a DESTDIR and RELEASEDIR of /usr/dest and /usr/rel, respectively. 
This must be done after the above build process. 
export DESTDIR=/usr/dest
export RELEASEDIR=/usr/rel
test -d ${DESTDIR} && mv ${DESTDIR} ${DESTDIR}- && \

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   71   72   73   74   75   76   77   78   ...   258




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