TL 2011 packaging
Hi everyone,
since I want to see TL2011 soon in Debian, here are some ideas
on how to rework the packaging completely, and allowing easier
update to newer versions/intermediate releases.
Please commnet, esp on the proposed reshuffling of files in
texmf and texmf-texlive.
New way of building Debian packages for TeX Live:
=================================================
New starting point is a tlnet archive, ie the .tar.xz.
source package layout:
----------------------
texlive-base-2011.orig.tar.gz contains
texlive-base-2011/archive/*.tar.xz
texlive-base-2011/tlpkg/texlive.tlpdb
texlive-base-2011/tlpkg/TeXLive/*
for each included package. So a slice of the tlnet dir with all
packages not included removed.
texlive-base-2011.debian.tar.gz contains
texlive-base-2011/additional-files-$binpackage.tar
for files we have to move/add or do anything else
texlive-base-2011/debian/*
Building source package will only need the following information:
- blacklisted packages
- additional depends/recommends/...
- docsplitting
- other debian related things like maintainer, version, ...
these will be collected in tpm2deb-source.pl
binary package building:
------------------------
- unxz/tar all the archive/*.tar.xz, taking care for the RELOC packages,
into debian/$package/usr/share/texmf-texlive/
and debian/$package/usr/share/texmf/
ATTENTION!!! This will be a change because we will identify
texmf-dist (TeX Live proper) ---> /u/s/texmf-texlive (Debian)
texmf (TeX Live proper) ---> /u/s/texmf (Debian)
Currently we are mapping everything into texmf-texlive and only
a few files into /u/s/texmf. But since I don't expect any other
TeX distribution to come up for now I would like to keep it easy
and simple, with the same layout.
- unxz/tar the additional-files-$binpackage.tar if present into
debian/$package/
- apply the file move and remove etc directives from the tpm2deb-bin.cfg
(former tpm2deb.cfg) file by physically moving the files around.
- move the doc files (do not use the above for that) to the appropriate
place (doc splitting or independent package)
- move info files to appropriate places
- generate license information from texlive.tlpdb, fix man pages etc etc
- run dh_ scripts
The tpm2deb-bin.cfg would contain only
blacklist;file; (or equivalent)
mapping; (or equivalent)
what remains in the current situation is
- special;.*/([^/]*\.info);install-info;
see above, special rules or tpm2deb-bin action
NOT NEEDED ANYMORE, done via trigger
- luatex special cases to build format dumps
execute;texlive-base;AddFormat name=luatex engine=luatex patterns=language.def options="luatex.ini"
execute;texlive-base;AddFormat name=dviluatex engine=luatex patterns=language.def options="dviluatex.ini"
No idea if that is needed?!?!
----
source package
- build-orig-tar
reads config files
reads texlive.tlpdb
generates the list to be included
copies the .tar.xz (including .doc and .source) (taking blacklists etc
into account)
- make-deb-source
reads config files
reads texlive.tlpdb
generates the list to be included packages
generates debian/control file from it
generates additional-files-$binpackage.tar if necessary
------
Please comment.
Best wishes
Norbert
------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
HEVER (n.)
The panic caused by half-hearing Tannoy in an airport.
--- Douglas Adams, The Meaning of Liff
Reply to: