1 Here are most of the steps we (maintainers) follow when making a release.
3 * start from a clean, up-to-date git directory.
5 git checkout master; git pull
7 * Run ./configure && make maintainer-clean
9 * Ensure that the desired versions of autoconf, automake, bison, etc.
10 are in your PATH. See the buildreq list in bootstrap.conf for
13 * Ensure that you're on "master" with no uncommitted diffs.
14 This should produce no output: git checkout master; git diff
16 * Ensure that you've pushed all changes that belong in the release
17 and that the NixOS/Hydra autobuilder is reporting all is well:
19 https://hydra.nixos.org/jobset/gnu/coreutils-master
21 * Run bootstrap one last time. This downloads any new translations:
25 FIXME: enable excluded programs like arch? to get their manual pages?
27 * Check for new file system types by running the following command on
28 a system with the most recent kernel possible (e.g., Fedora rawhide):
30 make src/fs-magic-compare
32 Or download the latest header first like:
34 kgit='https://git.kernel.org/cgit/linux/kernel/git'
35 wget -q $kgit/torvalds/linux.git/plain/include/uapi/linux/magic.h \
36 -O src/fs-latest-magic.h
38 If it finds a new file system magic number, add it to src/stat.c.
39 If it is a remote file system tag it as such.
41 Note there may be some new file systems magic values not defined
42 in that linux/magic.h file, which can be seen at:
44 https://www.livegrep.com/search/linux\
45 ?q=%23define+.*_SUPER_MAGIC+-file%3Amagic\.h
48 * Pre-release testing:
50 Run the following on at least one SELinux-enabled (enforcing) and
51 one non-SELinux system:
53 n=$(( ($(nproc) + 1) / 2 ))
54 sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER \
55 make -k -j$(nproc) check-root SUBDIRS=. \
57 && make -j$n check RUN_VERY_EXPENSIVE_TESTS=yes RUN_EXPENSIVE_TESTS=yes
59 If testing on systems with a non standard default shell, spurious failures
60 may occur. Often there are other shells available, and you can select
61 those by using for example, SHELL=bash in the commands above.
63 Note that the use of -j$n tells make to use approximately half of the
64 available processing units. If you use -jN, for larger N, some of the
65 expensive tests are likely to interfere with concurrent performance-measuring
66 or timing-sensitive tests, resulting in spurious failures.
68 If "make distcheck" doesn't run "make syntax-check" for you, then run
73 * To set the date, version number, and release type [stable/alpha/beta] on
74 line 3 of NEWS, commit that, and tag the release; run:
76 build-aux/do-release-commit-and-tag X.Y stable
78 * Run the following to create release tarballs. Your choice selects the
79 corresponding upload-to destination in the emitted gnupload command.
80 The different destinations are specified in cfg.mk. See the definitions
81 of gnu_ftp_host-{alpha,beta,stable}.
83 # "TYPE" must be stable, beta or alpha
86 * Test the tarball. copy it to a few odd-ball systems and ensure that
87 it builds and passes all tests.
89 * While that's happening, write the release announcement that you will
90 soon post. Start with the template, $HOME/announce-coreutils-X.Y
91 that was just created by that "make" command.
93 For generating counts use:
94 oldrel=$(cat .prev-version)
95 printf "There have been %d commits by %d people %s\n" \
96 $(($(git log --oneline v$oldrel.. | wc -l) - 3)) \
97 $(git shortlog v$oldrel.. | grep "^[^ ]" | wc -l) \
98 "in the [X] weeks since $oldrel"
100 git shortlog v$oldrel.. | sed -n 's/:$//p' |
101 sed 's/^/ /' | column -c 70 | expand
103 Once all the builds and tests have passed,
105 * Run the gnupload command that was suggested by your "make stable" run above.
107 * Wait a few minutes (maybe up to 30?) and then use the release URLs to
108 download all tarball/signature pairs and use gpg --verify to ensure
109 that they're all valid.
111 * Push the NEWS-updating changes and the new tag:
113 v=$(cat .prev-version)
114 git push origin master tag v$v
116 * Announce it on Savannah first, so you can include the preferable
117 savannah.org announcement link in the email message.
120 https://savannah.gnu.org/projects/coreutils/
121 click on the "submit news", then write something like the following:
122 (If there is no such button, then enable "News" for the project via
123 the Main -> "Select Features" menu item, or via this link:
124 https://savannah.gnu.org/project/admin/editgroupfeatures.php?group=coreutils)
126 Subject: coreutils-X.Y released [stable]
128 ...paste the announcement here...
131 Then go here to approve it:
132 https://savannah.gnu.org/news/approve.php?group=coreutils
134 * Send the announcement email message (signed with the release key)
136 * Approve the announcement here:
137 https://lists.gnu.org/mailman/admindb/coreutils-announce
139 * After each non-alpha release, update the on-line manual accessible via
141 https://www.gnu.org/software/coreutils/manual/
145 build-aux/gnu-web-doc-update --mirror