]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/atf/FREEBSD-upgrade
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / atf / FREEBSD-upgrade
1 $FreeBSD$
2
3 This document contains a collection of notes specific to the import
4 of atf into head.  These notes are built on the instructions in
5 the FreeBSD Subversion Primer that detail how to deal with vendor
6 branches and you are supposed to follow those:
7
8         http://www.freebsd.org/doc/en/articles/committers-guide/subversion-primer.html
9
10 The ATF source code is hosted on GitHub:
11
12         https://github.com/jmmv/atf
13
14 and is imported into the atf vendor branch (see base/vendor/atf/).
15
16 To merge the vendor branch into head do something like this:
17
18         cd .../base/head/contrib/atf
19         svn merge --accept=postpone \
20             svn+ssh://svn.freebsd.org/base/vendor/atf/dist .
21         svn remove --force $(cat FREEBSD-Xlist)
22
23 and resolve any conflicts that may arise at this point.
24
25 Once this is done, you must regenerate bconfig.h.  The recommended way
26 of doing so is by using the release files already imported into the
27 vendor branch (which is a good justification for importing the verbatim
28 sources in the first place so that this step is reproducible).  You can
29 use a set of commands similar to the following:
30
31         mkdir /tmp/atf
32         cd /tmp/atf
33         .../vendor/atf/dist/configure \
34             --prefix=/ \
35             --exec-prefix=/usr \
36             --datarootdir=/usr/share
37         cp bconfig.h .../base/head/contrib/atf/
38
39 Please do NOT run './configure' straight from the 'dist' directory of
40 the vendor branch as you easily risk committing build products into the
41 tree.
42
43 Lastly, with the list of old and new files in this import, make sure
44 to update the reachover Makefiles accordingly.
45
46 Test the build (keeping in mind the WITH_TESTS/WITHOUT_TESTS knobs) and,
47 if all looks good, you are ready to commit all the changes in one go.