4 This is the portable version of got[1] (Game of Trees), using autotools to
5 provide the library checks required for GoT's dependencies.
7 The following operating systems are supported:
20 * `libncurses` (for tog(1))
21 * `libmd` (BSD's digest routines)
22 * `libbsd` (BSD's arc4random routines)
23 * `libcrypto` (often via 'libssl-dev' for SHA1 routines)
24 * `libuuid` (for UUID generation)
25 * `libz` (for Z compression)
26 * `pkg-config` (for searching libraries)
27 * `bison` (for configuration file grammar)
28 * `libevent` (for gotwebd)
34 * `GNU coreutils` (for running tests)
35 * `libevent` (for gotwebd)
42 * `GNU coreutils` (for running tests)
43 * `libevent` (for gotwebd)
50 * `GNU coreutils` (for running tests)
51 * `libevent` (for gotwebd)
61 * `GNU coreutils` (for running tests)
62 * `libevent` (for gotwebd)
67 To run the test suite:
73 NOTE: For Linux, you must have the jot(1) command which is typically in the
74 `athena-jot` package, or similar. For non-linux systems (as mentioned above),
75 GNU coreutils needs to be installed.
77 NOTE: THIS ONLY WORKS AFTER `make install` DUE TO HOW PATHS TO LIBEXEC
78 HELPERS ARE HARD-CODED INTO THE BINARIES.
89 BRANCHES + SUBMITTING PATCHES
90 =============================
92 `got-portable` has two key branches:
94 * `main` which tracks got upstream untainted.
95 * `linux` which provides the portable version of GoT based from code on `main`
97 Patches for portable code fixes should be based from the `linux` branch and
98 sent to the mailing list for review [2] or sent to me directly (see CONTACT).
100 Portable-specific patches should have a shortlog in the form of:
103 portable: AREA: description
106 Where `AREA` relates to the change in question (for example, `regress`,
107 `libexec`, etc). In some cases, this can be omitted if it's a generic change.
109 This helps to delineate `-portable` changes from upstream `got`.
111 The read-only Github repository also runs CI checks using Cirrus-CI on Linux
114 SYNCING UPSTREAM CHANGES WITH PORTABLE
115 ======================================
117 The `-portable` GoT repository uses the following workflow:
120 Github (gh) GoT (upstream)
126 +--------> GoT-portable <------+
130 Here, `got-portable` is a clone of the `-portable` repository, locally on
131 disk. There are two remotes set up within that repository, via `git-remote`:
133 * `upstream` -- which points to the official GoT repository;
134 * `gh` -- which points to the mirrored `-portable` repository so that CI can
135 be run for cross-platform/test purposes [3]
136 * `origin` -- our cloned copy from `-portable`
138 Within the `-portable` repository are two key branches (there may be other
139 topic branches which represent on-going work):
141 * `main` -- this is the branch that tracks (without modification) those
142 changes from `upstream`. This branch is continually reset to
143 `upstream/main` whenever changes occur.
145 * `linux` -- this is the *default* branch of the `-portable` repository which
146 contains portable-specific changes to make `GoT` compile across different
149 When updating `-portable` from upstream changes, the following actions happen:
151 1. Changes from `upstream` are fetched. If there are no new changes, there's
153 2. Changes from `gh` are fetch so that the result can be pushed out to `gh`.
154 3. The difference between the local copy of `main` and `origin/main` is used
155 to represent the set of commits which have *NOT* yet been merged to
157 4. A topic-branch called `syncup` is created from the HEAD of the `linux`
158 branch to hold the to-be-cherry-picked commits from step 3.
159 5. These commits are then cherry-picked to the `syncup` branch.
160 6. If there's any conflicts, they must be resolved.
161 7. Once done, a sanity build is done in-situ to check there's nothing amiss.
162 8. If that succeeds, the `syncup` branch is merged to `linux` and pushed to
163 `gh` for verification against CI.
164 9. If that fails, fixes continue and pushed up to `gh` as required.
165 10. Once happy, both the `main` and `linux` branches can be merged to `origin`.
167 These steps are encapsulated in a script within `-portable`. [Link](../maintscripts/sync-upstream.sh)
169 RELEASING A NEW VERSION
170 =======================
172 Release for `-portable` try and align as close to upstream GoT as much as
173 possible, even on the same day where that can happen. That being said,
174 sometimes a release of `-portable` might happen outside of that cadence, where
175 a `-portable`-specific issue needs addressing, for example.
177 Before creating a new release, check the version of GoT as found in
178 `util/got-portable-ver.sh` -- as `GOT_PORTABLE_VER`:
181 GOT_PORTABLE_VER=0.75
185 Here, the *to be released* version of `got-portable` will be `0.75`.
186 Typically, this version is incremented directly after a release, such that
187 there's no need to change this value. The only exception would be if there
188 were an out-of-band release to `-portable`. In such cases, that would take
195 Where the suffix of `a`, `b`, etc., can be used to denote any sub-releases
196 from the `0.75` version.
198 The variable `GOT_RELEASE` needs be changed to `yes` so that the
199 GOT_PORTABLE_VER is asserted correctly.
201 Once the version is verified, the following should be run from the `linux`
202 branch -- and the repository should not have any outstanding modifications to
206 make clean ; ./autogen && ./configure && make distcheck
209 If this succeeds, the tarball is in the CWD, as: `got-portable-VERSION.tar.gz`
211 This can then be copied to the `got-www` repository and uploaded, along with
212 changing a couple of HTML pages therein to represent the new released version.
213 Additionally, the CHANGELOG file can be copied to the `got-www` and committed.
218 configure.ac should start defining AC_ENABLE arguments to allow for
219 finer-grained control of where to search for includes/libraries, etc.
224 Thomas Adam <thomas@xteddy.org><br />
225 thomas_adam (#gameoftrees on irc.libera.chat)
227 [1] https://gameoftrees.org<br />
228 [2] https://lists.openbsd.org/cgi-bin/mj_wwwusr?user=&passw=&func=lists-long-full&extra=gameoftrees
229 [3] https://github.com/ThomasAdam/got-portable