diff options
| author | Glenn Morris | 2013-01-09 20:12:46 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-01-09 20:12:46 -0800 |
| commit | 31045a5b61d54617cf6cc76e8991bc41d7853c65 (patch) | |
| tree | def2b3a7f9ee9c61b05663757e31e7969b8a2127 /admin | |
| parent | 3f9549e874035d963eb5ca02f24d51dc935e6326 (diff) | |
| download | emacs-31045a5b61d54617cf6cc76e8991bc41d7853c65.tar.gz emacs-31045a5b61d54617cf6cc76e8991bc41d7853c65.zip | |
Misc make-tarball updates
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/make-tarball.txt | 99 |
1 files changed, 71 insertions, 28 deletions
diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt index 573bb218c43..3825ac49278 100644 --- a/admin/make-tarball.txt +++ b/admin/make-tarball.txt | |||
| @@ -2,22 +2,46 @@ Instructions to create pretest or release tarballs. | |||
| 2 | -- originally written by Gerd Moellmann, amended by Francesco Potort́ | 2 | -- originally written by Gerd Moellmann, amended by Francesco Potort́ |
| 3 | with the initial help of Eli Zaretskii | 3 | with the initial help of Eli Zaretskii |
| 4 | 4 | ||
| 5 | For each step, check for possible errors. | ||
| 6 | 5 | ||
| 7 | 0. Decide on versions of automake and autoconf, and ensure you will | 6 | Steps to take before starting on the first pretest in any release sequence: |
| 7 | |||
| 8 | 1. Decide on versions of automake and autoconf, and ensure you will | ||
| 8 | have them available for the duration of the release process. | 9 | have them available for the duration of the release process. |
| 9 | 10 | ||
| 11 | 2. Consider increasing the value of the variable | ||
| 12 | `customize-changed-options-previous-release' in cus-edit.el to | ||
| 13 | refer to a newer version of Emacs. (This is probably needed only | ||
| 14 | when preparing the first pretest for a major Emacs release.) | ||
| 15 | Commit cus-edit.el if changed. | ||
| 16 | |||
| 17 | |||
| 18 | General steps (for each step, check for possible errors): | ||
| 19 | |||
| 10 | 1. `bzr update' (for a bound branch), or `bzr pull'. | 20 | 1. `bzr update' (for a bound branch), or `bzr pull'. |
| 11 | bzr status # check for locally modified files | 21 | bzr status # check for locally modified files |
| 12 | 22 | ||
| 13 | 2. Bootstrap to make 100% sure all elc files are up-to-date, and to | 23 | 2. Bootstrap to make 100% sure all elc files are up-to-date, and to |
| 14 | make sure that the later tagged version will bootstrap, should it be | 24 | make sure that the later tagged version will bootstrap, should it be |
| 15 | necessary to check it out. | 25 | necessary to check it out. |
| 16 | 26 | ||
| 17 | 3. Regenerate the etc/AUTHORS file: | 27 | 3. Regenerate the etc/AUTHORS file: |
| 18 | M-: (require 'authors) RET, M-x authors RET, save the *Authors* buffer. | 28 | M-: (require 'authors) RET |
| 19 | If there are errors that relate to syntactically incorrect | 29 | M-x authors RET |
| 20 | ChangeLog entries, consider fixing them and repeating. | 30 | |
| 31 | There is almost guaranteed to be an "*Authors Errors*" buffer with | ||
| 32 | problems caused by certain bad ChangeLog entries. You can ignore | ||
| 33 | the very old ones (eg lisp/erc has a lot). If there are errors | ||
| 34 | related to new entries (especially entries that are new since the | ||
| 35 | last pretest), see if you can fix them. If there was a ChangeLog | ||
| 36 | typo, fix it. If a file was deleted or renamed, consider adding | ||
| 37 | an appropriate entry to authors-ignored-files, authors-valid-file-names, | ||
| 38 | or authors-renamed-files-alist. | ||
| 39 | |||
| 40 | If necessary, repeat M-x authors after making those changes. | ||
| 41 | Save the "*Authors*" buffer as etc/AUTHORS. | ||
| 42 | Check the diff looks reasonable. Maybe add entries to | ||
| 43 | authors-ambiguous-files or authors-aliases, and repeat. | ||
| 44 | Commit any fixes to ChangeLogs or authors.el. | ||
| 21 | 45 | ||
| 22 | 4. Set the version number (M-x load-file RET admin/admin.el RET, then | 46 | 4. Set the version number (M-x load-file RET admin/admin.el RET, then |
| 23 | M-x set-version RET). For a release, add released ChangeLog | 47 | M-x set-version RET). For a release, add released ChangeLog |
| @@ -26,20 +50,18 @@ For each step, check for possible errors. | |||
| 26 | For a pretest, start at version .90. After .99, use .990 (so that | 50 | For a pretest, start at version .90. After .99, use .990 (so that |
| 27 | it sorts). | 51 | it sorts). |
| 28 | 52 | ||
| 29 | If needed, increment the value of the variable | ||
| 30 | `customize-changed-options-previous-release' in cus-edit.el to | ||
| 31 | refer to a newer release of Emacs. (This is probably needed only | ||
| 32 | when preparing a major Emacs release, or branching for it.) | ||
| 33 | |||
| 34 | 5. autoreconf -i -I m4 --force | 53 | 5. autoreconf -i -I m4 --force |
| 35 | make bootstrap | 54 | make bootstrap |
| 36 | 55 | ||
| 37 | 6. Commit etc/AUTHORS, all the files changed by M-x set-version, and | 56 | 6. Copy lisp/loaddefs.el to lisp/ldefs-boot.el. |
| 38 | lisp/cus-edit.el (if modified). | 57 | |
| 39 | Copy lisp/loaddefs.el to lisp/ldefs-boot.el and commit lisp/ldefs-boot.el. | 58 | Commit etc/AUTHORS, lisp/ldefs-boot.el, and the files changed |
| 59 | by M-x set-version. | ||
| 40 | For a release, also commit the ChangeLog files in all directories. | 60 | For a release, also commit the ChangeLog files in all directories. |
| 41 | 61 | ||
| 42 | 7. make-dist --snapshot. Check the contents of the new tar with | 62 | 7. ./make-dist --snapshot --no-compress |
| 63 | |||
| 64 | Check the contents of the new tar with | ||
| 43 | admin/diff-tar-files against an older tar file. Some old pretest | 65 | admin/diff-tar-files against an older tar file. Some old pretest |
| 44 | tarballs may be found at <ftp://alpha.gnu.org/gnu/emacs/pretest>; | 66 | tarballs may be found at <ftp://alpha.gnu.org/gnu/emacs/pretest>; |
| 45 | old release tarballs are at <ftp://ftp.gnu.org/pub/gnu/emacs/>. | 67 | old release tarballs are at <ftp://ftp.gnu.org/pub/gnu/emacs/>. |
| @@ -49,15 +71,15 @@ For each step, check for possible errors. | |||
| 49 | something like `find . | sort' in a clean bzr tree, and compare the | 71 | something like `find . | sort' in a clean bzr tree, and compare the |
| 50 | results against the new tar contents. | 72 | results against the new tar contents. |
| 51 | 73 | ||
| 52 | 8. tar -zxf emacs-NEW.tar.gz; cd emacs-NEW | 74 | 8. tar -xf emacs-NEW.tar; cd emacs-NEW |
| 53 | ./configure && make && make -n install | 75 | ./configure --prefix=/tmp/emacs && make && make install |
| 54 | Use `script' or M-x compile to save the compilation log in | 76 | Use `script' or M-x compile to save the compilation log in |
| 55 | compile-NEW.log and compare it against an old one. The easiest way | 77 | compile-NEW.log and compare it against an old one. The easiest way |
| 56 | to do that is to visit the old log in Emacs, change the version | 78 | to do that is to visit the old log in Emacs, change the version |
| 57 | number of the old Emacs to __, do the same with the new log and do | 79 | number of the old Emacs to __, do the same with the new log and do |
| 58 | M-x ediff. Especially check that Info files aren't built. | 80 | M-x ediff. Especially check that Info files aren't built. |
| 59 | 81 | ||
| 60 | 9. cd EMACS_ROOT_DIR; bzr tag TAG | 82 | 9. cd EMACS_ROOT_DIR && bzr tag TAG |
| 61 | TAG is emacs-XX.Y.ZZ for a pretest, emacs-XX.Y for a release. | 83 | TAG is emacs-XX.Y.ZZ for a pretest, emacs-XX.Y for a release. |
| 62 | 84 | ||
| 63 | Shortly before the release, cut the version branch also, and open | 85 | Shortly before the release, cut the version branch also, and open |
| @@ -65,16 +87,37 @@ For each step, check for possible errors. | |||
| 65 | be sent to the emacs-diffs mailing list (by default, the list | 87 | be sent to the emacs-diffs mailing list (by default, the list |
| 66 | normally only gets commits to the trunk). | 88 | normally only gets commits to the trunk). |
| 67 | 89 | ||
| 68 | 10. Now you should upload the files to the GNU ftp server. In order to | 90 | 10. Decide what compression schemes to offer. |
| 91 | For a release, at least gz and xz: | ||
| 92 | gzip --best -c emacs-NEW.tar > emacs-NEW.tar.gz | ||
| 93 | xz -c emacs-NEW.tar > emacs-NEW.tar.xz | ||
| 94 | |||
| 95 | Now you should upload the files to the GNU ftp server. In order to | ||
| 69 | do that, you must be registered as an Emacs maintainer and have your | 96 | do that, you must be registered as an Emacs maintainer and have your |
| 70 | GPG key acknowledged by the ftp people. For instructions, see | 97 | GPG key acknowledged by the ftp people. For instructions, see |
| 71 | http://www.gnu.org/prep/maintain/html_node/Automated-Upload-Registration.html | 98 | http://www.gnu.org/prep/maintain/html_node/Automated-Upload-Registration.html |
| 72 | You can use the gnulib script "gnupload" to upload each FILE, like this: | 99 | The simplest method is to use the gnulib <http://www.gnu.org/s/gnulib/> |
| 73 | gnupload --to alpha.gnu.org:emacs/pretest FILE (for a pretest) | 100 | script "build-aux/gnupload" to upload each FILE, like this: |
| 74 | gnupload --to ftp.gnu.org:emacs FILE (for a release) | 101 | |
| 102 | For a pretest: | ||
| 103 | gnupload [--user your@gpg.key.email] --to alpha.gnu.org:emacs/pretest \ | ||
| 104 | FILE.gz FILE.xz ... | ||
| 105 | |||
| 106 | For a release: | ||
| 107 | gnupload [--user your@gpg.key.email] --to ftp.gnu.org:emacs \ | ||
| 108 | FILE.gz FILE.xz ... | ||
| 109 | |||
| 110 | You only need the --user part if you have multiple GPG keys and do | ||
| 111 | not want to use the default. | ||
| 112 | Obviously, if you do not have a fast uplink, be prepared for the | ||
| 113 | upload to take a while. | ||
| 114 | |||
| 115 | |||
| 116 | If you prefer to do it yourself rather than use gnupload: | ||
| 117 | |||
| 118 | For each FILE, create a detached GPG binary signature and a | ||
| 119 | clearsigned directive file like this: | ||
| 75 | 120 | ||
| 76 | Instead of using gnupload, for each FILE, create a detached GPG | ||
| 77 | binary signature and a clearsigned directive file like this: | ||
| 78 | gpg -b FILE | 121 | gpg -b FILE |
| 79 | echo directory: emacs/pretest > FILE.directive (for a pretest) | 122 | echo directory: emacs/pretest > FILE.directive (for a pretest) |
| 80 | echo directory: emacs > FILE.directive (for a release) | 123 | echo directory: emacs > FILE.directive (for a release) |
| @@ -85,13 +128,12 @@ For each step, check for possible errors. | |||
| 85 | For a pretest, place the files in /incoming/alpha instead, so that | 128 | For a pretest, place the files in /incoming/alpha instead, so that |
| 86 | they appear on ftp://alpha.gnu.org/. | 129 | they appear on ftp://alpha.gnu.org/. |
| 87 | 130 | ||
| 88 | For a release, upload xz and bz2 tarfiles as well; this can save a lot | ||
| 89 | of bandwidth. | ||
| 90 | |||
| 91 | 11. After five minutes, verify that the files are visible at | 131 | 11. After five minutes, verify that the files are visible at |
| 92 | ftp://alpha.gnu.org/gnu/emacs/pretest/ for a pretest, at | 132 | ftp://alpha.gnu.org/gnu/emacs/pretest/ for a pretest, or |
| 93 | ftp://ftp.gnu.org/gnu/emacs/ for a release. | 133 | ftp://ftp.gnu.org/gnu/emacs/ for a release. |
| 94 | 134 | ||
| 135 | Download them and check the signatures. Check they build. | ||
| 136 | |||
| 95 | 12. For a pretest, announce it on emacs-devel and info-gnu-emacs@gnu.org. | 137 | 12. For a pretest, announce it on emacs-devel and info-gnu-emacs@gnu.org. |
| 96 | For a release, also announce it on info-gnu@gnu.org. (Probably | 138 | For a release, also announce it on info-gnu@gnu.org. (Probably |
| 97 | bcc the info- addresses to make it less likely that people will | 139 | bcc the info- addresses to make it less likely that people will |
| @@ -99,3 +141,4 @@ For each step, check for possible errors. | |||
| 99 | 141 | ||
| 100 | 13. For a release, update the Emacs homepage in the web repository. | 142 | 13. For a release, update the Emacs homepage in the web repository. |
| 101 | Also add the new NEWS file as NEWS.xx.y. | 143 | Also add the new NEWS file as NEWS.xx.y. |
| 144 | Maybe regenerate the html manuals, update the FAQ, etc, etc. | ||