summaryrefslogtreecommitdiff
path: root/Master/tlpkg/doc/releng.txt
blob: 19ae1e747bc55cde05383998ed8f9a4f7f0cdc16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
$Id$
Public domain.

Notes on putting together the pretest and yearly release --karl.
See ./packages.txt for info on regular updates, adding/removing platforms, etc.

Coordinate/announce schedule with:
 maintainers of: engines, LaTeX, GUST font, asymptote, context, texworks
 other parts of collection: protext, ctan, mactex.
 general lists

Check if pretest mirrors need renewing, talk to mirror admins if so:
 http://tug.org/texlive/mirmon/
 /home/httpd/html/texlive/mirmon/tlpretest-mirrors.txt

To stop updating of certain packages before the general freeze:
 tlpkg/dev/tlnet-disabled-packages.txt


 I. Preparing, can be done before pretest starts.

1. doc: write updates for pretest.html, leave commented out until start.
 - check NEWS/CHANGES/etc. files for all engines and major programs.
 - diff new and old bindirs to see if there are interesting new programs:
  \ls $lb >/tmp/now
  \ls $ib >/tmp/new
  comm -3 /tmp/now /tmp/new >/tmp/cm
 - if new kpathsea file types (kpsewhich --help-formats), update kpathsea.texi.
 - see also doc item below for more necessary updates after pretest starts.

2. Ask tldistro for patches.

2. No /dev suffix: Build/source/{version.ac,texk/{kpathsea,ptexenc}/version.ac

3. Check/update copyright years: *.pm, tlmgr*, install-tl, tlpkg/installer

4. Check for upstream releases: {libs,texk,utils}/README

5. When finalizing sources (any time in the new year, can be early,
    before initial builds in any case),
   update version numbers, years, and copyright years in:
  top level version.ac
  dvipdfm-x:configure.ac dvipdfmx.c xbb.c
  dvips:    configure.ac NEWS dvips.c dvips.h afm2tfm.c dvips.texi
  kpathsea: version.ac NEWS kpsewhich.c doc/kpathsea.texi texmf.cnf
  ptexenc:  version.ac
  web2c:    NEWS doc/web2c.texi ptexdir/ptex-base.ch,ptex_version.h
            pdftexdir/pdftex.web pdftexdir/pdftex_version.h
  then reautoconf (~5min), rebuild (~10min).
  install-tl, tlmgr.pl (copyright only)
  check *.c *.h sources in above for needed copyright year updates too.
  run ~karl/bin/tlversions to see+compare engine/etc. versions
  commit updates.


 II. Building pretest instead of regular release.

0. On the day of the last tlnet update,
 Set frozen=>1 in TLConfig.pm.
 Freeze should happen at that night's rebuild.

1. Then, the next day, start building tlpretest:
  Reset frozen=>0 in TLConfig.pm.

1a. Then preserve final tlnet of current release YYYY:
cd /home/ftp/texlive/tlnet
cp -ar ../tlnet /home/ftp/historic/systems/texlive/YYYY/tlnet-final

1b. Set up tlpretest:
Update /home/ftp/texlive/tlpretest/README.
Empty tlpretest except for that README and 00_TIME.txt (used for mirmon).

2. Prepare for pretest in cron.tl:
critical=--critical	 # push tlcritical
pretest=--pretest	 # update tlpretest, not tlnet (if not frozen)
net_frozen=false 	 # update tlnet|tlpretest (per $pretest)
(tlcritical will remain getting updated daily, even though it doesn't
 work with tlnet any more.  That's ok.  Or disable if you prefer.)
First build happens below, after many more changes; don't start it yet.

3. option adjustrepo 0 in tl-update-tlnet, since pretest users shouldn't go
to CTAN for updates.

4. After setting up for pretest (not before), basic updates for release year:
Master/.mkisofsrc
Master/release-texlive.txt
Master/tlpkg/TeXLive/TLConfig.pm -- $ReleaseYear and think about $MinRelease
Master/tlpkg/bin/tl-update-tlnet
Master/tlpkg/bin/tl-update-images
Master/tlpkg/installer/texlive.png (tlpkg/doc/texlive-installer-graphic.xcf)
Master/texmf-dist/web2c/texmfcnf.lua
Master/texmf-dist/web2c/texmf.cnf  # from Build/.../kpathsea

5. Ensure version numbers in sources are updated; see list above.
Then install new binaries with tl-update-bindir.
Add new executables to appropriate .tlpsrc files (likewise removals).
Add new scripts to linked_scripts if not already handled.

6. Run tex \\end to check that mktexfmt works. 
Also run fmtutil --all to check that all formats build, no config file
problems.  Ensure that web2c/texmf.cnf is updated for the current year
(per above).  Then, so things will get redone later as another check:
  rm -rf ~/.texlive`date +%Y`  # the new one

7. Check for Build-maintained updates to config files, etc.
(and might have to merge back if Master was mistakenly updated):
  diff -ru0 --exclude=man --exclude=info \
    Build/source/inst/texmf-dist Master/texmf-dist

7a. If new cjk release:
cd Master/texmf-dist/doc
for p in *conv hbf2gf; do cp /home/ftp/tex-archive/language/chinese/CJK/cjk-X.Y.Z/doc/pdf/$p.pdf $p; done

8. Now, finally, try a first update of tlpretest:
  force_rebuild=true cron.tl
This will fail because pretest is not set up, but that's ok; the idea is
to check the output and ensure all is as basically ok.

8a. svn commit all the above.

9. After that trial build looks ok, set in cron.tl:
recreate=--recreate  # just once! to get catalogue updates, and again:
   And do:
mkdir /home/ftp/texlive/tlpretest/tlpkg
touch !$/texlive.tlpdb
force_rebuild=true cron.tl

10. After first rebuild success, undo --recreate. Life goes on.

A. At some point, after tlnet freeze:
  Run tl-update-linked-scripts for consistency.
  In Master/tlpkg, update bundled Windows programs as needed:
    dviout texworks tlgs tlperl tlpsv
  In tlpkg/installer, update xz and wget if needed
  Update readme-html.dir/readme.en.html if needed
    run tlpkg/bin/htmltext to create readme-txt.dir/README.EN.
  Update texcollection DVD text:
    http://tug.org/texcollection/
    http://puszcza.gnu.org.ua/projects/texcollection/

B. Specifics for tlperl update:
  cd $pg
  find tlperl -type f | \grep -v README.TEXLIVE | sort >/tmp/now
  zipinfo -1 newperl.zip | \grep -v /\$ | sort >/tmp/new
  unzip -q newperl.zip  # replace All files
  comm -13 /tmp/now /tmp/new >/tmp/c2
  comm -23 /tmp/now /tmp/new >/tmp/c1
  wc -l /tmp/c1 /tmp/c2 # should not be everything
  svn rm `cat /tmp/c1`
  svn add --parents --no-auto-props `cat /tmp/c2`
  svn status | fgrep \? # shouldn't be any besides newperl.zip
  find tlperl -name \*.dll -o -name \*.exe | xargs svn propset svn:executable 1
  find tlperl -type d -empty | xargs svn rm  # repeat until no output
  update tlperl/README.TEXLIVE
  svn commit when ready ...

C. Build a test ISO image for initial TeX Collection testing:
  In cron.tl, set images_frozen=false.
  In tl-update-images, ensure V= the new YYYY and target=/.../test
  Update /home/ftp/texlive/Images/test/README.
  After successful image build, email tldistro@tug.org for info/review.
  Can disable image building again after the initial build for a while.


M. As work proceeds, update the doc:
  MetaPost (in texmf-dist), other engine (in source) NEWS.
  Ensure all engine manuals updated in texmf-dist.
  Update texlive-en.tex (+ .pdf, .html), tell tldoc to translate.
    Update year numbers by one, write news section,
    update "Builders of the binaries" and "Translators of this manual",
    and changes throughout if behavior has changed.
  Update tlbuild.texi text, then
    make tlbuild-incl.texi && make readme-files && make readme-install.
  Consider updates of core man pages in Build/source/texk/web2c/man.
  Remake updmap,fmtutil man pages with help2man:
    make -C Build/source/Work/texk/texlive/tl_scripts xupdmap.1 xfmtutil.1
    They must be moved from /tmp into Master by hand:
      mv /tmp/xupdmap.1 $x1/updmap.1
      mv /tmp/xfmtutil.1 $x1/fmtutil.1
    Also update ~www/texlive/doc/*.html (groff -mandoc -Thtml fmtutil.1):
      mv /tmp/xupdmap.1.html $lw/doc/updmap.html
      mv /tmp/xfmtutil.1.html $lw/doc/fmtutil.html
  Texinfo manuals from Build to Master:
    tl-update-txi
  Man pages from Build to Master (after doing a build):
    tl-update-man
    # then run make in texmf-dist/doc/man
    # and check /tmp/so.rules against man1/Makefile
  Update texdoc Data.tlpdb.lua.
  Don't forget commit in texmf-dist/doc.

N. Really test during pretest (really! don't leave it for Knuth to do!):
  .fmt's sharable across endian-different platforms (including luatex).
  interactive mf '\drawdot (50,50); showit;'  % and from * prompt

O. Two days before the final pretest (i.e., to-be-published) build:
  Put date into NEWS and ChangeLog files.
  Update Build/source/tardate.ac.
  tlmgr version number in texmf-dist/scripts/texlive/NEWS.
  Rebuild test images so we get the new source.
  Tell developers no more commits: tldev + 
    akira, hironobu, luigi, mojca, takuji.

P. The day before the final pretest:
  option adjustrepo 1 in tl-update-tlnet, else install-tl-unx won't go to ctan
  Update Master/source:
    xz wget w32tex-src texlive*source mactexdoc install-tl-unx.tar.gz 

Q. After final build, to do total freeze:
  In cron.tl, set *_frozen=true.
  Probably also just disable the cron entry.


 III. Making the big release:

- unmount live install of last year's:
umount /home/ftp/texlive/Contents/live

hx=/home/ftp/historic/systems/texlive
prev=2016
this=2017
mkdir $hx/$this

cd /home/ftp/texlive/Images
cp README.md $hx/$prev/
mv *.iso* *.torrent* $hx/$prev/
mv test/texlive2*.iso* .
mv test/texlive*.tar.xz* $hx/$this/	# tar version only in historic
update README (touch even if no real changes needed)
   and test/README (pretest over)

- mactex (from tlpretest)
hm=/home/ftp/historic/systems/mactex
mkdir $hm/$prev
cd ~ftp/tex/mactex
mv *-*.pkg* $hm/$prev
mv ~ftp/texlive/tlpretest/mactex*pkg* .
ln -s mactex-20*.pkg MacTeX.pkg 
ln -s mactex-basic* BasicTeX.pkg
ln -s mactex-ghost* Ghostscript.pkg
for p in *.pkg; do md5sum $p >$p.md5; done  # used on mactex web pages
mkdir $hm/$this
cp Extras*pdf MacTeXtras-*.zip $hm/$this

- rest of tlnet
cd /home/ftp/texlive/tlnet
diff -qr . $hx/$prev/tlnet-final # should already be there from before, so:
rm -rf [a-z]*
mv ../tlpretest/[a-z]* .
update README (touch even if no real changes needed)
   and ../tlpretest/README (pretest over)
cp install-tl-unx.tar.gz $hx/$this/

- update local CTAN area to avoid mirroring everything back again:
cy=/home/ftp/tex-archive/systems
fx=/home/ftp/tex
rm -rf $cy/texlive/tlnet/*; cp -ar * $cy/texlive/tlnet/
rm $cy/texlive/Images/*; cp -a ../Images/*.* $cy/texlive/Images/
rm $cy/texlive/Source/*
cp -a $fx/mactex/* $cy/mac/mactex/
cp -a $fx/protext/dist/* $cy/windows/protext/ # probably already done

- historic copy of TL web pages:
cd /home/httpd/html/texlive
mkdir $hx/$prev/web
cp *.html !$  # remove tugstyle.css ref from bugs.html

- tug.org stuff:
change fstab 
mount /mnt/tl
cd /mnt/tl
perl install-tl # do full install to default location.
rm /usr/local/texlive-rel; ln -s texlive/$this /usr/local/texlive-rel
newsrc=!$/source
mkdir $newsrc
cp source/{install-tl,texlive,w32tex}*.tar.?z $newsrc
ls -l !$
cp -a $newsrc/* $cy/texlive/Source/
mount /home/ftp/texlive/Contents/live
cd && umount /mnt/tl

update historic/systems with final proTeXt, when ready.
  https://bscw.fernuni-hagen.de
  ftp://ftp.fernuni-hagen.de/pub/windows/win32/ProTeXt/
update ~www/texlive web pages (search for $prev and $prev-1):
  acquire* - general
  bugs.html - general, also case of $prevprev at bottom
  doc.html - platform list, translation list
  pretest.html - done for this year, maybe transfer bugs
  quickinstall.html - paths
  upgrade.html - whether possible or not
  tlmgr-news.html - from texmf-dist/scripts/texlive/NEWS
  index.html - usual
check for new Texinfo manuals to link to html versions:
  ~www/texinfohtml/
further web updates below.

- announcements:
CTAN @ ISO update: remove old version, re-enable tlnet mirroring.
Dick @ updating MacTeX.
Martin @ torrents.
Siep @ w32client.html, Norbert @ debian,updmap-kanji.html.
Nikola @ FreeBSD notes linked on bugs.html.
pdftex maintainers @ updating pdftex sources with sync-pdftex.sh.

- make tag + branch:
(determine revision number from svn log, in case commits were mistakenly made)
svn copy -r 44442 \
 -m'texlive-2017.0 tag based on r44442' \
 svn://tug.org/texlive/trunk svn://tug.org/texlive/tags/texlive-2017.0
svn copy -r 44442 \
  -m'branch2017 branch based on r44442' \
  svn://tug.org/texlive/trunk svn://tug.org/texlive/branches/branch2017

  It's the same command, just different destinations.
  http://svnbook.red-bean.com/en/1.8/svn.branchmerge.html

  We do both a branch and a tag so that it's possible to easily compare
  the current state of the branch with its starting point (the tag).

  To check out the branch, for critical source fixes for the sake of
  during-the-year rebuilds or for the distros, if they request it:
cd /home/texlive
rm -rf branch # when starting a new year on tug
mkdir branch; cd branch
svn co file:///home/svn/texlive/branches/branch$this/Build/source . >&out

   When bug fixes are done, i.e., at another stable point, make another tag:
#svn copy -r 44590 -m'texlive-2017.1 tag based on r44590, with critical luatex bug fixes' \
#  svn://tug.org/texlive/trunk svn://tug.org/texlive/tags/texlive-2017.1

- update ~karl/bin/cron.tl, and reenable when feel ready.
critical=
pretest=
images_frozen=true
net_frozen=false
all_frozen=false

 after release:
- texcollection
hy=/home/ftp/historic/systems/texcollection
mkdir -p $hy/$this/packaging
#
# copy files from DVD:
mount /mnt/tc
cd /mnt/tc
cp -R [A-T]* index* setup /home/ftp/historic/systems/texcollection/$this
#
# copy ctan snapshot for TUG members:
ls -l ~www/members/ctan16-*.tar
du !$
rm -i ~www/members/ctan16-*.tar # assuming it's hard-linked!
nice -19 tar cf ~www/members/ctan`date +%y`-20170604.tar ctan
chmod a=r ~www/members/ctan*.tar
ls -l !$; du !$
# edit members/index.html
mkdir /home/ftp/historic/systems/ctancd/$this
ln ~www/members/ctan*.tar !$
#
cd && umount /mnt/tc
#
cd $hy/$this/packaging
# copy in files from texcollection svn, then:
pdftoppm -gray -r 222 texcoll-cover.pdf temp
# edit temp*.pgm to be just the cover.
pnmcrop temp*.pgm | pnmtopng >~www/texcollection/texcollection$this.png
cp texcoll-cover.pdf ~www/texcollection/texcollection$this.pdf
#
~www/texcollection/index.html
~www/store/index.html
/home/httpd/cgi-bin/tug-common.pl
~www/forms/current/memberapp.html 
#
~www/rss/tug.xml
~www/index.html

- increment source versions, append /dev:
Build/source/{version.ac,texk/{kpathsea,ptexenc}/version.ac
Build/source/tardate.ac