]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man7/development.7
MFV r331400: 8484 Implement aggregate sum and use for arc counters
[FreeBSD/FreeBSD.git] / share / man / man7 / development.7
1 .\" Copyright (c) 2018 Edward Tomasz Napierala <trasz@FreeBSD.org>
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD$
26 .\"
27 .Dd March 13, 2018
28 .Dt DEVELOPMENT 7
29 .Os
30 .Sh NAME
31 .Nm development
32 .Nd introduction to FreeBSD development process
33 .Sh DESCRIPTION
34 .Fx
35 development is split into three major suprojects: doc, ports, and src.
36 Doc is the documentation, such as the FreeBSD Handbook.
37 To read more, see:
38 .Pp
39 .Lk https://www.FreeBSD.org/doc/en/books/fdp-primer/
40 .Pp
41 Ports, described further in
42 .Xr ports 7 ,
43 are the way to build, package, and install third party software.
44 To read more, see:
45 .Pp
46 .Lk https://www.FreeBSD.org/doc/en/books/porters-handbook/
47 .Pp
48 The last one, src, revolves around the source code for the base system,
49 consisting of the kernel, and the libraries and utilities commonly called
50 the world.
51 .Pp
52 The Committer's Guide, describing topics relevant to all committers,
53 can be found at:
54 .Pp
55 .Lk https://www.FreeBSD.org/doc/en/articles/committers-guide/
56 .Pp
57 FreeBSD src development takes place in the CURRENT branch in Subversion,
58 located at:
59 .Pp
60 .Lk http://svn.FreeBSD.org/base/head
61 .Pp
62 There is also a read-only GitHub mirror at:
63 .Pp
64 .Lk https://github.com/freebsd/freebsd
65 .Pp
66 Changes are first committed to CURRENT and then usually merged back
67 to STABLE.
68 Every few years the CURRENT branch is renamed to STABLE, and a new
69 CURRENT is branched, with an incremented major version number.
70 Releases are then branched off STABLE and numbered with consecutive minor numbers.
71 .Pp
72 Layout of the source tree is described in
73 .Xr hier 7 .
74 Build instructions can be found in
75 .Xr build 7
76 and
77 .Xr release 7 .
78 For coding conventions, see
79 .Xr style 9 .
80 .Pp
81 To ask questions regarding development, use the mailing lists,
82 such as freebsd-arch@ and freebsd-hackers@:
83 .Pp
84 .Lk https://lists.FreeBSD.org/
85 .Pp
86 To get your patches integrated into the main freebsd repository use Phabricator;
87 it is a code review tool that allows other developers to review the changes,
88 suggest improvements, and, eventually, allows them to pick up the change and
89 commit it:
90 .Pp
91 .Lk https://reviews.FreeBSD.org
92 .Pp
93 .Sh EXAMPLES
94 Check out the CURRENT branch, build it, and install, overwriting the current
95 system:
96 .Dl svnlite co https://svn.FreeBSD.org/base/head src
97 .Dl cd src
98 .Dl make -j8 buildworld buildkernel installkernel
99 .Dl reboot
100 .Pp
101 After reboot:
102 .Dl cd src
103 .Dl make -j8 installworld
104 .Pp
105 .Sh SEE ALSO
106 .Xr witness 4 ,
107 .Xr build 7 ,
108 .Xr hier 7 ,
109 .Xr release 7 ,
110 .Xr locking 9 ,
111 .Xr style 9
112 .Sh HISTORY
113 The
114 .Nm
115 manual page was originally written by
116 .An Matthew Dillon Aq Mt dillon@FreeBSD.org
117 and first appeared
118 in
119 .Fx 5.0 ,
120 December 2002.
121 It was since extensively modified by
122 .An Eitan Adler Aq Mt eadler@FreeBSD.org
123 to reflect the repository conversion from
124 .Xr cvs 1
125 to
126 .Xr svn 1 .
127 It was rewritten from scratch by
128 .An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
129 for
130 .Fx 12.0 .