Project:TeX/Tex Live Bump Story

Summary and intended audience
This document aims at describing the process involved in bumping a new TeX Live release.

It corresponds to the notes I have taken while bumping TeX Live 2014 and 2015. Intended audience is myself so that I do not forget anything next year and fellow developers that would like to help (improving this document is also welcome!). If you are not a Gentoo developer and wish to help, I would strongly suggest you to find something easier: 8 years, thus 8 releases, after the initial commit of TeX Live to the Gentoo portage tree I still happen to make mistakes or oversee some problems. Back in 2007 it took roughly 6 months (not full time though) to get something acceptable for the Gentoo portage tree. Nowadays, it is much simpler since most of the process is done by scripts and eclasses, and this document aims at explaining how everything works.

Upstream source code
Upstream source code is pointed from https://www.tug.org/texlive/acquire-tar.html

This gives us for TeX Live 2014: ftp://tug.org/historic/systems/texlive/2014/texlive-20140525-source.tar.xz or 2015: ftp://tug.org/historic/systems/texlive/2015/texlive-20150521-source.tar.xz

Generating dev-texlive/* ebuilds
Get a texlive svn checkout: https://www.tug.org/texlive/svn/ (it is huge!) and my scripts: git.gentoo.org/dev/aballier.git The latter was initially thought as a portage overlay with scripts to auto-generate what could be. Back in 2007, most of the testing was done in this overlay. Nowadays, it merely serves the purpose of a script repository to generate the ebuilds.

Adjust paths in aballier/scripts/texlive/common/Makefile.common
Probably only TL_TRUNK and TEXLIVE_OVERLAY_LOCATION needs to be changed. The "work" directory is : Ebuild generation is done from there.

Check if there are new collections in upstream tlpsrc
Upstream collections are mapped 1-1 to /* ebuilds. We sometimes remove stuff from them because they have their own ebuilds but that's all. For TeX Live 2013 -> 2014, there seems to be new collections:
 * collection-langchinese
 * collection-langkorean
 * collection-langjapanese

Add them to

Final adjustments
Adjust TEXLIVE_VERSION to 2015 in

make commands
Ebuilds are generated by a and a lot of scripting. make handles very well dependencies, which makes it the perfect candidate since that is only what we need.

Here is a quick description of the most important commands:


 * Downloads all /* distfiles from CTAN and version them properly (this is where TEXLIVE_VERSION is used). Note that packages on CTAN are not versioned per tarball name, thus what you get is the current Tex Live release updated to the date you run this. This takes a while. We use some upstream perl scripts, so maybe you'll need to install additional perl packages.


 * Creates the ebuilds. This also takes a while since it downloads the tex catalogue to fill ebuild with licenses corresponding to shipped files. is the license mapping script; it adds wrong licenses if it doesn't know the tex catalogue license, so check it didn't: . Nothing, good.


 * Installs the ebuilds to TEXLIVE_OVERLAY_LOCATION.

After having bumped locally binary packages (texlive-core & friends), update meta ebuild and try to upgrade. There will likely be collisions: Add blockers to your new ebuilds and let portage solve it. Blockers can be added to the generation scripts: see *.extradeps. Sometimes some files will collide with : This usually means that a script which comes from said package, not texlive-core; it should be removed from texlive-core: see applied to.

Packages split out of texlive-core
Some packages have been split from texlive-core and are built separately from sources provided by texlive-core while disabled in texlive-core ebuild: This allows for more unitary upgrades or security fixes. To date, those are:

Versioning convention is ${PN}-${VERSION}_p${TLTARBALL_VERSION} where: ${VERSION} is the package version, e.g. for ptexenc the one defined in and TLTARBALL_VERSION is the version of texlive sources, 20140525 for TeX Live 2014, 20150521 for 2015.

Some of them can be bumped with the old texlive: ptexenc is usually one of these. You need to texlive source tarball to /space/distfiles_local on dev.gentoo.org and bumping it makes the distfile permanent. Note that most of them require some tarball you obtain by running above.

kpathsea
is a bit special since it is core to the whole TeX installation. It contains scripts to configure the TeX installation and, most importantly here, the main file.

Grab from TeX Live svn trunk; we split it for easier management, split files are hosted in cvs, e.g. :

from TeX Live svn trunk is made for a sandboxed install (e.g. TeX Live DVD); since we install on the system, we need to make a few changes. Port needed changes by diffing with previous year releases. Most important non-standard changes are: texmf-site and GLOBALVARTEXFONTS additions. Once done, make a tarball out of it and use it in kpathsea ebuild. You can use from  to create  that you can  to $DISTDIR and  to pecker.

For TeX Live 2014 it was possible to bump kpathsea alone: Paths remained roughly the same and TeX Live 2013 could work on top of kpathsea from 2014. This is usually not the case. For texlive 2015, kpathsea started to install generated headers under $libdir, requiring packages using it to use the pkgconfig file: This meant all its reverse dependencies should be fixed before bumping.

texlive-core
Check if there are new packages in collection-binextra, add them if needed to the ebuild (see TL_CORE_BINEXTRA* variables in texlive-core ebuilds). Port the patches. Make adjustments: blockers, new configure options, etc.

We're ready!
Once everything is done: do a few up/downgrade paths to catch collisions you might have not seen before. Test it. Once happy, it's good and can be committed!