--- luatex-0.50.0.orig/debian/ANNOUNCE-0.37.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.37.0 @@ -0,0 +1,106 @@ +Hi, + +I have just uploaded luatex 0.37.0. + +This is a beta in the process towards 0.40.0, the version that +will be included in texlive 2009. This beta will be shortlived, +the plan is to release the next one in about a week. + +This release is mainly intended to allow testing of two new things: + +* The new build process, which is based on the one that will be +used for texlive 2009. + +Lots of build-time stuff is overhauled, and that means that the binary +itself as well as the build process needs testing. Please try on +your system and let us know if something goes amiss. + +* The new shell_escape = 'p' functionality invented by Karl and Akira. + +Karl wrote about that: + +> As I've mentioned to some of you, Akira and I have been implemented a +> restricted version of \write18: only commands which are explicitly +> listed in texmf.cnf can be executed. Along with sufficient quoting, I +> think that this is secure enough that it can be enabled by default, and +> I plan to do this for TeX Live 2009. + +The texmf.cnf variable for 'acceptable commands' is named +shell_escape_commands. In luatex, the variables shell_escape and +shell_escape_commands will be fetched from the texconfig table in case +of a disabled kpathsea (as context mkiv does). + +The important thing to note is that if you are typesetting a document +with luatex (as opposed to executing a texlua script), these variables +now also effect the os.execute(), io.popen(), os.exec() and os.spawn() +functions. Unless a non-false value of shell_escape has been read from +either texmf.cnf or the texconfig table, these functions will not do +anything anymore. + +Nothing has changed for the case where luatex is used as a script +interpreter. + + +============================================================== +Luatex beta-0.37.0 was released 20090331 (commit #2194) +============================================================== + +* Luatex now implements shell_escape = 'p', a new feature + in web2c that intends to make \write18 more secure. + +* Attributes can now have negative values. The special value + for 'unset' is lowered to -0x7FFFFFFF (it used to be -1). + +* The lua 'kpse' library now has an object-oriented interface + as companion to the procedural interface. This is useful for + e.g. controlling the discovery of mplib files. + +* The new internal integer parameter \outputbox allows setting + of the output box number (default: 255, max: 65535) + +* The new primitives \Udelimiterunder and \Udelimiterover + complete the set of 'StretchStacks' for OpenType Math. + +* Fixed a bug in font string conversions on the Macintosh that + resulted in warnings about 'unaligned pointers being freed'. + +* Khaled Hosny spotted a bunch of manual errors. + +* There was bug in the width of math_accent objects when + there were super- or subscripts attached to the accentee. + +* In PDF mode, TRT \leaders were bugged. + +* The source tree now uses the new texlive build system that + Peter Breitenlohner created. + +* There is now a single build.sh instead of four separate + ones. It has a few options: + --make : only make, no make distclean; configure + --parallel : make -j 2 -l 3.0 + --nostrip : do not strip binary + --mingw : crosscompile for mingw32 from i386-linux + --ppc : crosscompile for ppc osx on intel osx + + Note: --parallel still sometimes causes crashes due to + timing errors, so use that option with care. + +* Many compiler warnings have been removed (but not all yet). + + +The archives (now including source again) can be downloaded from +supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +You could also check out the sources via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.37.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.31.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.31.0 @@ -0,0 +1,53 @@ +Hi all, + +I have just uploaded the archives for luatex 0.31.0. + +This is just an intermediate release so that some testing can be +done on the updated fontforge embedding. + +* There are new fields being generated by fontforge.to_table(), + and one or two old ones have been removed. These fields are / + will be documented in the manual, but very briefly: + + - MATH table and associated information are now exported + (the main reason for the new fontforge code) + - Baseline data is now exported + (perhaps usable in lua code) + - Multiple Master / Glyph variation data is now exported + (but useless, for now) + - Mac Feature (AAT) information is now exported + (perhaps usable in lua code) + - If (lookup) names were saved via the PfED table, these + will the exported instead of the default, generated names. + (as requested by Yannis) + +* dfont is now treated as an archive format just like ttc + when it comes to fontforge.info(). NOTE: that does not mean you + can actually use them, because the backend doesn't know + yet how to embed dfont fonts in the PDF, that is on the + TODO list for the next big beta (0.40.0). + +* The executables are a lot larger than before. That is because + much more of fontforge is included than before. Likely this + will stay this way, because this makes upgrading the ff code + much easier, and it means that luatex/FF potentially + understands more font formats (after upgrading the backend, + of course) + +The archives (just binaries this time) can be downloaded from +supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + + +If you need the sources, please check out via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.31.0 + + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco --- luatex-0.50.0.orig/debian/changelog +++ luatex-0.50.0/debian/changelog @@ -0,0 +1,460 @@ +luatex (0.50.0-1~1) unstable; urgency=low + + * new upstream release + * disable fix-hurd-ftbfs patch, included upstream + * disable upstram-fixes, included upstream + * disable ubuntu_libpoppler-0.11, not needed anymore + + -- Norbert Preining Fri, 25 Dec 2009 09:47:05 +0900 + +luatex (0.47.0-2) unstable; urgency=low + + * add patch fix-hurd-ftbfs from Pino Toscano (Closes: #562176) + + -- Norbert Preining Thu, 24 Dec 2009 03:32:02 +0900 + +luatex (0.47.0-1) unstable; urgency=low + + * new upstream release + * add debian/patches/upstream-fixes that collects small bits fixed + immediately after release + * rediff patches + + -- Norbert Preining Tue, 22 Dec 2009 07:36:38 +0900 + +luatex (0.46.0-7) unstable; urgency=low + + * try to fix again the texdoc diversion disaster (Closes: #560791) + + -- Norbert Preining Sun, 13 Dec 2009 00:13:06 +0900 + +luatex (0.46.0-6) unstable; urgency=low + + * upload to unstable + + -- Norbert Preining Wed, 09 Dec 2009 23:52:34 +0900 + +luatex (0.46.0-5) experimental; urgency=low + + * remove forgotten "UNRELEASED" from changelog entry + * move the diversion removal code from preinst to postinst since + dpkg in lenny does add --rename automatically which breaks upgrades + + -- Norbert Preining Sat, 05 Dec 2009 09:15:48 +0900 + +luatex (0.46.0-4) experimental; urgency=low + + * make sure that fmtutil-sys is only called when texlive-base is + installed, otherwise tcfmgr is not found. + + -- Norbert Preining Thu, 03 Dec 2009 23:10:44 +0900 + +luatex (0.46.0-3) experimental; urgency=low + + * add code to postinstall to clean up the diversion mess in case the + upgrade didn't do it properly (Closes: #557647) + + -- Norbert Preining Thu, 03 Dec 2009 16:45:14 +0900 + +luatex (0.46.0-2) experimental; urgency=low + + * rework preinstall code for diversion removal, add --rename in + comments since it does not work anyway + * bump build-deps on libpoppler-dev to 0.12 to be sure nobody tries + to build new luatex on old systems (which is anyway not supported) + (Closes: #559025) + + -- Norbert Preining Wed, 02 Dec 2009 00:17:08 +0900 + +luatex (0.46.0-1) experimental; urgency=low + + * remove the fix-opentype-loading patch (applied upstream) + * add a preinst that removes all former diversions (Closes: #557647) + + -- Norbert Preining Fri, 27 Nov 2009 04:21:20 +0900 + +luatex (0.45.0-2) experimental; urgency=low + + * add a patch fix-opentype-loading by Pawl Jackowski to fix loading + of ttf and otf fonts (included already in upstream repository) + + -- Norbert Preining Thu, 19 Nov 2009 15:42:55 +0900 + +luatex (0.45.0-1) experimental; urgency=low + + * new upstream release + + -- Norbert Preining Thu, 19 Nov 2009 00:21:03 +0900 + +luatex (0.44.0-2) experimental; urgency=low + + * catch fmtutil exiting with an error if no format based on luatex + can be found. That is fine, one might install only luatex itself. + + -- Norbert Preining Thu, 12 Nov 2009 02:13:53 +0900 + +luatex (0.44.0-1) experimental; urgency=low + + * new upstream release + * include patch to fix FTBFS with libpoppler 0.11 and 0.12, thanks to + Ubuntu and Ilya Barygin. (Closes: #529331) + * remove old directory in debian, it contains variants of the + maintainer scripts not used anymore + * add a recommends luatex -> texlive-luatex to get the actual formats + * delete debian/luatexiniconfig.tex, it must be shipped by texlive-luatex + this package will provide only the barebone binary + * as a consequence, drop (build-)dependency on tex-common, not needed + anymore + * drop dependency on texlive-binaries + * mention these changes in the control file description + * add a postinst script that tries to call fmtutil-sys --byengine luatex + to update the formats based on luatex + * conflict with texlive-base bin << 2008 to make sure we have a fmtutil + that understands --byengine + + -- Norbert Preining Tue, 27 Oct 2009 21:05:00 +0900 + +luatex (0.43.0-1) experimental; urgency=low + + [ Norbert Preining ] + * new upstream releases + * bump standards version to 3.8.3, no changes necessary + * prepare for TL2009: + - disable texdoc, will be used from TeX Live 2009 + - remove all ini files and format definitions + - add luatexiniconfig.tex from TL2009 + - only depend on texlive-binaries + * bump build-deps on tex-common to 1.18 + * update outdated texdoc: + texdoclua (from texdoc.tlu plus turning on zip support), + texdoclua.1 (from texdoc.1), texdoc.tex (with changes to use lmodern + fonts instead of Optima), texdoc.pdf(.uu) made from texdoc.tex. + + [ أحمد المحمودي (Ahmed El-Mahmoudy) ] + * debian/rules: use /usr/share/quilt/quilt.make provided by quilt and remove + patch-stamp & unpatch targets (Closes: #538571). + + -- Norbert Preining Mon, 05 Oct 2009 14:54:51 +0900 + +luatex (0.40.5-1) unstable; urgency=low + + * new upstream release + + -- Norbert Preining Wed, 10 Jun 2009 16:14:51 +0200 + +luatex (0.40.4-1) unstable; urgency=low + + * new upstream release + + -- Norbert Preining Tue, 09 Jun 2009 16:16:41 +0200 + +luatex (0.40.3-1) unstable; urgency=low + + * new upstream release + * rediff build-script, --without-x included upstream + * fix texdoc(lua) to actually support zipped documents + + -- Norbert Preining Mon, 08 Jun 2009 11:45:22 +0200 + +luatex (0.40.2-1) unstable; urgency=low + + * new upstream release + * Re-add support for zipped documentation in the lua version of texdoc, + thanks to Julian Gilbey [fk] + (patch the shipped texdoclua script but keep the patch in debian/patches) + * Fix README.Debian to mention lualatex.ini and dvilualatex.ini and update + for these files (Closes: #530372) [np] + * rediff build-script patch and add --without-x + + -- Norbert Preining Wed, 03 Jun 2009 15:56:35 +0200 + +luatex (0.40.1-1) unstable; urgency=low + + * new upstream release + * update man pages for luatex from upstream mailing list + * fix FTBFS with dash (Closes: #528317) + * disable the poppler patch, and change the build script to use the + build system internal support for system libpoppler + + -- Norbert Preining Mon, 18 May 2009 12:50:06 +0200 + +luatex (0.40.0-1) unstable; urgency=low + + * new upstream releases + * update patches to new build system + * fix man page groff errors (thanks Manuel) + * new ini files (thanks Elie Roux) and new names: there is no pdfluatex + anymore, luatex defaults to pdf output, but there is dviluatex instead. + * disable system-libpng patch, not needed anymore + + -- Norbert Preining Wed, 22 Apr 2009 21:50:18 +0200 + +luatex (0.36.0-1) unstable; urgency=low + + * new upstream release + * update texdoc from current source, and add texdoc tex/pdf documentation + * bump standards version to 3.8.1, no changes necessary + * ship orig.tar without .svn directories + * rediff the patches + + -- Norbert Preining Mon, 23 Mar 2009 16:51:47 +0100 + +luatex (0.35.0-1) unstable; urgency=low + + * new upstream release, see the ANNOUCE file + * update the libpoppler and build-script patch (Closes: #518635) + * add build dep on pkg-config to poppler library version into the code + * add ${misc:Depends} to the dependencies + + -- Norbert Preining Mon, 09 Mar 2009 17:36:04 +0100 + +luatex (0.30.3-1) experimental; urgency=low + + * several new upstream releases, see the ANNOUCE files + - fixes problems with itemize (Closes: #491455) + - no longer ignores adjustwidth (Closes: #491452) + * edit the changelog for 0.28.0 to reflect reality + * adjust patches for the new release + * disable patch texdoclua-fix and patch debian/texdoclua directly to + make lintian shut up (it is stupid!) + * set -e in preinst + * upload to experimental + + -- Norbert Preining Fri, 28 Nov 2008 11:52:56 +0100 + +luatex (0.28.0-2) unstable; urgency=medium + + * add dependency on texlive-base for etex.ini (Closes: #502755) + (urgency medium due to RC bug) + + -- Norbert Preining Sat, 25 Oct 2008 03:15:32 +0200 + +luatex (0.28.0-1) unstable; urgency=low + + * two new upstream releases, see the respective ANNOUCE files + * add luasocket license statement to debian/copyright + * prepare for latex based formats + - add the ini files from TeX Live + - add debian/formats file + - adjust dh_installtex incantation + the problem is that luatex dies when loading ukrhypmp.tex from + texlive-lang-cyrillic, but we don't want to conflict with it by now. + * policy 3.8.0, rename README.Debian-source to README.source, and add + notes about quilt usage + * disable patch fix-pwd-inclusion (it was from svn) + + -- Norbert Preining Mon, 07 Jul 2008 11:01:13 +0200 + +luatex (0.25.3-2) unstable; urgency=low + + * fix implicite pointer conversion on archs with the size of a pointer + greater than the size of an integer, patch taken from upstream's + subversion repository (fix-pwd-inclusion) (Closes: #482303) + + -- Norbert Preining Wed, 28 May 2008 16:27:37 +0200 + +luatex (0.25.3-1) unstable; urgency=low + + * new upstream release: fixes implicit pointer conversion in check_isnode + (Closes: #482311) + + -- Norbert Preining Fri, 18 Apr 2008 15:57:37 +0200 + +luatex (0.25.2-1) unstable; urgency=low + + * several new upstreams + * fix poppler patch for 0.4 (etch) to work with split out libpng patch + * fix poppler patch for 0.6 + * fix README.Debian-source + * add copyright statement for src/libs/md5 (needed now) + * link the luatex reference manual into /usr/share/doc/texmf to make it + available to texdoc (Closes: #473049) + * fix doc-base section of luatex-ref manual + + -- Norbert Preining Tue, 15 Apr 2008 07:50:17 +0200 + +luatex (0.22.0.svn080220-1) unstable; urgency=low + + * new upstream 0.22.0 and svn fixes, so building from svn trunk + * new patch system-libpng split of from libpoppler-0.6, fix building + with system libpng + + -- Norbert Preining Thu, 21 Feb 2008 08:03:33 +0100 + +luatex (0.20.2-1) unstable; urgency=low + + * new upstream + * fix build-failure on ARM (this is a FTBFS bug but not reported) + by adding fix-arm-buildfailure (patch installed upstream, too) + + -- Norbert Preining Thu, 20 Dec 2007 17:48:18 +0100 + +luatex (0.20.1-1) unstable; urgency=low + + * new upstreams, add the announcements with changes to the debian dir + * call build.sh.linux with bash, not with sh, otherwise building breaks + (thanks to Pascal de Bruijn from Ubuntu for + letting us know) [np] + * update libpoppler patch + * change the texdoclua patch to use the new os.tmpdir with a template of + /tmp/luatex.XXXXXX + * bump standards version to 3.7.3, no changes necessary + * convert copyright file to utf-8 + + -- Norbert Preining Mon, 10 Dec 2007 10:24:34 +0100 + +luatex (0.15-1) unstable; urgency=low + + * switch to libpoppler 0.6 (adjusting build-deps and patch) + (Closes: #452399) + * add README.Debian containing some remarks on luatex based latex format + thanks to Stefano Zacchiroli + * add one example files, and call dh_installexamples + * register the luatex manual with doc-base, thanks again Stefano + (Closes: #448726) + * add Homepage, Vcs-Svn, and Vcs-Browser fields to debian/control + * install texdoclua(.1) and a diversion from texdoc (addint preinst and + postrm files), patch texdoclua for the lfs.tmpname vs mkdir bug + * new upstream + - Completely overhauled hyphenation and ligkern application. + - the interface of the pre_linebreak_filter,hpack_filter, + vpack_filter, and pre_output_filter has changed slightly. + - lpeg is now at version 0.7 + - a whole series of exotic bugs and compiler warnings are + fixed thanks to the watchful eye of Fabrice. + - texio.print now accepts multiple strings as arguments. + - The lua function os.sleep() is added + + -- Norbert Preining Thu, 22 Nov 2007 18:05:15 +0100 + +luatex (0.11.2-1) unstable; urgency=low + + * disable the system-zlib-build-fixes patch + * refresh the libpoppler_new patch + * new upstream release (Closes: #441836) + Changes in 0.11.2: Pdf inclusion and subsetting of CID-based opentype + fonts now works as it should. + Changes in 0.11.1: + New: + * pfb+afm fonts can now be used in 'wide' (encodingbytes=2) mode + * searching in PDFS using 'wide' fonts now works reasonably well + (based on the tounicode feature) + * related to that, tounicode information can now be passed + on inside the font metrics table + * font subsetting is now supported for CID-based OpenType fonts + (however, there is a known bug with KpozMinProVI-Regular.otf) + * fontforge's warning and error messages are now intercepted + and passed on to the lua code as a second return value of + the fontforge.open() function + * the new primitive \suppressfontnotfounderror can suppress + the TeX error for "Font not found" + * The lua function font.current can now be used to set + TeX's current font + Fixes: + * set_attribute(-1) is now the same as unset_attribute() + * OpenType lookups with glyph classes would crash luatex + * luazlib would not compile on debian (fix from Norbert) + * CID-based fonts would crash luatex + * Bare CFF should be read in binary mode (fix from Akira) + * VF processing did not process packets containing zero bytes properly + * the truetype collection (.ttc) handling is fixed, so that all + of the fonts inside a collection can now be used reliably + * application segfaults and stack overflows are intercepted + so that luatex can quit a bit more gracefully + * an assertion failuer on systems with signed chars (linux-powerpc) + is fixed + * a crash on AMD64 linux was fixed + * the lua "pdf" table code was wrong + * \ifcsname did not work properly for UTF-8 characters + * Use of the math-related functions using make_fraction (like + \atop) caused a crash + * \handling of \if\noexpand was wrong + * applied a patch that cleans up XForm and page calculations + * "autoconf" support from zziplib is stripped + + -- Norbert Preining Mon, 24 Sep 2007 12:56:11 +0200 + +luatex (0.11.0-1) unstable; urgency=low + + * dont strip the luatex binary in the build scripts (Closes: #437546) + * include copyright statements from the included libraries/files into + the debian/copyright file + * remove zlib-version-check-fix, included upstream + * add build-dep for libjpeg and libpng + + -- Norbert Preining Mon, 03 Sep 2007 11:12:41 +0200 + +luatex (0.10.2-2) unstable; urgency=low + + * add the texluac link and adapt the man page, this is needed for + newer versions of context. + + -- Norbert Preining Tue, 14 Aug 2007 16:02:27 +0200 + +luatex (0.10.2-1) unstable; urgency=low + + * luatex is in beta stage, name it already luatex without -snapshot + * add a patch zlib-version-check-fix which stops luatex from breaking + since zlibVersion() and ZLIB_VERSION return different strings. It + makes luatex only compare the first 5 chars. + * do not compress .pdf documents, they are already compressed + * small fixes to the man page (texlua instead of luatexlua) + * remove code in postinst and postrm for the texmf.d snippet removal + * revert luatexlib.mk to (quasi) 0.10.1 version, otherwise compiling + with --with-system-zlib breaks + + -- Norbert Preining Tue, 14 Aug 2007 09:58:52 +0200 + +luatex-snapshot (20070626.2-2) unstable; urgency=low + + * remove tetex-bin run dependency + * add libpoppler patch + * patch build.sh.linux to use shlibs from the system (Closes: #430828) + * add build-deps: quilt, libpoppler-dev (>= 0.5.4) + + -- Norbert Preining Thu, 28 Jun 2007 10:01:21 +0200 + +luatex-snapshot (20070626.2-1) unstable; urgency=low + + * new upstream snapshot + - Integrated the lua library lzlib, this defines tables with + bindings for zlib (including eazy-to-use gzip support) + - Updated to slnunicode version 1.1 + - Some small cleanups in the sparse array handling + - Moved the raw byte support out of the valid unicode range + - Fixed a bug in the OFM font reader + - Removed the pdftex snap nodes (and associated primitives) + + -- Norbert Preining Tue, 26 Jun 2007 15:08:17 +0200 + +luatex-snapshot (20070622-2) unstable; urgency=low + + * rename luatexlua(.1) to texlua(.1), the officially used name + + -- Norbert Preining Mon, 25 Jun 2007 22:35:44 +0200 + +luatex-snapshot (20070622-1) unstable; urgency=low + + * new upstream snapshot + + -- Norbert Preining Mon, 25 Jun 2007 15:04:48 +0200 + +luatex-snapshot (20070619-1) unstable; urgency=low + + * new upstream release + + -- Norbert Preining Wed, 20 Jun 2007 07:56:04 +0200 + +luatex-snapshot (20070426-1) unstable; urgency=low + + * new upstream release + * move dh compatibility level to debian/compat (lintian warning) + * remove useless /etc/texmf/texmf.d/98luatex.cnf + + -- Norbert Preining Thu, 26 Apr 2007 21:58:37 +0200 + +luatex-snapshot (20070322-1) unstable; urgency=low + + * first upload to Debian (Closes: #403773) + + -- Norbert Preining Thu, 22 Mar 2007 10:57:17 +0100 --- luatex-0.50.0.orig/debian/ANNOUNCE-0.27.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.27.0 @@ -0,0 +1,114 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.27.0. This is +an intermediate release leading up to 0.30.0, to be released +around TUG2008. + +There are just too many changes to wait another month :-) + +Bugs fixed compared to 0.25.3: + +* Unicode reencoding support for non-standard (i.e. older) + Type1 fonts is now somewhat less broken than it was (#25) + +* .vf fonts using specials crashed luatex + +* luatex would crash on --\par (#33) + +* An attempt is made to get a sane default value for StemV in + the created pdf (#32) + +* We can now guarantee that %PDF-1.* header is printed before + the first pdf.print() output + +* lang.hyphenate() was broken + +* insert_before(a,a,b) was broken (#37) + +* argv[0] is now cleaned up before being used as a default for + mem_name and prog_name (#28). + +* luatex would crash on loading extended fonts (fonts loaded + via lua callbacks) from a format file. + +* The fix for pdftex bug #799 is backported from pdftex 1.40.4. + +* slnunicode had a bug in the unicode.utf8.gmatch iterator. + +* Queries of nonexisting fontdimens could cause a crash. + +* luatex would crash on {\textdir TLT\pardir TLT x\break\par } + +* Fixed wrong placement of lines in mixed-direction paragraphs + that could happen in some situations. + +Other news: +* Luatex now includes luasocket (#35) + See http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/ + for usage. + There is a new commandline option: --nosocket to disable this, + and that is also implied by --safer. + + NOTE to the binary builders: there are some unfixed configure + problems when you need to add a specific library to get socket + support on your platform. You probably will have to edit the + generated Makefile by hand (search for 'socketlib'). + +* There is ongoing development to the 'img' and 'mplib' libraries. + See the reference manual for details. + +* The 'character commands' in virtual fonts now support image + inclusion. See the reference manual for details. + +* Lua error messages now include the call stack. + +* \directlua and \latelua have been extended to accept a 'name' + keyword. The argument is a token list that is used as the lua + name of this chunk in lua error messages and call stack prints. + (#42) + +* The lua chunk names can be interfaced via a new virtual + table called lua.instancename, the values in that function as + defaults in the absence of 'name' keywords. + +* The 2-plane limit on active character range is removed (#12). + +* Subsetted TTF fonts in the PDF now retain the cmap table. + +* There is a new Lua variable os.selfdir. This contains the + full absolute pathname of the directory that the executable + resides in (with symlinks resolved) + +* There is a new function os.uname() this returns a lua + table containing various platform information items. + +* The node library now uses text strings for direction specifiers + instead of numbers. See the reference manual for details. + +* The 'E' (edit) as error response functionality is now a noop. + +* Adding luatex 0.25.3 to texlive resulted in a few minor backports, + in particular: Support for mktexfmt is added, and luatangle now + identifies itself as such (instead of calling itself otangle). + +* We fixed a whole series of portability problems (but + we probably introduced new problems as well). + +* Most (all?) files now have a corrected Copyright header, + and link in $Id$ and $URL$ into the object file. + +* Some unnecessary files were removed from the distribution. + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.25.1 +++ luatex-0.50.0/debian/ANNOUNCE-0.25.1 @@ -0,0 +1,7 @@ +I have just uploaded the archives for luatex 0.25.1, just a +small intermediate release because I won't be around next week. + +* Updated to MPlib 0.30 (that is now becoming usable) +* The build requirement for a pre-installed ctangle is gone + (thanks to Martin) + --- luatex-0.50.0.orig/debian/TODO +++ luatex-0.50.0/debian/TODO @@ -0,0 +1,9 @@ +TODO for luatex in Debian +========================= +* replace include lua51, luafilesystem, luazlib and use Debian ones +* work on dynamic loading support + +DONE +==== +* adapt libpoppler patch +* dynamic linking --- luatex-0.50.0.orig/debian/copyright +++ luatex-0.50.0/debian/copyright @@ -0,0 +1,240 @@ +This is the Debian GNU/Linux package of luatex. +It was debianized by Norbert Preining on 2006-12-19. + +It was downloaded from: + + https://foundry.supelec.fr/projects/luatex + +And the project homepage is + + http://www.luatex.org + +Upstream Authors: + + Hartmut Henkel + Taco Hoekwater + Hans Hagen + +With help from + + Martin Schröder + Karel Skoupý + Han The Thanh + +Content: +======== +1. Copyright of luatex +2. Copyrights of various other files +3. Copyright of Debian adaptions + +1. Copyright of luatex +====================== + +Copyright: + luatex is based on pdftex. + luatex is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +The full text of the GNU General Public License version 2 is available on +Debian systems in /usr/share/common-licenses/GPL-2. + +For completeness we include the license statement for pdftex: + + pdfTeX is copyright (c) 1996-2007 Han The Thanh, + + pdfTeX is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version. + +2. Copyrights of various other files +==================================== + +All the files (besides those specific to luatex) shipped in src/texk/ are +part of TeX Live and covered under a variety of free licenses. + +2a. (L)GPL licensed files +---------------------- + +src/libs/zziplib + src/libs/zziplib/COPYING.LIB +src/texk/kpathsea + This is free software. See the files GPL and LGPL for copying + permissions. +src/texk/web2c (but luatex) + Web2c is free software. The files I wrote (originally for the Free + Software Foundation) are covered by the GNU General Public License -- + see the file COPYING. Knuth's original sources are covered by their + own copyright -- see the beginning of tex.web, mf.web, etc. You can get + the original files on their own from CTAN:/systems/knuth; you can get + MetaPost from ftp://netlib.att.com/netlib/research/metapost.tar.Z + (see also http://cm.bell-labs.com/who/hobby/MetaPost.html). + +2b. lua files +------------- + +The files distributed under + src/libs/lua51 + src/libs/lua51/lua.h + src/libs/luapeg + http://www.inf.puc-rio.br/~roberto/lpeg.html + +are distributed und the following license: + + * Copyright (C) 1994-2007 Lua.org, PUC-Rio. All rights reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + +2c. Kepler project files +------------------------ + +The files distributed under + src/libs/luafilesystem + src/libs/luafilesystem/doc/us/license.html + src/libs/luazip + src/libs/luazip/doc/us/license.html + src/libs/luamd5 + http://www.keplerproject.org/md5/license.html + + Copyright (C) 2004-2006 The Kepler Project. + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + +2d. Other files +--------------- + +src/libs/luafontforge/fontforge is licensed under: + + PfaEdit is copyright (C) 2000,2001,2002,2003 by George Williams + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + The configure script is subject to the GNU public license. See the file + COPYING. + +src/libs/luafontforge/src + + same license as luatex itself + +src/libs/luasocket + + same license as luatex itself + http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/ + +src/libs/luazlib + + * Author : Tiago Dionizio (tngd@mega.ist.utl.pt) * + * Library : lzlib - Lua 5 interface to access zlib library functions * + * * + * Permission is hereby granted, free of charge, to any person obtaining * + * a copy of this software and associated documentation files (the * + * "Software"), to deal in the Software without restriction, including * + * without limitation the rights to use, copy, modify, merge, publish, * + * distribute, sublicense, and/or sell copies of the Software, and to * + * permit persons to whom the Software is furnished to do so, subject to * + * the following conditions: * + * * + * The above copyright notice and this permission notice shall be * + * included in all copies or substantial portions of the Software. * + +src/libs/obsdcompat + +From src/libs/obsdcompat/README + + Herein is a (heavily butchered) version of the openbsd-compat "library" of + openssh 4.3 for use with pdfTeX. All files have their respective copyrights and + licenses (either BSD or public domain). Check them for license etc. + + +src/libs/slnunicode + + The authors hereby grant permission to use, copy, modify, distribute, + and license this software and its documentation for any purpose, provided + that existing copyright notices are retained in all copies and that this + notice is included verbatim in any distributions. No written agreement, + license, or royalty fee is required for any of the authorized uses. + Modifications to this software may be copyrighted by their authors + and need not follow the licensing terms described here, provided that + the new terms are clearly indicated on the first page of each file where + they apply. + +src/libs/md5 + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + +3. Copyright of Debian adaptions +================================ + +Copyright (c) 2007, 2008, 2009 Norbert Preining +Copyright (c) 2009 Ilya Barygin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU General Public License version +2 can be found in `/usr/share/common-licenses/GPL-2'. + +# vim:set encoding=utf-8 fileencoding=utf-8: # --- luatex-0.50.0.orig/debian/ANNOUNCE-0.20.2 +++ luatex-0.50.0/debian/ANNOUNCE-0.20.2 @@ -0,0 +1,27 @@ +Hi all, + +I have just uploaded the archives for luatex 0.20.2. This +is a simple bugfix release for last week's beta: + +* some portability fixes to the build scripts +* a fix for multi-\span in alignments causing unbreakable + loops +* manual improvements from Jonathan Sauer +* fix for undefined csnames in \directlua if + web2c's hash_extra is nonzero +* fix for LR text inside of a RL document +* fix for open_read_file callback not being called + unless find_read_file was also registered +* removed the ocp status message when \ocps are not + actually used +* "unicodeenc" in the fontforge to_table renamed to + "unicode" for improved consistency + +I have uploaded source and linux/win32 binaries to + + http://foundry.supelec.fr/projects/luatex/ + +Have fun, + +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.20.1 +++ luatex-0.50.0/debian/ANNOUNCE-0.20.1 @@ -0,0 +1,35 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.20.1. This +is a bugfix release for wednesday's beta, and it fixes +the following issues: + +* texlua was broken on Solaris because the some C header + files were loaded in the wrong order. +* os.tmpdir() now accepts an argument, making it easier + to use. It now generates more unique filenames when + it is called repeatedly in one run. +* The --luaconly commandline switch is now documented + in the --help text. +* The new extended hyphenation exceptions were severely + broken. +* \pdfprotrudechars could cause luatex to abort with an + assertion failure. +* There was a bug in the \span code that could cause endless + loops. +* The simple forms of \leaders were messed up on windows + because a variable was not properly initialized. +* Non-grouped \textdir commands created invalid output. +* e-TeX's pseudo files were not closed properly in ini mode. +* The luatex.web now weaves properly again. +* I made some small improvements to the manual. + +I have uploaded source and linux/win32 binaries to + + http://foundry.supelec.fr/projects/luatex/ + +Have fun, + +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.22.1 +++ luatex-0.50.0/debian/ANNOUNCE-0.22.1 @@ -0,0 +1,40 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.22.1, that is +a bugfix release for 0.22.0 + +Fixes and changes: + +* The macnames.c source file for building ttf2afm is restored. +* "make depend" in luatexdir now works again +* luatex sometimes crashed because it attempted to expand an + already expanded font +* luatex aborted when --progname was given but no format name. + It now sets the format name to the given progname in that case +* sometimes paragraphs with near-empty lines could cause a crash +* img.supportedtypes() had a bug causing it to crash +* img.supportedtypes() has been renamed to img.types for consistency +* img.boxes() added, returns strings representing bounding boxes +* img.node() added, returns a whatsit node cf. \pdfrefximage +* node.write() now accepts multiple arguments +* the program_name_set switch was not set automatically from C, + causing errors unless lua code called kpse.set_program_name() + explicitly +* kpse.set_program_name() can now be called more than once + in a single run. +* os.spawn{...} and os.exec{...} could cause crashes because of + a memory allocation error + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.25.2 +++ luatex-0.50.0/debian/ANNOUNCE-0.25.2 @@ -0,0 +1,29 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.25.2. + +* Updated to MPlib 0.40 +* Bugfixes and cleanup in the lua img table code +* Fix \pdflastximagepages bug from pdftex +* Fix for very large tex.print strings +* Update to Lpeg 0.8.1 +* &D Bugfix for Type1 fonts when out-of-range characters + are marked as 'used' + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.43.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.43.0 @@ -0,0 +1,65 @@ +Hi, + +I have just uploaded the archives for a new luatex release, 0.43.0. + +New features: + +* There is a new allowed key in the table trhat is returned + by lua-loaded fonts: .psname. This value should be set + to the original PostScript font name of the font. Fonts inside + dfont and ttc collections are fetched using this field + (if it is missing, .fullname will be used instead). + +* It is now possible to use Apple dfont font files + (those that contain at least one outline font). + +* \latelua is now allowed inside leaders. + +* There is a new callback: process_output_buffer, from Manuel + Pégourié-Gonnard. This callback is called just before + \write acts, so it can be used to alter the file encoding + of text output files. + +* There is a new node.dimensions() function, which calculates + the natural size of (part of) a list of nodes. + +* The new primitive \gleaders provides 'globally aligned' + leaders. + +* The DVI and PDF backends now share much code internally. + +* The embedded MPlib is now 1.207. + +* libpng is now 1.2.39. + +Bugfixes: + +* We fixed lots of anonymous bugs introduced in 0.42.0 (as expected) + +* fontloader.info() errors are no longer fatal, the function now + just returns a nil,"error string" pair. + +* Automatically inserted kerns for \accents are now once again + valid word ends, as in \TEX. + +* Fixed the placement of math displays in mixed direction + settings. + +* The \pdfcompresslevel is now dynamic again. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.43.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco --- luatex-0.50.0.orig/debian/ANNOUNCE-0.35.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.35.0 @@ -0,0 +1,68 @@ +Hi, + +I have just uploaded luatex 0.35.0. + +This is a beta in the process towards 0.40.0, the version that +will be included in texlive 2009. We have two big developments +underway right now: + +* Hartmut is working on the DVI and PDF output, aiming for full + support of all direction specifiers in both modes. +* Taco is working on extending the math engine, aiming for complete + support of the OpenType and MathML concepts. + +Both developments are well under way, but neither is perfect yet. +The main goal of this release is to give Hans' ConTeXt mkiv code +and its users a chance to catch up and test the progress so far. + + +What's new: + +* The math handling portions of LuaTeX are converted to C code, + and extended to support Unicode math. There are a great many + related changes, see the new Math chapter in the manual for + details. +* A nasty bug in the paragraph breaking routine was fixed. + (All lines except the first one were believed to be wider then + they really were. This affected which nodes were considered + as active breakpoints) +* Various changes to the PDF backend to make it support non-latin + directions. +* Fixed the behaviour of the page offsets. Placement of the output + on the physical page should now work correctly in all directions, + both in DVI and PDF. + There now are \pageleftoffset and \pagetopoffset primitives. +* fontforge.apply_featurefile() was broken since 0.31.0 +* The lua profiler library is added. +* The included lua filesystem library is now 1.4.1. +* Reading of pk files fixed. +* An optional space afer a for \textdir c.s. + is ignored from now on. +* \bodydir and \pagedir can now be (re)set even after the first + page has been output. +* The new callback mlist_to_hlist can be used to intercept the + normal conversion of math lists to horizontal lists. +* The programs ttf2afm and pdftosrc are removed from the luatex + distribution (these belong to pdftex). +* fontforge.open() now uses much less memory when opening large + (CJK) fonts. +* The included libpng is now 1.2.35. +* Quite a lot of smaller bugfixes and cleanups (as usual). + + +The archives (just binaries at this time, hopefully there will be a +source package later) can be downloaded from supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +If you need the sources, please check out via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.31.3 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.38.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.38.0 @@ -0,0 +1,78 @@ +Hi, + +I have just uploaded luatex 0.38.0. + +This is a beta in the process towards 0.40.0, the version that +will be included in texlive 2009. This beta will be shortlived, +the plan is to release the next (hopefully last) intermediate +beta within a week. + +What's new: + +* tex.enableprimitives() had a bug were previously defined (but + currently undefined) control sequences prevented the creation + of the new csname. + +* The special calling format callback.register('name', false) + not only disables the callback, but also the builtin code it + is supposed to replace. + +* Empty \localleftbox and \localrightbox -es are now suppressed. + +* Support for .MathConstants.SubscriptShiftDownWithSuperscript + was added, to solve the lack of "sub2" in OpenType math. + +* Luatex now supports horizontal super- and subscript placement + corrections via the OpenType MATH mathkern table. See the + manual for details. + +* node.write() no longer copies its argument node list before + appending it. + +* There are six new primitives that are verbose forms + of one and two byte special tokens: + \Usuperscript \Usubscript + \Ustartmath \Ustopmath + \Ustartdisplaymath \Ustopdisplaymath + +* The attribute node leaks in math mode and alignmetns have been + fixed. + +* The 11 simple math noads are now combined into a single "noad" + node type. + +* Static linking against libstdc++ is working once again. + +* There is a small fix in the keyword scanner to solve the + problem of 'Runaway ... while scanning ???' that could happen + for some primitives. + +* Lua now also has the "architecture independent bytecode" + patch applied. + +* Lua is updated to version 5.1.4 with coco patches 1.1.5, and + lpeg is now 0.9. + +* Some TRT/TLT backend bugs are fixed. + +* Various manual updates. + + + +The archives (now including source again) can be downloaded from +supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +You could also check out the sources via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.38.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.30.2 +++ luatex-0.50.0/debian/ANNOUNCE-0.30.2 @@ -0,0 +1,44 @@ +Hi all, + +I have just uploaded the archives for luatex 0.30.2. +This release matches SVN revision #1568. + +This release fixes a few (rather serious) bugs: + +* The Lua coco change from 0.30.1 is reverted as it gave + trouble on MacOSX. Lua coco on non-intel OpenBSD platforms + is now explicitly turned off. + +* The lua file reading speedup in 0.30.1 broke reading of + files larger than 100MB. + +* Reading of font-related files was broken when there was a find + callback, but no read callback. + +* The texmf.cnf array size setup values were ignored whenever + --lua was given on the commandline (instead of only when + texconfig.kpse_init is set to false). + +* glyphs with negative widths resulted in incorrect horizontal + placement (overlapping) of the string in the output PDF. + +* Using \latelua could sometimes result in an invalid output PDF, + and the argument token list was expanded too early + +* There was a read buffer overrun in the mapfile parser + +* There are two new variables in the status table: + status.callbacks and status.indirect_callbacks (execution counts). + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/remove-diversion-code +++ luatex-0.50.0/debian/remove-diversion-code @@ -0,0 +1,27 @@ +# +# remove old diversion +# + +# needed in case there is no diversion from luatex, and grep will return 1 +# we could test for exit value of >=2 which is an error (1 is being +# no match present), too. +set +e + +# remove all diversions from texdoc +# code from amule.preinst +DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by luatex$'` +set -e + +if [ -n "$DIVERSIONS" ] ; then + echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do + dpkg-divert --package "$PACKAGE" --remove --rename "$FILE" + done +fi + +#dpkg-divert --remove --package luatex --rename \ +# --divert /usr/bin/texdoc.notluatex /usr/bin/texdoc +#dpkg-divert --remove --package luatex --rename \ +# --divert /usr/share/man/man1/texdoc.notluatex.1.gz \ +# /usr/share/man/man1/texdoc.1.gz + + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.2 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.2 @@ -0,0 +1,54 @@ +Hi, + +I have just uploaded luatex 0.40.2 to the foundry server, +and have committed the source code to texlive. + +What's new: + +* Fix for a compilation warning under Cygwin. + +* A complicated bugfix by Hartmut for a rounding problem in the + VF loading that resulted in 'character width mismatch in font + XY.vf ignored' messages at large load sizes + +* The embedded MPlib is now 1.202. + +* The post_page_number callback was accidentally run when + shipping out xforms as well as during actual pages. + +* When a math accent char doesn't have a bot_accent placer, + luatex now uses the top_accent placer, if present. + +* A crash caused by \Uroot .. {}{...} is fixed + +* A portability fix for solaris 8 sparc using sun studio + compiler, and one for glibc > 2.9.90 + +* luatex -ini now sets the \catcode of the BOM character to + ignore (9) + +* Kpathsea is updated from TeXLive, giving four extra types of + searchable files: 'font feature files','cid maps','mlbib', + and 'mlbst'. + +* libpng is now 1.2.36 + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.2 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + + + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.31.3 +++ luatex-0.50.0/debian/ANNOUNCE-0.31.3 @@ -0,0 +1,45 @@ + + +Hi, + +I have just uploaded luatex 0.31.3. This release has a bunch of +updates from the development trunk. It is intended as a bug +release for 0.31.2 only, there are no new features. + + * Closing of files opened by \externalocp. + + * Fix for a locale-related bug that make PDF generation fail + with a "Parsing CFF Dict failed" message when including + opentype fonts. + + * The included metapost is now version 1.102. + + * PDF rules in vertical modes in RL direction where output + in the wrong direction + + * Fix for a crash on Apple fonts that contain a 'bsln' table. + + * The handling of the second argument to fontforge.open() was + broken + + * The included libpng is now 1.2.34 + + * Handling of ttc files on Windows was broken + + +The archives (just binaries this time, hopefully there will be a +source package later) can be downloaded from supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +If you need the sources, please check out via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.31.3 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.29.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.29.0 @@ -0,0 +1,58 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.29.0, another +intermediate release leading up to TUG 2008. This release +matches SVN revision #1450. + +(In case someone notices: yes, I forgot to update CHANGES) + +New features: + +* The embedded pdftex is now 1.40.9 (forthcoming) except for the + following: + - the png transparancy fix is skipped because it is in conflict + with a macro-based solution offered by context mkiv. + - LFS (PDF files > 2GiB) is not working yet. + - Synctex is still missing + +* libpng, xpdf, and zlib are updated to their pdftex 1.0.9 levels + +* MPlib is updated to 1.090 + +* The syntax of buildpage_filter is changed to avoid confusion + (and crashes). See the manual for the new calling convention. + +Bugs fixed compared to 0.28.0: + +* The previous bugfix for \languages skipping numbers was wrong. + +* Various compile-time warnings are suppressed + +* \pdfsetmatrix was broken + +* \pdfsave and \pdfrestore were broken + +* Valid user_defined whatsits nevertheless were generating errors. + + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + + + + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/luatex.1 +++ luatex-0.50.0/debian/luatex.1 @@ -0,0 +1,266 @@ +.TH LUATEX 1 "2009.04.22" "luatex 0.40" "Web2C @VERSION@" +.\"===================================================================== +.if n .ds MF Metafont +.if t .ds MF M\s-2ETAFONT\s0 +.if t .ds TX \fRT\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X\fP +.if n .ds TX TeX +.if n .ds WB Web +.if t .ds WB W\s-2EB\s0 +.\"===================================================================== +.SH NAME +luatex, texlua, texluac \- An extended version of pdfTeX using Lua as +an embedded scripting language +.\"===================================================================== +.SH SYNOPSIS +.B luatex +[\-\-lua=\fIFILE\fR] [\fIOPTION\fR]... [\fITEXNAME\fR[.tex]] [\fICOMMANDS\fR] + +.B luatex +[\-\-lua=\fIFILE\fR] [\fIOPTION\fR]... \fI\eFIRST\-LINE\fR + +.B luatex +[\-\-lua=\fIFILE\fR] [\fIOPTION\fR]... \fB&\fIFMT ARGS\fR +.\"===================================================================== +.SH DESCRIPTION +Run the lua\*(TX typesetter on \fITEXNAME\fR, usually creating +TEXNAME.pdf. Any +remaining \fICOMMANDS\fR are processed as lua\*(TX input, after TEXNAME +is read. + +Alternatively, if the first non\-option argument begins with a backslash, +interpret all non\-option arguments as a line of lua\*(TX input. + +Alternatively, if the first non\-option argument begins with a \fB&\fR, +the +next word is taken as the \fIFMT\fR to read, overriding all else. Any +remaining arguments are processed as above. + +If no arguments or options are specified, prompt for input. + +If called as \fBtexlua\fR it acts as lua interpreter. +If called as \fBtexluac\fR it acts as lua bytecode compiler. + +Lua\*(TX is an extended version of pdf\*(TX with Unicode and OpenType +font support, embeded \fBLua\fR scripting language, the \fBe-\*(TX\fR +and \fBOmega\fR extensions, as well as integrated MetaPost engine, that +can create \fIPDF\fR files as well as \fIDVI\fR files. +For more information about luatex, see http://www.luatex.org, you can +read Lua\*(TX manual using texdoc utility (\fBtexdoc luatex\fR). + +All Lua\*(TX text input and output is considered to be Unicode text. + +In \fIDVI\fR mode, lua\*(TX can be used as a complete replacement for +the \*(TX engine. + +In \fIPDF\fR mode, lua\*(TX can natively handle the \fIPDF\fR, \fIJPG\fR, +\fIJBIG2\fR, and \fIPNG\fR graphics formats. lua\*(TX cannot include +PostScript or Encapsulated PostScript (EPS) graphics files; first convert +them to PDF using \fBepstopdf\fR (1). + +.\"===================================================================== +.SH "OPTIONS" +When the Lua\*(TX executable starts, it looks for the \fB\-\-lua\fR +commandline option. +If there is no \fB\-\-lua\fR option, the commandline is interpreted in a +similar fashion as in traditional pdf\*(TX and Aleph. But if the option +is present, Lua\*(TX will enter an alternative mode of commandline parsing +in comparison to the standard web2c programs. The presence of \fB--lua\fR +makes most of other options unreliable, because the lua initialization +file can disable kpathsea and/or hook functions into various callbacks. +.ig +Here is the list of possibly affected switches/functionality, and why: +.. +.TP +.BI "\-\-lua=" FILE +.rb +The lua initialization file. +.PP +The following two options alter the executable behaviour: +.TP +.B \-\-luaonly +.rb +Start Lua\*(TX as a Lua interpreter. In this mode, it will set Lua's +\fIarg[0]\fR to the found script name, pushing preceding options in +negative values and the rest of the commandline in the positive values, +just like the Lua interpreter. Lua\*(TX will exit immediately after +executing the specified Lua script. +.TP +.BI \-\-luaconly +.rb +Start Lua\*(TX as a Lua byte compiler. In this mode, Lua\*(TX is exactly +like \fBluac\fR from the standalone Lua distribution, except that it +does not have the \fB\-l\fR switch, and that it accepts (but ignores) +the \fB\-\-luaconly\fR switch. +.PP +Then the regular web2c options: +.TP +.B \-\-debug\-format +.br +Debug format loading. +.TP +.B \-\-draftmode +.rb +Sets \epdfdraftmode so lua\*(TX doesn't write a PDF and doesn't read +any included images, thus speeding up execution. +.TP +.B \-\-enable\-write18 +.br +Synonym for \fB\-\-shell\-escape\fR. +.TP +.B \-\-disable\-write18 +.br +Synonym for \fB\-\-no\-shell\-escape\fR. +.TP +.B \-\-shell\-escape +.br +Enable the +.BI \ewrite18{ command } +construct, and Lua functions \fBos.execute()\fR, \fBos.exec()\fR, +\fBos.spawn()\fR, and \fBio.popen()\fR. The \fIcommand\fR can be any +shell command. This construct is normally disallowed for security +reasons. +.TP +.B \-\-no\-shell-escape +.br +Disable the +.BI \ewrite18{ command } +construct and the other Lua functions, even if it is enabled in the +\fItexmf.cnf\fR file. +.TP +.B \-\-shell-restricted +.rb +Enable restricted version of \fB\ewrite18\fR, \fBos.execute()\fR, +\fBos.exec()\fR, \fBos.spawn()\fR, and \fBio.popen()\fR, only commands +listed in \fItexmf.cnf\fR file are allowed. +.TP +.B \-\-file\-line\-error +.rb +Print error messages in the form \fIfile:line:error\fR which is similar +to the way many compilers format them. +.TP +.B \-\-no\-file\-line\-error +.rb +Disable printing error messages in the \fIfile:line:error\fR style. +.TP +.BI "\-\-fmt=" FORMAT +.rb +Use \fIFORMAT\fR as the name of the format to be used, instead of the +name by which lua\*(TX was called or a \fI%&\fR line. +.TP +.B \-\-help +.rb +Print help message and exit. +.TP +.B \-\-ini +.rb +Start in \fIINI\fR mode, which is used to dump formats. The \fIINI\fR +mode can be used for typesetting, but no format is preloaded, and basic +initializations like setting catcodes may be required. +.TP +.BI "\-\-interaction=" MODE +.rb +Sets the interaction mode. The \fIMODE\fR can be either +.IR batchmode , +.IR nonstopmode , +.IR scrollmode , +and +.IR errorstopmode . +The meaning of these modes is the same as that of the corresponding +\ecommands. +.TP +.BI "\-\-jobname=" NAME +.rb +Use \fINAME\fR for the job name, instead of deriving it from the name +of the input file. +.TP +.BI "\-\-kpathsea-debug=" BITMASK +.rb +Sets path searching debugging flags according to the \fIBITMASK\fR. +See the \fIKpathsea\fR manual for details. +.TP +.BI "\-\-mktex=" FMT +.rb +Enable mktex\fIFMT\fR generation, where \fIFMT\fR must be either \fItex\fR +or \fItfm\fR. +.TP +.B \-\-nosocket +.rb +Disable the luasocket (network) library. +.TP +.TP +.BI "\-\-output\-comment=" STRING +.rb +In \fIDVI\fR mode, use \fISTRING\fR for the \fIDVI\fR file comment +instead of the date. This option is ignored in\fIPDF\fR mode. +.TP +.BI "\-\-output\-directory=" DIRECTORY +.rb +Write output files in \fIDIRECTORY\fR instead of the current directory. +Look up input files in \fIDIRECTORY\fR first, then along the normal +search path. +.TP +.BI "\-\-output\-format=" FORMAT +.rb +Set the output format mode, where \fIFORMAT\fR must be either \fIpdf\fR +or \fIdvi\fR. +This also influences the set of graphics formats understood by lua\*(TX. +.TP +.BI "\-\-progname=" NAME +.rb +Pretend to be program \fINAME\fR (only for kpathsea). +.TP +.B \-\-recorder +.rb +Enable the filename recorder. +This leaves a trace of the files opened for input and output +in a file with extension \fI.fls\fR. +.TP +.B \-\-safer +.rb +Disable some Lua commands that can easily be abused by a malicious +document. +.TP +.BI "\-\-synctex=" NUMBER +.rb +Enable/disable Sync\*(TX extension. +.TP +.B \-\-version +.rb +Print version information and exit. +.TP +.B \-\-credits +.rb +Print credits and version details. +.TP +The following options are ignored: +.TP +.BR "\-\-8bit" ,\ "\-\-etex" ,\ "\-\-parse\-first\-line" ,\ +"\-\-no\-parse\-first\-line" +.rb +These are always on. +.TP +.BI "\-\-default\-translate\-file=" TCXNAME , \ "\-\-translate\-file=" +TCXNAME +.rb +These are always off. + +.\"===================================================================== +.SH "SEE ALSO" +.BR pdftex (1), +.BR etex (1), +.BR aleph (1), +.BR omega (1), +.BR lua (1). +.\"===================================================================== +.SH "AUTHORS" +The primary authors of Lua\*(TX are Hartmut Henkel, Taco Hoekwater, +and Hans Hagen, with help from Martin Schr\[:o]der, Karel Skoupy, and +Han The Thanh. +.PP +\*(TX was designed by Donald E. Knuth, who implemented it using his +\*(WB system for Pascal programs. +It was ported to Unix at Stanford by Howard Trickey, and at Cornell by +Pavel Curtis. +The version now offered with the Unix \*(TX distribution is that generated +by the \*(WB to C system (\fBweb2c\fR), originally written by Tomas +Rokicki and Tim Morgan. --- luatex-0.50.0.orig/debian/ANNOUNCE-0.47.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.47.0 @@ -0,0 +1,99 @@ +Hi, + +I have just uploaded the archives for a new luatex release, 0.47.0. + +This will be the last beta before the next major release (0.50), +so please test this version as thoroughly as you can. + +New features: + +* New read-write lua variables pdf.pdfcatalog, pdf.pdfnames, + pdf.pdfinfo, pdf.pdftrailer + +* The horizontal mode nodes that are added to lines during line + breaking now inherit the attributes from the first and last node + inside the created line. + +* The new function pdf.registerannot() registers an + annotation object number to be included in the current + page's /Annots list. + +* The variables .Mathconstants.FractionDelimiterSize + and .Mathconstants.FractionDelimiterDisplayStyleSize + are added to the font table. This allows proper setting of the + size parameters for TeX's ...withdelims math primitives. + +* The internal representation of the string pool is reorganized + (the pool of string characters is now allocated dynamically), + and as a side-effect the lua variable status.init_pool_ptr + is deprecated and will be removed in a later version. Also, + status.pool_ptr now simply returns the current number of bytes + in use for string characters. + +* There are new lua variables pdf.pdfmapline and pdf.pdfmapfile + (write-only strings that mimic \pdfmapline and \pdfmapfile). + +* \pdfobj data and attribute are now stored as C strings instead + of as token lists (this should speed up cases with a lot of data). + +* Artificially slanted fonts now work via the pdf text matrix + (instead of adjusting the actual font) so that it now also + works for non-Type1 fonts. The lua .slant font key is + now obeyed in all cases. + +* The lua function font.id() returns the internal font id + number belonging to a control sequence name. + +* Pdf image inclusion is optimized such that objects from an + external pdf will now be included only once even if they are + referenced from multiple inclusions. + +Bug fixes: + +* Protrusion for non-TLT documents did not work properly for + the hyphenation character. + +* \lastbox could not remove the paragraph indent box for non-TLT + documents. + +* Pdf images (\pdfximage) are no longer kept open during the + whole run, but closed and reopened. An error is raised if + the file has changed between \pdfximage and \pdfrefximage. + This prevents the 'too many open files' error when lots of + images are included. + +* On Win32 Pdf image files are locked during the time that it is + open, to prevent unnoticed file changes by external sources. + +* Compilation now again works on FreeBSD. + +* Format sharing between 32-bit and 64-bit architectures was + broken. + +* Unsetting attributes from lua could sometimes result in + the unset state persisting beyond the current group level. + +* If something went wrong in the scanning of pdf action items, + the error message reported the current primitive name + incorrectly. + +* Luatex would crash on non-existant pdfs that were referenced + from map file entries. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.47.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.20.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.20.0 @@ -0,0 +1,79 @@ +Hi, + + +Hi all, + +I have just released the new beta for luatex, with version +number now at 0.20.0. This will be the last beta with big +changes in it for a while: I will start work on the mplib +project now, and that will be my main focus for the coming +two/three months. I have planned for bug-fix releases for +this beta, though. + +Actually, there certainly will be a 0.20.1 pretty soon, +because: there are some pretty nasty bugs in the bidirectional +algorithm that need fixing (sorry Idris, my brain is too +blurry to solve these right now, I'll try again in a day +or two); there is a node memory leak in math mode (not +bad enough to be a shopstopper, but it needs fixing); the manual +can be improved quite a bi (as the question from Jonathan +prove!). + +News compared to the last beta (0.11.2) is as follows: + +* Completely overhauled hyphenation and ligkern application, + including the addition of a new "lang" table in lua to + interface to the language parameters, some extra functions + in the "node" table, and a few extra callbacks ("hyphenate", + "ligaturing", "kerning", "post_linebreak_filter"). + + There is a new chapter in the manual to document all the + changes to the hyphenation and line breaking algorithms, + it is simply too much to list here. + +* the interface of the pre_linebreak_filter,hpack_filter, + vpack_filter, and pre_output_filter has changed slightly. + +* boxes can now get explicit attributes different from the + currently active set, using a syntax like + + \hbox attr2=12 attr3=-1 to 12pt {Hi!} + +* lpeg is now at version 0.7 + +* a whole series of exotic bugs and compiler warnings are + fixed, mostly thanks to the watchful eye of Fabrice. + +* texio.print now accepts multiple strings as arguments. + +* the lua functions os.sleep(), os.times(), os.gettimeofday() + and os.tmpdir() have been added. + +* lua now comes with the coroutine (coco) patches from the + luajit project applied. + +* the banner line no longer claims to be TeX. + +* a bunch of bugs reported on the mailing list have been + fixed (I hope all of them). + +* (internal) we found lots of small ways to speed up lua + node processing. + +* (internal) the node (de)allocation functions have been + rewritten, so that absolutely all nodes now have a type, + even the ones with variable sizes. + +I have uploaded source and linux/win32 binaries to + + http://foundry.supelec.fr/projects/luatex/ + +Have fun, + +Taco + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.3 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.3 @@ -0,0 +1,43 @@ +Hi, + +I have just uploaded luatex 0.40.3 to the foundry server, +and have committed the source code to texlive. + +What's new: + +* A set of portability fixes for the AIX compiler from Vladimir + Volovich. + +* A set of fixes to the synctex support. + +* A patch to the build script to prevent installed X11 headers + from being required. + +* Some weave (web syntax) fixes from Manuel Pégourié-Gonnard. + +* A simplification in luatex.ch (it is now less verbose + about the web2c-specific extensions) from Karl Berry. + +* A fix in the handling of UTF-8 (input) file names. + +* Hyphenation exceptions were case sensitive in 0.40.2. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.3 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + + + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.30.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.30.0 @@ -0,0 +1,97 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.30.0. +This release matches SVN revision #1521. + +New features: + +* Readable \tex internal params that are counts, attrs, or dimens are + now returned as numbers instead of strings, and skips as node objects. + Read-write access to tex's skip registers added: tex.skip[0] etc. +* new callback: 'linebreak_callback' to replace the internal paragraph + breaking code +* the tex table now supports more readable 'convert' values: + tex.fontname, tex.pdffontname, tex.pdffontobjnum, tex.pdffontsize, + tex.uniformdeviate, tex.number, tex.romannumeral, tex.pdfpageref, + tex.pdfxformname (each takes a number as argument) +* new readable parameter: tex.fontidentifier(number) returns the + \csname associated with that font id +* luatex now outputs \FONT instead of \^^@ in Overfull/Underfull + messages if the font's id text is zero (like for expanded fonts) (#77) + * luatex --version is split into --version and --credits +* There is now (again) an svn revision number in luatex --version (#91) +* Add support for more read-only internal access from lua: + tex.lastpenalty, tex.lastkern, tex.lastskip, tex.lastnodetype, + tex.inputlineno, tex.badness, tex.pdftexversion, tex.pdflastobj, + tex.pdflastxform, tex.pdflastximage, tex.pdflastximagepages, + tex.pdflastannot, tex.pdflastxpos, tex.pdflastypos, tex.pdfrandomseed, + tex.pdflastlink, tex.luatexversion, tex.Alephversion, + tex.Omegaversion, tex.Alephminorversion, tex.Omegaminorversion, + tex.eTeXminorversion, tex.eTeXversion, tex.currentgrouplevel, + tex.currentgrouptype, tex.currentiflevel, tex.currentiftype, + tex.currentifbranch, tex.pdflastximagecolordepth (#81) +* the old --src-specials are replaced by --synctex (#63) +* the \expanded primitive is backported from pdftex 1.50 (#43) +* luatex now comes with libpng 1.2.32 +* experimental: tex.definefont(string, number) associates a + csname string with a font id number + +Bugs fixed compared to 0.29.0: + +* dashes were exported wrongly by MPlib +* multi-item \discretionaries were broken in various ways (#78, mailinglist) +* read_font_info was sometimes called recursively from lua-loaded + virtual fonts +* do_vf was sometimes called on lua-loaded fonts that where + already known to be virtual +* trailing junk in tfm files is now ignored (needed for ecrm fonts) +* pdf_ignored_dimen was initialized too late, breaking \prevdepth + handling and causing output lines to overlap eachother (#72) +* pdf.immediateobj() had a printf-related bug +* the fontname terminal logging is fixed for strange font file names +* lua tex array assignments now listen to the globaldefs setting + (tex.count[0] etc) (#92,partial) +* \parshape was broken (#70) +* there is no longer a ".tex" extension forced on very input file (#74) +* eof() for mapfiles was true one byte too soon (#76) +* out of range \lefthyphenmin and \righthyphenmin settings now actually + disable hyphenation (#90) +* tex.unset_attribute() looked too far ahead when a to-be-unset + attribute id not only did not exist in the node, but was also + higher than the highest set attribute on the node. (#65) +* the parameters attr and page_name of read_image() were swapped + (this broke \pdfimage with attributes) +* tex filenames with spaces in them on the command line are now + allowed again (#30) +* sometimes pfb fonts were included multiple times without valid + reason (#29) +* some parts of the pdftex 1.40.9 PNG transparancy hack were still + present and caused transparant png handling to fail +* \localinterlinepenalty and \localbrokenpenalty were broken +* special case catcode tables are now handled better (#23) +* the handling of missing .notdef charstrings in old pfb fonts + is fixed (#27) + + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + + + + + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.46.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.46.0 @@ -0,0 +1,118 @@ +Hi, + +I have just uploaded the archives for a new luatex release, 0.46.0. + +There are two important reason for this release: + +* It fixes an xform bug that is quite serious as it produces + invalid pdf files (see below) + +* There is now experimental support for loading external .dll/.so + files for lua extension modules. Copied from a message I sent to + the dev-luatex list a few days ago: + +> I have committed an experimental patch that +> enables dynamic loading for external compiled libraries unless --safer +> is given on the command-line. +> +> It is experimental because: +> +> * it assumes that all architectures except windows will be happy with +> using dlopen (windows has its own code which does not need compile- +> time support, but you have to have an installed lua51.dll from e.g. +> http://luabinaries.luaforge.net ). +> +> * I made only minimal changes to kpathsea. +> +> * there may be lua libraries out there that fail horribly. +> +> As with pure lua require() files, luatex will only use kpathsea if the +> library is initialized already. +> +> kpathsea changes in detail: +> +> I added the kpse_clua_format identifier that searches for files with +> extension .dll and .so. The texmf.cnf setting for this variable is +> CLUAINPUTS, and by default it has this value: +> +> CLUAINPUTS=.:$SELFAUTOLOC/lib/{$progname,$engine,}/lua// +> +> This is the best I could do on short notice: the architecture has to +> be in the path somewhere, and the fastest way to do that is to search +> below the binary directory only. +> +> One level up (lib parallel to bin) would have been nicer, as the +> context minimals have arch and bin swapped (texmf-linux/bin as opposed +> to bin/i386-linux) but that would not have worked in texlive. + +If you know how to compile dynamic libraries on your platform, +a good library to play with is Lua BitOp, http://bitop.luajit.org/ +(single C source file and comes with a nice test lua script). + + +And here is the normal list of features and bugfixes in 0.46.0 +-------------------------------------------------------------- + +New features: + +* The build.sh script now has better support for new MacOSX-es + (patch from Mojca). + +* Luatex now has experimental support for dynamic loading of + external compiled lua libraries. Building luatex and loading + external .so/.dll files is reported to work on Windows, + linux and osx, other platforms are still unknown. + +* pdf.obj{type="stream"} no longer converts its argument to and + from a tokenlist. This allows the use of binary data in the + "string" argument. Such data does still have to hidden from + the normal file parser by putting the code in a dofile() + or by using string.char(), though. + +Bug fixes: + +* Luatex 0.45.0 was not able to find truetype nor opentype fonts + if there were no callbacks defined (patch from Pawel). + +* 0.45.0 printed the user input instead of the full pathname + for \input-ed tex files. + +* The TFM reader now rejects fonts with tfm names that are + longer than 255 characters because such font names cannot + be stored in a DVI file. + +* The combination of \immediate\pdfxform followed by a later + \pdfrefxform could cause broken pdf output files because + the box used for the form could have been freed and even + reused already at that moment in time, sometimes resulting + in an invalid transformation matrix. + +* The placement of super- and subscripts for displaystyle + \int's in CambriaMath is now better than before. It still + needs a tweak to the metrics though: in the current version, + the italic correction has to be substracted from the width + of the integral sign to get correct placement (context mkiv + does this). to be continued ... + + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.46.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.1 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.1 @@ -0,0 +1,55 @@ +Hi, + +I have just uploaded luatex 0.40.1 to the foundry server, +and have committed the source code to texlive. + +What's new: + +* Vertical placement of root radicals and degrees is fixed. + +* The use of \pageleftoffset could deviate from \hoffset + if \mag != 1000. + +* LuaTeX now issues a warning if \pagedir != \bodydir during + shipout. + +* The previous crash in font.read_tfm() was still not quite + correct. + +* The Web2C version is now also printed in the --version + and --credits output. + + +* There is a new MPlib 1.200 release candidate with a few minor + fixes included. + +* The xpdf library is updated to patch level 3. + +* New imports to the build system, from texlive. In particular, + there is now configure-level support for building with + libpoppler and support for building under cygwin 1.7 is added. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +You could also check out the sources via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.40.1 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + + + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.5 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.5 @@ -0,0 +1,27 @@ +Hi, + +I have just uploaded luatex 0.40.5 to the foundry server, +and have committed the source code to texlive. + +What's new: + +* One of the internal print functions accidentally encoded its + argument string to UTF-8 even though it was already UTF-8. + +* Some of the log and terminal UTF-8 output was gibberish. + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.5 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.0 @@ -0,0 +1,44 @@ +Hi, + +I have just uploaded luatex 0.40.0 to the foundry server, +and will commit the source code to texlive later today. + +What's new: + +* The embedded MPlib is updated to version 1.200. + +* Texlua would crash if run font.read_tfm() was used. + +* Luatex would crash on empty \patterns. + +* Lots of small C code cleanups. + +* \textdir inside a \hbox dir *** was wrong earlier. + +* 0.39.0 introduced a bug that would make luatex crash whenever + font expansion was used. + +* Font tables returned by define_font can now have a key named + 'cache' that controls the internal lua font table caching. + +* There is no longer a need for an explicit --progname if there + is no input file given. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +You could also check out the sources via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.40.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.25.3 +++ luatex-0.50.0/debian/ANNOUNCE-0.25.3 @@ -0,0 +1,49 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.25.3, yet +another bugfix release to the 0.25 series. + +Bugs fixed: +* Pdftex bug no. 936 (sarovar) regarding vertical + positioning of embedded PDF files if depth parameter is given. +* Luatex gave bogus lua return values for the tex.wd/hd/dp + values of void boxes +* A few bugfixes in mplib (square pens caused hangs, elliptical + pens caused confused output) +* Hyphenation of uppercase words (\uchyph) was broken +* Output image placements corrected for all 8 transform cases + also when artbox etc. is used +* There were missing maketexstring() calls in error messages +* Math display contents were sometimes prematurely freed during + the placement of the equation number +* Setting \language=-1 could cause crashes due to an array + index going out-of-bounds + +Other news: +* build.sh.ppc is added to the source distribution. This is a + script that crosscompiles osx ppc binaries from osx intel +* tex.box[] is now supported (but still experimental) +* a bunch of compiler warnings are removed +* The fontforge library now dump AAT feature tags as and + "" string +* The new function font.nextid() predicts the next assigned font id +* Some source code changes are backported from texlive + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.4 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.4 @@ -0,0 +1,34 @@ +Hi, + +I have just uploaded luatex 0.40.4 to the foundry server, +and have committed the source code to texlive. + +What's new: + +* \the\textfont0 returned a number instead of doing a font switch. + +* The embedded MPlib is now 1.203. + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.4 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + + + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/rules +++ luatex-0.50.0/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f + +# +# just to remember how to do it by hand +#export QUILT_PATCHES=./debian/patches + +include /usr/share/quilt/quilt.make +#export DH_VERBOSE=1 +export DH_OPTIONS + +CFLAGS := -g -Wall +ifneq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" "" +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +luatex := $(CURDIR)/debian/luatex + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + export CONFIG_SHELL=/bin/bash && bash ./build.sh --nostrip + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build linux + dh_clean install-stamp build-stamp + +install: install-stamp + +install-stamp: DH_OPTIONS= +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/bin + install -m 0577 build/texk/web2c/luatex $(luatex)/usr/bin + dh_installman debian/luatex.1 + dh_link usr/bin/luatex usr/bin/texlua \ + usr/share/man/man1/luatex.1 usr/share/man/man1/texlua.1 \ + usr/bin/luatex usr/bin/texluac \ + usr/share/man/man1/luatex.1 usr/share/man/man1/texluac.1 \ + usr/share/doc/luatex/luatexref-t.pdf usr/share/doc/texmf/luatex/base/luatexref-t.pdf + touch install-stamp + +binary-indep: +# There aren't any architecture independent packages here. + +binary-arch: DH_OPTIONS=-a +binary-arch: install + dh_testdir + dh_testroot + dh_installdocs README debian/README.source \ + manual/luatexref-t.pdf \ + debian/ANNOUNCE-* + dh_installexamples debian/examples/* + dh_installchangelogs +ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" "" + dh_strip +endif + dh_compress -X.pdf + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install --- luatex-0.50.0.orig/debian/compat +++ luatex-0.50.0/debian/compat @@ -0,0 +1 @@ +5 --- luatex-0.50.0.orig/debian/control +++ luatex-0.50.0/debian/control @@ -0,0 +1,38 @@ +Source: luatex +Section: tex +Priority: optional +Maintainer: Debian TeX Maintainers +Uploaders: Frank Küster , Norbert Preining +Build-Depends: debhelper (>= 5), flex, bison, zlib1g-dev, quilt, libpoppler-dev (>= 0.12), libpng12-dev, libjpeg62-dev, pkg-config, sharutils +Standards-Version: 3.8.3 +Vcs-Svn: svn://svn.debian.org/svn/debian-tex/luatex/trunk +Vcs-Browser: http://svn.debian.org/wsvn/debian-tex/luatex/trunk/ +Homepage: http://www.luatex.org + +Package: luatex +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Recommends: texlive-luatex +Replaces: luatex-snapshot +Conflicts: luatex-snapshot, texlive-base-bin (<< 2008) +Description: next generation TeX engine + LuaTeX uses Lua scripting both as an extension to the TeX + macro language and as an extension to the typesetting + engine itself. A (growing) number of TeX internals are + made available to the embedded lua interpreter. + . + LuaTeX uses code and interfaces from Aleph to improve the + typesetting of non-latin alphabet languages, instead of + the TeXXeT code present in the current releases of pdfTeX. + . + Unicode and OpenType font support are added progressively, + and regular pdfTeX development will continue in this + branch as well. + . + The multi-lingual extensions are coded and merged by Taco + Hoekwater. Swift progress in that area is made possible + by a joint grant from Colorado State University and TUG, + under the 'Oriental TeX' project. + . + This package only contains the barebone binary. If you are + searching for support file, formats etc install texlive-luatex. --- luatex-0.50.0.orig/debian/ANNOUNCE-0.45.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.45.0 @@ -0,0 +1,109 @@ +Hi, + +I have just uploaded the archives for a new luatex release, 0.45.0. + +New features: + +* Loading big OTF fonts via lua is now much faster than before, + at the expense of a bit of precision loss in the calculated + bounding boxes. + +* Two new token lists are provided: \pdfxformresources and + \pdfxformattr, as an alternative to \pdfxform keywords. + +* \input and \openin now accept braced filenames. + +* The \endlinechar can now be set to any value between 0 and 127. + +* Luatex can now optionally use kpathsea to find lua require() + files. + +* The new primitives \aligntab and \alignmark are aliases for + the use of & and # in alignments. + +* \pdfrefximage [width ] [height ] [depth ] + overrules settings from \pdfximage for this \pdfrefximage call only + +* The print precision for small numbers in lua code (tostring) + has been improved. + +* Akira Kakuto suppled a patch that restricts writing to files + with names such as latex.bat etc. (on windows only) + +* (un-feature): from now on luatex now only handles 4 direction + specifiers: TLT (latin), TRT (arabic), RTT (cjk), and LTL + (mongolian). The other directions now generate an error. + +* (un-feature): xpdf's automatic lower- and uppercasing retry attempts + for nonfound image pdf files has been removed. + +* The callbacks hpack_filter, vpack_filter and pre_output_filter + pass on an extra string argument for the direction, when known + (nil == use default). + +* The lua functions node.hpack(), node.vpack() and node.dimensions() + now accept an optional direction argument (not given == use default). + +* \pdfrefxform [width ] [height ] [depth ] + scales a form object; similar principle as with \pdfximage: depth alone + doesn't scale, it shifts vertically. + +* A change to the relative ordering inside font name discovery for use + by the backend: now it tries .psname first, as that is much less + likely to contain spaces. + +* For ttc fonts, now the used subfont name and its index id are printed + to the terminal, and if the backend cannot find a ttc subfont, the + run is aborted. + +Bug fixes: + +* Prevent crashes for lua-loaded fonts without a (tfm) name. + +* Remove spurious newlines in the output pdf that could be the + result of using \pdfximage for an included pdf figure too early. + +* Full font embedding for wide otf and ttf fonts now really + works (older versions only pretended that it did work). + +* node.dimensions() sometimes continued past the 'stop' node. + +* Images inside virtual fonts were broken. + +* The processing of \language=-1 was wrong, resulting in + hyphenation attempts even though there was no proper language + set up. + +* Fix for finding files in --output-directory. + +* Fix for handling of --file-line-error. + +* tex.box[] assignments are now checked to make sure the assigned + node has the right id (hlist or vlist). + +* show_node_list (as in \showbox) produced spurious local_par + whatsit prints in the output after direction nodes. + +* The handling of pdf literals has been sped up. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.45.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.40.6 +++ luatex-0.50.0/debian/ANNOUNCE-0.40.6 @@ -0,0 +1,45 @@ +Hi, + +I have just uploaded luatex 0.40.6 to the foundry server, +and have committed the source code to texlive. + +What's new: + +* Fix two string vs. toks bugs in the lua node interface: + whatsit,annot and whatsit,startlink data assignments were + made directly as strings instead of being converted to tokens. + +* Sometimes pdf.print() could be used before the proper structures + were initialized. + +* There was a bug in the type codes for the lua package filter + callback: wrong extra info was passed to lua for the alignment + and vsplit cases. + +* The math parameters \Umathlimitdownvgap, \Umathlimitdownbgap, + and \Umathlimitdownkern have been renamed to \Umathlimitbelowbgap, + \Umathlimitbelowvgap, and \Umathlimitbelowkern to be more + consistent with the other parameter names. + +* The embedded MPlib is now 1.204. + +* Handling of UTF-8 hyphenation exceptions has been fixed. + +* There were a number of typos in the manual. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.6 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco --- luatex-0.50.0.orig/debian/ANNOUNCE-0.25.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.25.0 @@ -0,0 +1,45 @@ +Hi all, + +I have just uploaded the archives for luatex 0.25.0 + +New: + +* mplib library: + This version features an embedded MP interpreter whose output + can be directly accessed from lua code (mplib), without calls + to an external "mpost" command. Of course it has bugs and + limitations (makempx does not work, for example) but keep in + mind that it is only an initial attempt. + See the manual for more details. +* img library: + ** img.immediatewrite() is added + ** images now accept a 'transform' key + ** widths etc. can now be given as width="100mm" + +Fixed: + +* \parshape handling was completely broken since 0.20.0+ +* when \pdfprotrudechars was in effect, an assertion failure + could happen when embedded \hboxes in the paragraph appeared + at the end of a line. +* import of otf fonts with contextual lookups has been debugged, + thanks to a patch by GW himself. +* compiling with gcc 4.2.3 is now supported +* if you want to build from source, you need a pre-installed ctangle. + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/README.Debian +++ luatex-0.50.0/debian/README.Debian @@ -0,0 +1,46 @@ + +README for luatex on Debian +=========================== + +Please note that luatex is much work in progress, and the documentation on +the web (www.luatex.org) is outdated, especially the examples. +Some examples can be found in /usr/share/doc/luatex/examples. + +luatex based latex format +------------------------- +It is possible to create a luatex based latex format, but since luatex +expects utf8 input, all language patterns containing anything but +ascii or utf8 will break format generation. + +What follows explains how to set up a luatex based latex format by hand: +First note that luatex based formats will default to pdf output, so there +is no pdflualatex, but dvilualatex since lualatex produces pdf by default. +Same with dviluatex and luatex. + +Call + luatex -ini lualatex.ini +and see if there have been problems with the installed hyphenation patterns. +In case there are non, move the generated lualatex.fmt to + /var/lib/texmf/web2c/luatex/lualatex.fmt +For DVI output call + luatex -ini dvilualatex.ini +and move the resulting dvilualatex.fmt file to + /var/lib/texmf/web2c/luatex/dvilualatex.fmt + +Call + mktexlsr /var/lib/texmf + +Create two links in any of the directories contained in PATH + lualatex -> /usr/bin/luatex + dvilualatex -> /usr/bin/luatex +by doing (for putting the links in /usr/bin): + cd /usr/bin; ln -s luatex lualatex ; ln -s luatex dvilualatex + +Now it should be possible to call + lualatex +and obtain a luatex based latex format. + + +Norbert Preining , 2007-10-31, last changed 2009-06-02 +suggested by Stefano Zacchiroli . + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.30.1 +++ luatex-0.50.0/debian/ANNOUNCE-0.30.1 @@ -0,0 +1,42 @@ +Hi all, + +I have just uploaded the archives for luatex 0.30.1. +This release matches SVN revision #1552. + +There are no new features, just bugfixes and speedups: + +* Invalid return values from the linebreak_filter callback + are now handled gracefully (was crashing) +* a preinstalled ctangle is no longer needed except when + cross-compiling +* In 0.30.0, the .notdef fix was incorrectly applied to + truetype / opentype fonts. +* A bunch of all memory leaks is fixed +* In lua, f:read('*a') now uses signicantly less memory +* The number of \catcodetables is now limited to 64KB + (for speed reasons) +* Luatex could crash if there were PDF images with and + without page /Group included on the same page +* Lua coco now always uses setjmp (for OpenBSD compatibility) +* The embedded mplib is updated to the latest svn version +* # marks (characters with catcode 6) are no longer doubled + inside \directlua +* Handling the nul character (U+0000) with catcode 13 + (active) was broken +* Luatex could crash on win32 with an access violation + because there was one predefined language too few + (the one matching \language=-1) + + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.50.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.50.0 @@ -0,0 +1,74 @@ +Hi, + +I have just uploaded the archives for a new luatex release, 0.50.0. + +This release starts a new chain of stable beta's. + +New features: + +* Fonts now listen also to the 'extend' key in the lua font + metrics table, and the processing for this is done via de + pdf text matrix instead of via the font matrix, which means + it now works for all font types. + +* The embedded Metapost library is now at version 1.209. + +Dropped features: + +* It is no longer possible for fonts from embedded pdf files + to be replaced by / merged with the document fonts of the + enveloping pdf. This regression may be temporary, depending + on how the rewritten font backend will look after beta 0.60. + +Bug fixes: + +* Use of \middle confused the \mathstyle operation. + +* \pdfcolorstack handling was broken. + +* node.unset_attribute() had a bug whereby it inverted the + requested result in some cases (the node on which the unset + was called was sometimes the only node at the current level + that *kept* the attribute). + +* During font expansion, the internal font copy had one character + information object less than the original, resulting in the + disappearance of a glyph in some fonts when font expansion + was active. + +* Placement of operator scripts of OT MATH fonts is adjusted + to be conformant with Word's logic where the italic correction + is only used to tuck in the subscript and for nothing else. + +* luafontloader.open() no longer writes directly to stderr in + case of internal font errors. + +* Any .objnum could not be assigned to. + +* The lua 'pdf' table could not be assigned to. + +* The lua 'md5' library was returning incorrect results on + 64-bit architectures. + +* Luatex now compiles on GNU Hurd systems. + +* Fix segfault when embedding stream file object (these + backend segfaults were a side-effect of the string pool + patches). + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.50.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/postinst +++ luatex-0.50.0/debian/postinst @@ -0,0 +1,122 @@ +#!/bin/sh +# +# postinst for luatex + +set -e + +# Authors: +# Florent Rougon +# Norbert Preining +# + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + if kpsewhich --version >/dev/null 2>&1; then + stat=$(dpkg-query -W -f='${Status}' texlive-base) + case "$stat" in + "install ok installed") + do_it=1 + ;; + *) + do_it=0 + ;; + esac + if [ "$do_it" = 0 ] ; then + echo "texlive-base is not ready, cannot create formats" >&2 + else + tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX) + echo "Building format(s) --byengine luatex." + printf "\tThis may take some time... " + if fmtutil-sys --byengine luatex > $tempfile 2>&1 ; then + rm -f $tempfile + echo "done." + else + # fmtutil might have failed with + # No format depends on ... + # we have to catch this error + firstline=`head -1 $tempfile` + case "$firstline" in + "fmtutil: no format depends on engine"*) + printf "\n\tNo format is based on luatex ... done.\n" + rm -f $tempfile + ;; + *) + exec >&2 + echo + echo "fmtutil-sys failed. Output has been stored in" + echo "$tempfile" + echo "Please include this file if you report a bug." + echo + exit 1 + esac + fi + fi + fi + ;; + + *) + echo "postinst called with unknown argument '$1'" >&2 + exit 1 + ;; +esac + + +case "$1" in + configure) + # removing diversions is a pain, due to the fact that dpkg in + # lenny ships a dpkg-divert that automatically adds --rename + # to the --remove which breaks upgrades from lenny, we move + # the whole dpkg-divert remove code here. + # we have to ensure we do not die here (set -e above) because + # grep returns false if no match was found + set +e + DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by luatex$'` + if [ -n "$DIVERSIONS" ] ; then + # first try with --rename + echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do + dpkg-divert --test --package "$PACKAGE" --remove --rename "$FILE" >/dev/null 2>&1 + if ! [ $? = 0 ] ; then + # try to remove diversion without --rename + dpkg-divert --package "$PACKAGE" --remove "$FILE" + else + dpkg-divert --package "$PACKAGE" --remove --rename "$FILE" + fi + done + fi + set -e + texdoc_check_passed=0 + if [ -L /usr/bin/texdoc ] ; then + texdoctarget=`readlink /usr/bin/texdoc` + if [ ! -r "$texdoctarget" ] && + [ "$texdoctarget" = "texdoclua" ] ; then + texdoc_check_passed=1 + fi + else + if ! [ -e /usr/bin/texdoc ] ; then + texdoc_check_passed=1 + fi + fi + if [ $texdoc_check_passed = 1 ] ; then + if [ -L /usr/bin/texdoc.notluatex ] ; then + texdocnotluatextarget=`readlink /usr/bin/texdoc.notluatex` + if [ -r "/usr/bin/$texdocnotluatextarget" ] && + [ "$texdocnotluatextarget" = "../share/texmf-texlive/scripts/texdoc/texdoc.tlu" ] ; then + # new luatex installed, + # new texlive-base >= 2009 installed + # diversion have been removed above + echo "Cleaning up luatex diversion mess:" + echo " - remove old dead /usr/bin/texdoc link" + rm -f /usr/bin/texdoc + echo " - reinstantiate from forgotten diversion texdoc.notluatex" + mv /usr/bin/texdoc.notluatex /usr/bin/texdoc + fi + fi + fi + ;; +esac + +#DEBHELPER# + + +# Let vim know that we don't want tabs +# vim:set expandtab tabstop=4: # --- luatex-0.50.0.orig/debian/ANNOUNCE-0.30.3 +++ luatex-0.50.0/debian/ANNOUNCE-0.30.3 @@ -0,0 +1,41 @@ +Hi all, + +I have just uploaded the archives for luatex 0.30.3. +This release matches SVN revision #1587. + +This release fixes a really big bug, a few smaller ones, +and has updates of png and mplib: + +* All hyphenation patterns that were anchored at the start or + end of a word were ignored in luatex versions 0.25.X and 0.30.X + (and possibly even earlier). + +* Repeated use of \language=-1 could result in "There is not room + for another language". + +* The lua true coroutines patch (Coco) is now disabled on OpenBSD + running on non-intel platforms. + +* The lua socket library is patched so that it will now compile on + OpenSolaris. + +* Luatex now has libpng 1.2.33 and mplib 1.100 + + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + + +_______________________________________________ +dev-luatex mailing list +dev-luatex@ntg.nl +http://www.ntg.nl/mailman/listinfo/dev-luatex --- luatex-0.50.0.orig/debian/ANNOUNCE-0.36.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.36.0 @@ -0,0 +1,109 @@ +Hi, + +I have just uploaded luatex 0.36.0. + +This is a beta in the process towards 0.40.0, the version that +will be included in texlive 2009. This beta will be shortlived, +the plan is to release the next one in about a week. + +The main reason for a release now is to prepare for a bunch +of important user-visible changes: + +* The lua code for tex.enableprimitives() etc. is now there, + but for this beta all the new primitives are still provided + to the user. + + In next week's beta, these will be gone indeed, and only + \directlua will remain present by default. See the mailing list + archive: http://tug.org/pipermail/luatex/2009-March/000360.html + for more information, the final syntax is explained in the + manual. + +* Multiple lua states have been removed and the old syntax + now produces a (rather annoying) informational message. + +* The fontforge table is renamed to fontloader. The old name + is still there for the moment, but also produces a warning + message. + + + +A more detailed 'what's new': + +* The included fontforge code is stripped considerably, and + the lua table to access the code is renamed to 'fontloader'. + The old name ('fontforge') will remain present for a while, + but will eventually go away. + +* New lua functions: tex.primitives(), tex.extraprimitives, + tex.enableprimitives(). This is a prelude to a big change + in the next beta: iniluatex will from now on start up with + only the TeX82 primitives and \directlua, everything else + has to be bootstrapped via tex.enableprimitives(). + See the manual for more details. + +* Support for multiple lua states has been removed, and at the + same time support for adding name ids to lua chunks has been + added, and \closelua has been removed. See the manual for + more details. + +* More changes to the PDF backend to make it support non-latin + directions (form and image placement, vertical typesetting, + synctex). + +* The kpathsea library is updated. Highlights: cleaner build + process (thanks to Peter Breitenlohner), cleaner mingw32 + (cross)compilation support, and a new reentrant API. + +* Some possible endless loops within extended delimiters in + math mode are now trapped. + +* Movements inside VF font characters were considerably off + due to a wrong conversion routine. + +* Error handling for \outer has been reinstated, but can be + suppressed via the new primitive \suppressoutererror. + +* The new primitives: \suppresslongerror and \suppressifcsnameerror + that can be used to suppress errors for \par in non-long macros + and for non-expandable objects inside \ifcsname ... \endcsname, + respectively. + +* New lua function: node.vpack() via a patch from Khaled Hosny + that also improves error handling in node.hpack(). + +* Fix the typo that caused \charic (instead of \charit) + to be defined as a primitive. + +* Suppression of hyphenation via \hyphenchar\font=-1 now works + again. + +* The lua functions tex.print(), tex.sprint(), tex.write() now + accept an array of strings as well as vararg list of strings + to print. + +* A change to be build process: luatex.p is no longer split + int smaller pieces before running the C compiler. + +* Melissa O'Neill contributed a bugfix to the Type1 font + subsetting code. + +* A bunch of smaller bugfixes and cleanups (as usual). + + +The archives (now including source again) can be downloaded from +supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +You could also check out the sources via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.36.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/NEWS +++ luatex-0.50.0/debian/NEWS @@ -0,0 +1,10 @@ +luatex (0.15-1) unstable; urgency=low + + * Starting with this version the luatex packages ships texdoclua, written + by Frank Küster. This program is a replacement for texdoc which operates + much faster. Please see the man page for details. + + Furthermore the package installs a diversion of texdoc, so that as soon + as you install luatex you will profit from the new texdoclua as texdoc. + + -- Norbert Preining Sun, 11 Nov 2007 21:19:46 +0100 --- luatex-0.50.0.orig/debian/ANNOUNCE-0.44.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.44.0 @@ -0,0 +1,83 @@ +Hi, + +I have just uploaded the archives for a new luatex release, 0.44.0. + +There are not a lot of new features yet, but this releases fixes +a fair amount of bugs found in 0.43.0 (and earlier versions). + +New features: + +* libpng is now 1.2.40. + +* hlist nodes now have a subtype to distinguish hlists generated + by the paragraph breaking, explicit \hbox commands, and other + (as-yet-undefined) sources. + +* \pdfobj now has an extra optional keyword: 'uncompressed', + which forces the object to be written to the PDF in plain + text (see the manual for the exact details). + +* The lua file from the luamd5 library (which provides the + md5.hexsuma() function) is now embedded in the executable. + +Bug fixes: + +* \latelua now works in DVI mode again. + +* status.output_file_name could crash when used too soon. + +* In 0.43, rules were not output at all in DVI mode. + +* \leavevmode\penalty-10000\penalty-10000 crashed luatex. + +* the API of margin kern nodes to lua was using the wrong + fields in the nodes. + +* A few fixes to the manual. + +* PDF Xref stream dicts were slightly non-conformant. + +* There was too much space between two consecutive math displays + (this bug was inherited from Aleph) + +* Synctex was broken (thanks, Akira) + +* Font mark classes were handled incorrectly by the fontloader + code. + +* There was a crash possible with certain types of named PDF + destinations. + +* Math delimiters and large operators in new MATH fonts no + longer apply the italic correction (this fixes placements + of super- and subscripts on such items for those fonts). + +* The converter from lua strings to token lists (for the node + interface) sometimes generated invalid tokens. + +* CFF (OpenType) fonts now listen to 'embedding="full"'. TTF + is still todo. + +* Font tables with 'embedding="no"' would cause luatex to crash. + +* \pdfobj file {} failed to find the file if there was no lua + callback in place. + +* An optimization in MS Mincho caused luatex to crash. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/gf/project/luatex/ + +You could also check out the sources via anonymous svn: + + svn co http://foundry.supelec.fr/svn/luatex/tags/beta-0.44.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco --- luatex-0.50.0.orig/debian/ANNOUNCE-0.39.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.39.0 @@ -0,0 +1,81 @@ +Hi, + +I have just uploaded luatex 0.39.0. + +This is the last beta before 0.40.0, and we consider it to be +feature complete now. The difference between 0.39.0 and 0.40.0 +will be nothing more than a newer version of MPlib, improvements +to the manual, and (probably) a few bugfixes. + +What's new: + +* iniluatex will from now on start up with only the TeX82 primitives + and \directlua, everything else has to be bootstrapped via + tex.enableprimitives(). This change was planned for 0.40.0, + but *now* is the time to test it. + +* A bugfix for \primitive in various expandable contexts, + and \primitive now generates an error message when the + argument is not actually a primitive's name. + +* There was a bug found in the math accent handling. + +* Large math operators are now treated like extensible characters + in the sense that they can be composed of segments. + +* The extra assign- and restore tracing information from eTeX + had a massive bug because of a dangling else in the pascal web. + As a side-effect of fixing this bugs, all such potential errors + in the pascal web have been fixed (for now). + +* The math parameters can now be set and queried from lua code + via the new tex.setmath() and tex.getmath() functions. + +* Reflection in a \hbox was broken. + +* There was a leak of direction nodes in the paragraph builder. + +* The font backend now does a small peek to differentiate + truetype and postscript style opentype fonts. This fixes + the "Can't find CFF table" bug for otf's with truetype outlines. + +* Parameters and registers can now also be assinged to globally + from lua (see the manual for details). + +* It is now possible to query the current math style while a + formula is still being constructed by using the new read-only + value \mathstyle. Associated is the new command \Ustack that + is to be used as a prefix for {.. \over ..} and friends. + See the manual for more information. + +* The embedded MPLib is brought up to date with the current + metapost repository (version 1.110 and a few small patches). + +* Luatex can now handle two breakpoints inside a single ligature + (like for the functional word of-f-ice). The solution is not + perfect yet, but the chance of missed hyphenation points in + actual documents should now be negligible. + +* Some speedups in the font loading code, and in the handling of + pdf_literal nodes that are set from within Lua code. + +* Some source code and manual cleanup, as usual. + + +The archives can be downloaded from supelec as usual: + + http://foundry.supelec.fr/projects/luatex/ + +You could also check out the sources via anonymous svn: + + svn co svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.39.0 + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + + +Have fun, +Taco + + --- luatex-0.50.0.orig/debian/ANNOUNCE-0.28.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.28.0 @@ -0,0 +1,80 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.28.0, another +intermediate release leading up to TUG 2008. This release +matches SVN revision #1357. + + +There is one new feature: + +There is now experimental support for non-trivial discretionaries +following explicit hyphens. In analogy to \prehyphenchar and +\posthyphenchar, there are two new parameters \preexhyphenchar en +\postexhyphenchar. Both new parameters default to zero (nothing). +When set to a nonzero value, the parameter is added to either the +pre- or post- break text. Note that this is *in addition to* the +hyphen already in the input. Testing and comments are very welcome. + +Here is a short example (no idea what is says): + + \pdfoutput=1 + \hsize=2in + \postexhyphenchar=`- + Seria bom se eu + pudesse t\^e-lo mantido como amigo, mas por + mais bem-intencionado que eu fosse, n\~ao + foi possivel + \bye + + + +Bugs fixed compared to 0.27.0: + +* Words that started off with a character with a zero \lccode + were never hyphenated at all. + +* There was a bug in the new active characters code that prevented + the latex format from being built (with Invalid character error). + +* There is a temporary fix for the sometimes appearing "Font has a + bad FontBB" message from Acrobat. + +* \leaders did not actually stretch enough (the last bit of glue + that has to line up the line endings was never output to the PDF). + +* Bad paragraph-related callbacks could result in luatex crashing. + +* The pre_linebreak and post_linebreak filters were never called + when \output was active (this was a leftover of a superceded + optimization). + +* 'skipping' language codes when setting up \patterns c.s. did not + work (it used the next empty slot instead of the actual value of + \language). + +* Using multiple 'attr' keywords on box items could cause random + crashes. + +* Calling lang.hyphenate() with one argument (without specifying a + tail node) could crash. + +* The luatex pdf banner and version reporting is cleaned up a bit. + +* Conflicting patterns inside \patterns now give an error: + ! Conflicting pattern ignored. + (duplicate identical patterns are ignored without error). + + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Bugs and feature requests can be added to the issue tracker at + + http://tracker.luatex.org + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/luatex.doc-base.refman +++ luatex-0.50.0/debian/luatex.doc-base.refman @@ -0,0 +1,8 @@ +Document: luatex-reference +Title: LuaTeX reference manual +Author: LuaTeX development team +Abstract: Reference manual for LuaTeX, the next generation TeX engine +Section: Text + +Format: PDF +Files: /usr/share/doc/luatex/luatexref-t.pdf --- luatex-0.50.0.orig/debian/ANNOUNCE-0.22.0 +++ luatex-0.50.0/debian/ANNOUNCE-0.22.0 @@ -0,0 +1,75 @@ + +Hi all, + +I have just uploaded the archives for luatex 0.22.0. +The amount of changes in this beta is not enormous, but there +is interesting new stuff (most of that by Hartmut), and it +fixes a couple of pretty severe bugs. + +What's new: + +* We now have an official bug tracker: http://tracker.luatex.org +* A new lua library (img) is added that allows a direct + interface to the image handling of luatex. You can use this + to include images from lua code instead of via the more + traditional \pdfximage cs. See the manual. +* An optional equal sign after \{pre,post}hyphenchar is now + allowed. +* os.exec() has been extended, and os.spawn() added. These + functions have support for quoted strings, and they + also accept a table with preseparated command arguments. +* New string constants os.type and os.name are provided. +* node.last_node() is added. This pops and returns the last + node from luatex's 'current list' +* node.write() is added. This appends a node to the end of + luatex's 'current list' (experimental). +* The strict check on unicode compliance in pattern files + is dropped. Patterns files still have to be in proper UTF-8 + encoding, but the error for non-Unicode character values + (like 0 - 31 and 127 - 159) is dropped. +* \pdfadjustinterwordglue, \prependkern, \appendkern + and associated \XXXXcode arrays are gone. +* The rest of the pdftex font arrays are now merged into + the new luatex font data structure. This means that you + can now set up font expansion from lua code, and that a few + font-related limits are gone. +* The 'top_skip' field in 'insert' nodes is renamed to 'spec', + for improved consistency. +* kpse.show_path() added. This behaves just like + $ kpsewhich --show-path +* The unicode.utf8 functions now also accept values in the range + 1.114.112 - 1.114.367 that is used by LUATEX for raw byte output. + +What's been fixed: + +* Better node memory (de)allocation error tracking and messages +* Compilation on MacOSX 10.5 was broken +* There was a bug in node.insert_after +* Use of \{pre,post}hyphenchar was broken +* lfs.permissions was leaking memory +* Some warning and error messages are improved a bit +* A set of bugs in character protrusion, this seems to be working + ok now. +* Also, a set of bugs in font expansion. This now works in most + cases but is not quite bugfree yet (problematic files for testing + are welcomed). +* The functions in the kpse library would crash luatex if + kpse.set_program_name() was not yet called. gives an error now. +* Alignments with spanned columns could cause crashes +* A patch is added for problems with filename parsing on the + "first input line" (by Jonathan Kew) +* The hpack_filter and vpack_filter were only called for lists longer + than one node. +* Luatex is now more forgiving about font subsets being smaller + than their expected size (issues a warning instead of aborts now) +* A "double-free ignored" error for paragraphs with lines starting + with discarded items was fixed. + +The archives (source and binaries) can be downloaded from supelec, +as usual: + + http://foundry.supelec.fr/projects/luatex/ + +Have fun, +Taco + --- luatex-0.50.0.orig/debian/README.source +++ luatex-0.50.0/debian/README.source @@ -0,0 +1,16 @@ + +README.Debian-source + +The orig.tar.gz has been downloaded from + https://foundry.supelec.fr/projects/luatex +The unnecessary libraries + zlib, libpng, xpdf +in + source/libs +have been removed. + +The source package uses quilt for the modifications of the upstream source. +If you want to change something it is best to use the quilt approach as +documented in + /usr/share/doc/quilt/README.source + --- luatex-0.50.0.orig/debian/patches/libpoppler-0.4 +++ luatex-0.50.0/debian/patches/libpoppler-0.4 @@ -0,0 +1,261 @@ +libpoppler-0.4 + +make luatex compile with libpoppler release line 0.4 (etch) + +--- + src/configure | 6 +-- + src/configure.in | 8 ++--- + src/texk/web2c/luatexdir/Makefile.in | 2 - + src/texk/web2c/luatexdir/image/pdftoepdf.cc | 43 +++++++++++++--------------- + src/texk/web2c/luatexdir/luatex.mk | 5 ++- + src/texk/web2c/luatexdir/pdftosrc.cc | 37 ++++++++++++------------ + src/texk/web2c/luatexdir/utils.c | 4 +- + 7 files changed, 54 insertions(+), 51 deletions(-) + +Index: luatex-0.25.2/src/configure +=================================================================== +--- luatex-0.25.2.orig/src/configure 2008-04-10 14:38:03.000000000 +0000 ++++ luatex-0.25.2/src/configure 2008-04-15 06:30:55.000000000 +0000 +@@ -3450,9 +3450,9 @@ + + # we need libxpdf for pdf[ex]tex, xetex + test ! -d $srcdir/$LIBXPDFDIR && : ${needs_libxpdf=no} +-test "$with_pdftex" != no && : ${needs_libxpdf=yes} +-test "$with_pdfetex" != no && : ${needs_libxpdf=yes} +-test "$with_xetex" != no && : ${needs_libxpdf=yes} ++test "$with_pdftex" != no && : ${needs_libxpdf=no} ++test "$with_pdfetex" != no && : ${needs_libxpdf=no} ++test "$with_xetex" != no && : ${needs_libxpdf=no} + : ${needs_libxpdf=no} + export needs_libxpdf + +Index: luatex-0.25.2/src/configure.in +=================================================================== +--- luatex-0.25.2.orig/src/configure.in 2008-04-10 14:38:03.000000000 +0000 ++++ luatex-0.25.2/src/configure.in 2008-04-15 06:30:55.000000000 +0000 +@@ -157,9 +157,9 @@ + + # we need libxpdf for pdf[ex]tex, xetex + test ! -d $srcdir/$LIBXPDFDIR && : ${needs_libxpdf=no} +-test "$with_pdftex" != no && : ${needs_libxpdf=yes} +-test "$with_pdfetex" != no && : ${needs_libxpdf=yes} +-test "$with_xetex" != no && : ${needs_libxpdf=yes} ++test "$with_pdftex" != no && : ${needs_libxpdf=no} ++test "$with_pdfetex" != no && : ${needs_libxpdf=no} ++test "$with_xetex" != no && : ${needs_libxpdf=no} + : ${needs_libxpdf=no} + export needs_libxpdf + +@@ -207,7 +207,7 @@ + sinclude(libs/libpng/libpng.ac) + sinclude(libs/zlib/zlib.ac) + sinclude(libs/ncurses/ncurses.ac) +-sinclude(libs/xpdf/libxpdf.ac) ++#sinclude(libs/xpdf/libxpdf.ac) + sinclude(libs/t1lib/t1lib.ac) + sinclude(libs/gd/gd.ac) + sinclude(libs/freetype/freetype.ac) +Index: luatex-0.25.2/src/texk/web2c/luatexdir/Makefile.in +=================================================================== +--- luatex-0.25.2.orig/src/texk/web2c/luatexdir/Makefile.in 2008-04-10 14:37:40.000000000 +0000 ++++ luatex-0.25.2/src/texk/web2c/luatexdir/Makefile.in 2008-04-15 06:30:55.000000000 +0000 +@@ -8,7 +8,7 @@ + kpathsea_srcdir_parent = $(srcdir)/../.. + kpathsea_dir_parent = ../.. + +-ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) -I. -I$(srcdir) -I$(kpathsea_dir_parent) -I$(kpathsea_srcdir_parent) @LIBXPDFCPPFLAGS@ -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. -I$(LIBOBSDCOMPATFSRCDIR) -I$(LIBOBSDCOMPATFSRCDIR)/.. -I$(LIBPNGSRCDIR) -I$(ZLIBSRCDIR) ++ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) -I. -I$(srcdir) -I$(kpathsea_dir_parent) -I$(kpathsea_srcdir_parent) -I/usr/include/poppler -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. -I$(LIBOBSDCOMPATFSRCDIR) -I$(LIBOBSDCOMPATFSRCDIR)/.. + CXX = @CXX@ + + CTANGLE = ../ctangle +Index: luatex-0.25.2/src/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.25.2.orig/src/texk/web2c/luatexdir/image/pdftoepdf.cc 2008-04-10 14:37:26.000000000 +0000 ++++ luatex-0.25.2/src/texk/web2c/luatexdir/image/pdftoepdf.cc 2008-04-15 06:31:44.000000000 +0000 +@@ -26,25 +26,24 @@ + #include + #include + #include +-#include +-#include +-#include +-#include +-#include + #include +-#include "Object.h" +-#include "Stream.h" +-#include "Array.h" +-#include "Dict.h" +-#include "XRef.h" +-#include "Catalog.h" +-#include "Link.h" +-#include "Page.h" +-#include "GfxFont.h" +-#include "PDFDoc.h" +-#include "GlobalParams.h" +-#include "Error.h" +- ++#include ++#include ++#include ++#include ++#include ++#include "poppler/Object.h" ++#include "poppler/Stream.h" ++#include "poppler/Array.h" ++#include "poppler/Dict.h" ++#include "poppler/XRef.h" ++#include "poppler/Link.h" ++#include "poppler/Catalog.h" ++#include "poppler/Page.h" ++#include "poppler/GfxFont.h" ++#include "poppler/PDFDoc.h" ++#include "poppler/GlobalParams.h" ++#include "poppler/Error.h" + #include "epdf.h" + + #define one_hundred_bp 6578176 /* 7227 * 65536 / 72 */ +@@ -171,7 +170,7 @@ + pdf_doc->file_path = xstrdup(file_path); + void **aa = avl_probe(PdfDocumentTree, pdf_doc); + assert(aa != NULL); +- GString *docName = new GString(pdf_doc->file_path); ++ GooString *docName = new GooString(pdf_doc->file_path); + pdf_doc->doc = new PDFDoc(docName); // takes ownership of docName + if (!pdf_doc->doc->isOk() || !pdf_doc->doc->okToPrint()) + pdftex_fail("xpdf: reading PDF image failed"); +@@ -523,7 +522,7 @@ + int i, l, c; + Ref ref; + char *p; +- GString *s; ++ GooString *s; + if (obj->isBool()) { + pdf_printf("%s", obj->getBool()? "true" : "false"); + } else if (obj->isInt()) { +@@ -691,7 +690,7 @@ + assert(img_type(idict) == IMAGE_TYPE_PDF); + // initialize + if (isInit == gFalse) { +- globalParams = new GlobalParams(); ++ globalParams = new GlobalParams(NULL); + globalParams->setErrQuiet(gFalse); + isInit = gTrue; + } +@@ -715,7 +714,7 @@ + img_totalpages(idict) = pdf_doc->doc->getCatalog()->getNumPages(); + if (img_pagename(idict)) { + // get page by name +- GString name(img_pagename(idict)); ++ GooString name(img_pagename(idict)); + LinkDest *link = pdf_doc->doc->findDest(&name); + if (link == NULL || !link->isOk()) + pdftex_fail("PDF inclusion: invalid destination <%s>", +Index: luatex-0.25.2/src/texk/web2c/luatexdir/luatex.mk +=================================================================== +--- luatex-0.25.2.orig/src/texk/web2c/luatexdir/luatex.mk 2008-04-10 14:37:40.000000000 +0000 ++++ luatex-0.25.2/src/texk/web2c/luatexdir/luatex.mk 2008-04-15 06:30:55.000000000 +0000 +@@ -2,6 +2,9 @@ + # This fragment contains the parts of the makefile that are most likely to + # differ between releases of pdfeTeX. + ++# use libpoppler instead of included xpdf code ++ADDLDFLAGS = -lpoppler ++ + # We build luatex + luatex = @LTEX@ luatex + luatexdir = luatexdir +@@ -41,7 +44,7 @@ + + # Making luatex + luatex: luatexd.h $(luatex_o) $(luatexextra_o) $(luatexlibsdep) +- @CXXHACKLINK@ $(luatex_o) $(luatexextra_o) $(luatexlibs) $(socketlibs) @CXXHACKLDLIBS@ @CXXLDEXTRA@ ++ @CXXHACKLINK@ $(luatex_o) $(luatexextra_o) $(luatexlibs) $(socketlibs) @CXXHACKLDLIBS@ @CXXLDEXTRA@ $(ADDLDFLAGS) + + # C file dependencies. + $(luatex_c) luatexcoerce.h luatexd.h: luatex.p $(web2c_texmf) $(srcdir)/$(luatexdir)/luatex.defines $(srcdir)/$(luatexdir)/luatex.h +Index: luatex-0.25.2/src/texk/web2c/luatexdir/pdftosrc.cc +=================================================================== +--- luatex-0.25.2.orig/src/texk/web2c/luatexdir/pdftosrc.cc 2008-04-10 14:37:41.000000000 +0000 ++++ luatex-0.25.2/src/texk/web2c/luatexdir/pdftosrc.cc 2008-04-15 06:30:55.000000000 +0000 +@@ -25,22 +25,23 @@ + #include + #include + #include +-#include + #include +-#include +-#include +-#include +-#include "Object.h" +-#include "Stream.h" +-#include "Array.h" +-#include "Dict.h" +-#include "XRef.h" +-#include "Catalog.h" +-#include "Page.h" +-#include "GfxFont.h" +-#include "PDFDoc.h" +-#include "GlobalParams.h" +-#include "Error.h" ++ ++#include ++#include ++#include ++#include ++#include "poppler/Object.h" ++#include "poppler/Stream.h" ++#include "poppler/Array.h" ++#include "poppler/Dict.h" ++#include "poppler/XRef.h" ++#include "poppler/Catalog.h" ++#include "poppler/Page.h" ++#include "poppler/GfxFont.h" ++#include "poppler/PDFDoc.h" ++#include "poppler/GlobalParams.h" ++#include "poppler/Error.h" + + static XRef *xref = 0; + +@@ -48,7 +49,7 @@ + { + char *p, buf[1024]; + PDFDoc *doc; +- GString *fileName; ++ GooString *fileName; + Stream *s; + Object srcStream, srcName, catalogDict; + FILE *outfile; +@@ -62,8 +63,8 @@ + "Usage: pdftosrc []\n"); + exit(1); + } +- fileName = new GString(argv[1]); +- globalParams = new GlobalParams(); ++ fileName = new GooString(argv[1]); ++ globalParams = new GlobalParams(NULL); + doc = new PDFDoc(fileName); + if (!doc->isOk()) { + fprintf(stderr, "Invalid PDF file\n"); +Index: luatex-0.25.2/src/texk/web2c/luatexdir/utils.c +=================================================================== +--- luatex-0.25.2.orig/src/texk/web2c/luatexdir/utils.c 2008-04-10 14:37:40.000000000 +0000 ++++ luatex-0.25.2/src/texk/web2c/luatexdir/utils.c 2008-04-15 06:30:55.000000000 +0000 +@@ -40,7 +40,7 @@ + + #include "openbsd-compat.h" + #include "png.h" +-#include "xpdf/config.h" /* just to get the xpdf version */ ++#include "poppler/poppler-config.h" /* just to get the xpdf version */ + + #define check_nprintf(size_get, size_want) \ + if ((unsigned)(size_get) >= (unsigned)(size_want)) \ +@@ -1124,7 +1124,7 @@ + "This is build %d, created on %dT%06dZ\n" + "Compiled with libpng %s; using libpng %s\n" + "Compiled with zlib %s; using zlib %s\n" +- "Compiled with xpdf version %s\n", ++ "Compiled with libpoppler version %s\n", + get_build_revision(), BUILD_DATE, (BUILD_TIME-1000000), + PNG_LIBPNG_VER_STRING, png_libpng_ver, + ZLIB_VERSION, zlib_version, xpdfVersion); --- luatex-0.50.0.orig/debian/patches/ubuntu_libpoppler-0.12 +++ luatex-0.50.0/debian/patches/ubuntu_libpoppler-0.12 @@ -0,0 +1,13 @@ +Index: luatex-0.40.5/source/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.40.5.orig/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-10-17 16:32:12.000000000 +0400 ++++ luatex-0.40.5/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-10-17 16:32:12.000000000 +0400 +@@ -720,7 +720,7 @@ + // this works only for PDF 1.x -- but since any versions of PDF newer + // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will + // then have to changed drastically anyway. +- pdf_version_found = pdf_doc->doc->getPDFVersion(); ++ pdf_version_found = pdf_doc->doc->getPDFMajorVersion() + 0.1 * pdf_doc->doc->getPDFMinorVersion(); + pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1); + if (pdf_version_found > pdf_version_wanted + 0.01) { + char msg[] = --- luatex-0.50.0.orig/debian/patches/fix-opentype-loading +++ luatex-0.50.0/debian/patches/fix-opentype-loading @@ -0,0 +1,26 @@ +Fix loading of ttf/otf fonts in plain mode +patch by Pawe/l Jackowski on luatex-dev mailing list +included upstream +--- + source/texk/web2c/luatexdir/tex/texfileio.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +Index: luatex-0.45.0/source/texk/web2c/luatexdir/tex/texfileio.c +=================================================================== +--- luatex-0.45.0.orig/source/texk/web2c/luatexdir/tex/texfileio.c 2009-11-18 23:46:47.000000000 +0900 ++++ luatex-0.45.0/source/texk/web2c/luatexdir/tex/texfileio.c 2009-11-19 22:20:30.000000000 +0900 +@@ -153,6 +153,14 @@ + case find_type1_file_callback: + ftemp = kpse_find_file(s, kpse_type1_format, 0); + break; ++ case find_truetype_file_callback: ++ ftemp = kpse_find_file(s, kpse_truetype_format, 0); ++ break; ++ case find_opentype_file_callback: ++ ftemp = kpse_find_file(s, kpse_opentype_format, 0); ++ if (ftemp == NULL) ++ ftemp = kpse_find_file(s, kpse_truetype_format, 0); ++ break; + case find_ocp_file_callback: + ftemp = kpse_find_file(s, kpse_ocp_format, 0); + break; --- luatex-0.50.0.orig/debian/patches/fix-arm-buildfailure +++ luatex-0.50.0/debian/patches/fix-arm-buildfailure @@ -0,0 +1,20 @@ +fix build failure on arm, this is included in upstream already +patch comes from the maintainer of lcoco Mike Pall +--- + src/libs/lua51/lcoco.c | 3 +++ + 1 file changed, 3 insertions(+) + +Index: luatex-0.20.2/src/libs/lua51/lcoco.c +=================================================================== +--- luatex-0.20.2.orig/src/libs/lua51/lcoco.c 2007-12-20 17:46:15.000000000 +0100 ++++ luatex-0.20.2/src/libs/lua51/lcoco.c 2007-12-20 17:46:24.000000000 +0100 +@@ -286,6 +286,9 @@ + #elif defined(__arm__) || defined(__ARM__) + + #if __GLIBC__ == 2 || defined(__UCLIBC__) /* arm-linux-glibc2 */ ++#ifndef __JMP_BUF_SP ++#define __JMP_BUF_SP ((sizeof(__jmp_buf)/sizeof(int))-2) ++#endif + #define COCO_PATCHCTX(coco, buf, func, stack, a0) \ + buf->__jmpbuf[__JMP_BUF_SP+1] = (int)(func); /* pc */ \ + buf->__jmpbuf[__JMP_BUF_SP] = (int)(stack); /* sp */ \ --- luatex-0.50.0.orig/debian/patches/fix-hurd-ftbfs +++ luatex-0.50.0/debian/patches/fix-hurd-ftbfs @@ -0,0 +1,72 @@ +Fix compilation on GNU/Hurd +Patch from Pino Toscano +From his email: +currently[1] luatex does not build on GNU/Hurd. +The problem is the unconditional usage of PATH_MAX. +The attached patch solves the issue, malloc'ing the buffers as needed. +It also adds a small bit to "recognize" the GNU platform. +--- + source/texk/web2c/luatexdir/lua/loslibext.c | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +Index: luatex-0.47.0/source/texk/web2c/luatexdir/lua/loslibext.c +=================================================================== +--- luatex-0.47.0.orig/source/texk/web2c/luatexdir/lua/loslibext.c 2009-12-24 03:28:17.000000000 +0900 ++++ luatex-0.47.0/source/texk/web2c/luatexdir/lua/loslibext.c 2009-12-24 03:28:30.000000000 +0900 +@@ -81,6 +81,9 @@ + # elif defined(__MACH__) && defined(__APPLE__) + # undef OS_PLATNAME + # define OS_PLATNAME "macosx" ++# elif defined(__GNU__) ++# undef OS_PLATNAME ++# define OS_PLATNAME "gnu" + # endif + #endif + +@@ -117,7 +120,7 @@ + + static int exec_command(const char *file, char *const *argv, char *const *envp) + { +- char path[PATH_MAX]; ++ char *path; + const char *searchpath, *esp; + size_t prefixlen, filelen, totallen; + +@@ -125,6 +128,7 @@ + return execve(file, argv, envp); + + filelen = strlen(file); ++ path = NULL; + + searchpath = getenv("PATH"); + if (!searchpath) +@@ -141,14 +145,20 @@ + + if (prefixlen == 0 || searchpath[prefixlen - 1] == '/') { + totallen = prefixlen + filelen; ++#ifdef PATH_MAX + if (totallen >= PATH_MAX) + continue; ++#endif ++ path = malloc(totallen + 1); + memcpy(path, searchpath, prefixlen); + memcpy(path + prefixlen, file, filelen); + } else { + totallen = prefixlen + filelen + 1; ++#ifdef PATH_MAX + if (totallen >= PATH_MAX) + continue; ++#endif ++ path = malloc(totallen + 1); + memcpy(path, searchpath, prefixlen); + path[prefixlen] = '/'; + memcpy(path + prefixlen + 1, file, filelen); +@@ -156,6 +166,8 @@ + path[totallen] = '\0'; + + execve(path, argv, envp); ++ free(path); ++ path = NULL; + if (errno == E2BIG || errno == ENOEXEC || + errno == ENOMEM || errno == ETXTBSY) + break; /* Report this as an error, no more search */ --- luatex-0.50.0.orig/debian/patches/libpoppler-0.5 +++ luatex-0.50.0/debian/patches/libpoppler-0.5 @@ -0,0 +1,330 @@ +libpoppler-0.5 + +adaption of the texlive 30_libpoppler_new patch to compile luatex with +the new libpoppler 0.5 + + src/configure | 6 +-- + src/configure.in | 8 ++-- + src/texk/web2c/luatexdir/Makefile.in | 2 - + src/texk/web2c/luatexdir/image/pdftoepdf.cc | 53 +++++++++++++--------------- + src/texk/web2c/luatexdir/luatex.mk | 5 ++ + src/texk/web2c/luatexdir/luatexextra.in | 2 - + src/texk/web2c/luatexdir/pdftosrc.cc | 40 +++++++++++---------- + src/texk/web2c/luatexdir/utils.c | 4 +- + 8 files changed, 62 insertions(+), 58 deletions(-) + +Index: luatex-0.15/src/configure +=================================================================== +--- luatex-0.15.orig/src/configure 2007-10-29 09:49:19.000000000 +0100 ++++ luatex-0.15/src/configure 2007-10-30 07:38:52.000000000 +0100 +@@ -3450,9 +3450,9 @@ + + # we need libxpdf for pdf[ex]tex, xetex + test ! -d $srcdir/$LIBXPDFDIR && : ${needs_libxpdf=no} +-test "$with_pdftex" != no && : ${needs_libxpdf=yes} +-test "$with_pdfetex" != no && : ${needs_libxpdf=yes} +-test "$with_xetex" != no && : ${needs_libxpdf=yes} ++test "$with_pdftex" != no && : ${needs_libxpdf=no} ++test "$with_pdfetex" != no && : ${needs_libxpdf=no} ++test "$with_xetex" != no && : ${needs_libxpdf=no} + : ${needs_libxpdf=no} + export needs_libxpdf + +Index: luatex-0.15/src/configure.in +=================================================================== +--- luatex-0.15.orig/src/configure.in 2007-10-29 09:49:19.000000000 +0100 ++++ luatex-0.15/src/configure.in 2007-10-30 07:38:52.000000000 +0100 +@@ -157,9 +157,9 @@ + + # we need libxpdf for pdf[ex]tex, xetex + test ! -d $srcdir/$LIBXPDFDIR && : ${needs_libxpdf=no} +-test "$with_pdftex" != no && : ${needs_libxpdf=yes} +-test "$with_pdfetex" != no && : ${needs_libxpdf=yes} +-test "$with_xetex" != no && : ${needs_libxpdf=yes} ++test "$with_pdftex" != no && : ${needs_libxpdf=no} ++test "$with_pdfetex" != no && : ${needs_libxpdf=no} ++test "$with_xetex" != no && : ${needs_libxpdf=no} + : ${needs_libxpdf=no} + export needs_libxpdf + +@@ -207,7 +207,7 @@ + sinclude(libs/libpng/libpng.ac) + sinclude(libs/zlib/zlib.ac) + sinclude(libs/ncurses/ncurses.ac) +-sinclude(libs/xpdf/libxpdf.ac) ++#sinclude(libs/xpdf/libxpdf.ac) + sinclude(libs/t1lib/t1lib.ac) + sinclude(libs/gd/gd.ac) + sinclude(libs/freetype/freetype.ac) +Index: luatex-0.15/src/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.15.orig/src/texk/web2c/luatexdir/image/pdftoepdf.cc 2007-10-29 09:49:11.000000000 +0100 ++++ luatex-0.15/src/texk/web2c/luatexdir/image/pdftoepdf.cc 2007-10-30 07:38:52.000000000 +0100 +@@ -26,25 +26,24 @@ + #include + #include + #include +-#include +-#include +-#include +-#include +-#include + #include +-#include "Object.h" +-#include "Stream.h" +-#include "Array.h" +-#include "Dict.h" +-#include "XRef.h" +-#include "Catalog.h" +-#include "Link.h" +-#include "Page.h" +-#include "GfxFont.h" +-#include "PDFDoc.h" +-#include "GlobalParams.h" +-#include "Error.h" +- ++#include ++#include ++#include ++#include ++#include ++#include "poppler/Object.h" ++#include "poppler/Stream.h" ++#include "poppler/Array.h" ++#include "poppler/Dict.h" ++#include "poppler/XRef.h" ++#include "poppler/Link.h" ++#include "poppler/Catalog.h" ++#include "poppler/Page.h" ++#include "poppler/GfxFont.h" ++#include "poppler/PDFDoc.h" ++#include "poppler/GlobalParams.h" ++#include "poppler/Error.h" + #include "epdf.h" + + // This file is mostly C and not very much C++; it's just used to interface +@@ -169,7 +168,7 @@ + fprintf(stderr, "\npdfTeX Debug: Creating %s (%d)\n", p->file_name, + p->occurences); + #endif +- GString *docName = new GString(p->file_name); ++ GooString *docName = new GooString(p->file_name); + p->doc = new PDFDoc(docName); // takes ownership of docName + if (!p->doc->isOk() || !p->doc->okToPrint()) { + pdftex_fail("xpdf: reading PDF image failed"); +@@ -212,7 +211,7 @@ + obj->initDict(xref); + for (int i = 0, l = dict->getLength(); i < l; i++) { + Object obj1; +- obj->dictAdd(copyString(dict->getKey(i)), dict->getValNF(i, &obj1)); ++ obj->dictAdd(*(new UGooString (*dict->getKey(i))), dict->getValNF(i, &obj1)); + } + } + +@@ -291,7 +290,7 @@ + static void copyDictEntry(Object * obj, int i) + { + PdfObject obj1; +- copyName(obj->dictGetKey(i)); ++ copyName(obj->dictGetKey(i)->getCString()); + pdf_puts(" "); + obj->dictGetValNF(i, &obj1); + copyObject(&obj1); +@@ -318,7 +317,7 @@ + pdf_puts("<<\n"); + assert(r->type == objFont); // FontDescriptor is in fd_tree + for (i = 0, l = obj->dictGetLength(); i < l; ++i) { +- key = obj->dictGetKey(i); ++ key = obj->dictGetKey(i)->getCString(); + if (strncmp("FontDescriptor", key, strlen("FontDescriptor")) == 0 + || strncmp("BaseFont", key, strlen("BaseFont")) == 0 + || strncmp("Encoding", key, strlen("Encoding")) == 0) +@@ -425,7 +424,7 @@ + for (i = 0, l = obj->dictGetLength(); i < l; ++i) { + obj->dictGetValNF(i, &fontRef); + if (fontRef->isRef()) +- copyFont(obj->dictGetKey(i), &fontRef); ++ copyFont(obj->dictGetKey(i)->getCString(), &fontRef); + else + pdftex_fail("PDF inclusion: invalid font in reference type <%s>", + fontRef->getTypeName()); +@@ -512,7 +511,7 @@ + int i, l, c; + Ref ref; + char *p; +- GString *s; ++ GooString *s; + if (obj->isBool()) { + pdf_printf("%s", obj->getBool()? "true" : "false"); + } else if (obj->isInt()) { +@@ -678,7 +677,7 @@ + float pdf_version_found, pdf_version_wanted; + // initialize + if (!isInit) { +- globalParams = new GlobalParams(); ++ globalParams = new GlobalParams(NULL); + globalParams->setErrQuiet(gFalse); + isInit = gTrue; + } +@@ -704,7 +703,7 @@ + epdf_num_pages = pdf_doc->doc->getCatalog()->getNumPages(); + if (page_name) { + // get page by name +- GString name(page_name); ++ UGooString name(page_name); + LinkDest *link = pdf_doc->doc->findDest(&name); + if (link == 0 || !link->isOk()) + pdftex_fail("PDF inclusion: invalid destination <%s>", page_name); +@@ -925,7 +924,7 @@ + pdf_puts("/Resources <<\n"); + for (i = 0, l = obj1->dictGetLength(); i < l; ++i) { + obj1->dictGetVal(i, &obj2); +- key = obj1->dictGetKey(i); ++ key = obj1->dictGetKey(i)->getCString(); + if (strcmp("Font", key) == 0) + copyFontResources(&obj2); + else if (strcmp("ProcSet", key) == 0) +Index: luatex-0.15/src/texk/web2c/luatexdir/luatexextra.in +=================================================================== +--- luatex-0.15.orig/src/texk/web2c/luatexdir/luatexextra.in 2007-10-29 09:49:14.000000000 +0100 ++++ luatex-0.15/src/texk/web2c/luatexdir/luatexextra.in 2007-10-30 07:38:52.000000000 +0100 +@@ -26,7 +26,7 @@ + (generated from ../lib/texmfmp.c). + */ + +-#define BANNER "This is luaTeX, Version 3.141592-LUATEX-VERSION-ETEX-VERSION" ++#define BANNER "This is luaTeX using libpoppler, Version 3.141592-LUATEX-VERSION-ETEX-VERSION" + #define COPYRIGHT_HOLDER "Taco Hoekwater" + #define AUTHOR NULL + #define PROGRAM_HELP LUATEXHELP +Index: luatex-0.15/src/texk/web2c/luatexdir/luatex.mk +=================================================================== +--- luatex-0.15.orig/src/texk/web2c/luatexdir/luatex.mk 2007-10-29 09:49:14.000000000 +0100 ++++ luatex-0.15/src/texk/web2c/luatexdir/luatex.mk 2007-10-30 07:38:52.000000000 +0100 +@@ -2,6 +2,9 @@ + # This fragment contains the parts of the makefile that are most likely to + # differ between releases of pdfeTeX. + ++# use libpoppler instead of included xpdf code ++ADDLDFLAGS = -lpoppler ++ + # We build luatex + luatex = @LTEX@ luatex + luatexdir = luatexdir +@@ -30,7 +33,7 @@ + + # Making luatex + luatex: luatexd.h $(luatex_o) $(luatexextra_o) $(luatexlibsdep) +- @CXXHACKLINK@ $(luatex_o) $(luatexextra_o) $(luatexlibs) $(socketlibs) @CXXHACKLDLIBS@ @CXXLDEXTRA@ ++ @CXXHACKLINK@ $(luatex_o) $(luatexextra_o) $(luatexlibs) $(socketlibs) @CXXHACKLDLIBS@ @CXXLDEXTRA@ $(ADDLDFLAGS) + + # C file dependencies. + $(luatex_c) luatexcoerce.h luatexd.h: luatex.p $(web2c_texmf) $(srcdir)/$(luatexdir)/luatex.defines $(srcdir)/$(luatexdir)/luatex.h +Index: luatex-0.15/src/texk/web2c/luatexdir/Makefile.in +=================================================================== +--- luatex-0.15.orig/src/texk/web2c/luatexdir/Makefile.in 2007-10-29 09:49:14.000000000 +0100 ++++ luatex-0.15/src/texk/web2c/luatexdir/Makefile.in 2007-10-30 07:38:52.000000000 +0100 +@@ -8,7 +8,7 @@ + kpathsea_srcdir_parent = $(srcdir)/../.. + kpathsea_dir_parent = ../.. + +-ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) -I. -I$(srcdir) -I$(kpathsea_dir_parent) -I$(kpathsea_srcdir_parent) @LIBXPDFCPPFLAGS@ -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. -I$(LIBOBSDCOMPATFSRCDIR) -I$(LIBOBSDCOMPATFSRCDIR)/.. ++ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) -I. -I$(srcdir) -I$(kpathsea_dir_parent) -I$(kpathsea_srcdir_parent) -I/usr/include/poppler -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. -I$(LIBOBSDCOMPATFSRCDIR) -I$(LIBOBSDCOMPATFSRCDIR)/.. + CXX = @CXX@ + + .SUFFIXES: .cc .o +Index: luatex-0.15/src/texk/web2c/luatexdir/pdftosrc.cc +=================================================================== +--- luatex-0.15.orig/src/texk/web2c/luatexdir/pdftosrc.cc 2007-10-29 09:49:14.000000000 +0100 ++++ luatex-0.15/src/texk/web2c/luatexdir/pdftosrc.cc 2007-10-30 07:38:52.000000000 +0100 +@@ -25,22 +25,24 @@ + #include + #include + #include +-#include + #include +-#include +-#include +-#include +-#include "Object.h" +-#include "Stream.h" +-#include "Array.h" +-#include "Dict.h" +-#include "XRef.h" +-#include "Catalog.h" +-#include "Page.h" +-#include "GfxFont.h" +-#include "PDFDoc.h" +-#include "GlobalParams.h" +-#include "Error.h" ++ ++#include ++#include ++#include ++#include ++#include "poppler/Object.h" ++#include "poppler/UGooString.h" ++#include "poppler/Stream.h" ++#include "poppler/Array.h" ++#include "poppler/Dict.h" ++#include "poppler/XRef.h" ++#include "poppler/Catalog.h" ++#include "poppler/Page.h" ++#include "poppler/GfxFont.h" ++#include "poppler/PDFDoc.h" ++#include "poppler/GlobalParams.h" ++#include "poppler/Error.h" + + static XRef *xref = 0; + +@@ -48,7 +50,7 @@ + { + char *p, buf[1024]; + PDFDoc *doc; +- GString *fileName; ++ GooString *fileName; + Stream *s; + Object srcStream, srcName, catalogDict; + FILE *outfile; +@@ -62,8 +64,8 @@ + "Usage: pdftosrc []\n"); + exit(1); + } +- fileName = new GString(argv[1]); +- globalParams = new GlobalParams(); ++ fileName = new GooString(argv[1]); ++ globalParams = new GlobalParams(NULL); + doc = new PDFDoc(fileName); + if (!doc->isOk()) { + fprintf(stderr, "Invalid PDF file\n"); +@@ -83,7 +85,7 @@ + } + srcStream.initNull(); + if (objnum == 0) { +- catalogDict.dictLookup("SourceObject", &srcStream); ++ catalogDict.dictLookup(UGooString("SourceObject"), &srcStream); + if (!srcStream.isStream("SourceFile")) { + fprintf(stderr, "No SourceObject found\n"); + exit(1); +Index: luatex-0.15/src/texk/web2c/luatexdir/utils.c +=================================================================== +--- luatex-0.15.orig/src/texk/web2c/luatexdir/utils.c 2007-10-29 09:49:14.000000000 +0100 ++++ luatex-0.15/src/texk/web2c/luatexdir/utils.c 2007-10-30 07:39:33.000000000 +0100 +@@ -40,7 +40,7 @@ + + #include "openbsd-compat.h" + #include "png.h" +-#include "xpdf/config.h" /* just to get the xpdf version */ ++#include "poppler/poppler-config.h" /* just to get the xpdf version */ + + #define check_nprintf(size_get, size_want) \ + if ((unsigned)(size_get) >= (unsigned)(size_want)) \ +@@ -1126,7 +1126,7 @@ + "This is build %d, created on %dT%dZ\n" + "Compiled with libpng %s; using libpng %s\n" + "Compiled with zlib %s; using zlib %s\n" +- "Compiled with xpdf version %s\n", ++ "Compiled with libpoppler version %s\n", + get_build_revision(), BUILD_DATE, BUILD_TIME, + PNG_LIBPNG_VER_STRING, png_libpng_ver, + ZLIB_VERSION, zlib_version, xpdfVersion); --- luatex-0.50.0.orig/debian/patches/ubuntu_libpoppler-0.11 +++ luatex-0.50.0/debian/patches/ubuntu_libpoppler-0.11 @@ -0,0 +1,19 @@ +Fix a FTBFS with libpoppler 0.11: the destructor of GfxFont is virtual, and it doesn't make sense to call it. +Taken from Ubuntu +--- + source/texk/web2c/luatexdir/image/pdftoepdf.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: luatex-0.47.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.47.0.orig/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-12-18 18:37:54.000000000 +0900 ++++ luatex-0.47.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-12-19 18:26:42.000000000 +0900 +@@ -703,7 +703,7 @@ + } + for (r = encodingList; r != NULL; r = n) { + n = r->next; +- delete r->font; ++// delete r->font; + delete r; + } + } --- luatex-0.50.0.orig/debian/patches/build-script +++ luatex-0.50.0/debian/patches/build-script @@ -0,0 +1,30 @@ +patch the build script to use system libraries and +build without X +--- + build.sh | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +Index: luatex-0.47.0/build.sh +=================================================================== +--- luatex-0.47.0.orig/build.sh 2009-12-18 18:38:17.000000000 +0900 ++++ luatex-0.47.0/build.sh 2009-12-19 18:26:34.000000000 +0900 +@@ -158,12 +158,14 @@ + --disable-xdv2pdf \ + --disable-xdvipdfmx \ + --without-system-kpathsea \ +- --without-system-freetype2 \ +- --without-system-gd \ +- --without-system-libpng \ ++ --with-system-freetype2 \ ++ --with-freetype2-include=/usr/include/freetype2 \ ++ --with-system-gd \ ++ --with-system-libpng \ + --without-system-teckit \ +- --without-system-zlib \ +- --without-system-t1lib \ ++ --with-system-zlib \ ++ --with-system-t1lib \ ++ --with-system-xpdf \ + --disable-shared \ + --disable-largefile \ + --disable-ipc \ --- luatex-0.50.0.orig/debian/patches/libpoppler-0.12 +++ luatex-0.50.0/debian/patches/libpoppler-0.12 @@ -0,0 +1,47 @@ +fix luatex for libpoppler 0.12 +patch by Ilya Barygin +licensed under GPLv2, see <20091022102009.208b5935@corner> on +debian-tex-maint Debian mailing list +--- + source/texk/web2c/luatexdir/image/pdftoepdf.cc | 18 +++++++++++------- + 1 file changed, 11 insertions(+), 7 deletions(-) + +Index: luatex-0.47.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.47.0.orig/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-12-19 18:26:42.000000000 +0900 ++++ luatex-0.47.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-12-19 18:26:49.000000000 +0900 +@@ -771,7 +771,8 @@ + int rotate; + char *checksum; + PDFRectangle *pagebox; +- float pdf_version_found, pdf_version_wanted, xsize, ysize, xorig, yorig; ++ unsigned major_pdf_version_found, minor_pdf_version_found; ++ float xsize, ysize, xorig, yorig; + assert(idict != NULL); + assert(img_type(idict) == IMG_TYPE_PDF); + assert(readtype == IMG_CLOSEINBETWEEN); // only this is implemented +@@ -794,15 +795,18 @@ + // this works only for PDF 1.x -- but since any versions of PDF newer + // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will + // then have to changed drastically anyway. +- pdf_version_found = pdf_doc->doc->getPDFVersion(); +- pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1); +- if (pdf_version_found > pdf_version_wanted + 0.01) { ++ major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion(); ++ minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion(); ++ if (major_pdf_version_found > 1 || ++ (major_pdf_version_found == 1 && ++ minor_pdf_version_found > minor_pdf_version_wanted) ++ ) { + char msg[] = +- "PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed"; ++ "PDF inclusion: found PDF version <%u.%u>, but at most version <1.%i> allowed"; + if (pdf_inclusion_errorlevel > 0) { +- pdftex_fail(msg, pdf_version_found, pdf_version_wanted); ++ pdftex_fail(msg, major_pdf_version_found, minor_pdf_version_found, minor_pdf_version_wanted); + } else { +- pdftex_warn(msg, pdf_version_found, pdf_version_wanted); ++ pdftex_warn(msg, major_pdf_version_found, minor_pdf_version_found, minor_pdf_version_wanted); + } + } + img_totalpages(idict) = pdf_doc->doc->getCatalog()->getNumPages(); --- luatex-0.50.0.orig/debian/patches/system-libpng +++ luatex-0.50.0/debian/patches/system-libpng @@ -0,0 +1,18 @@ +one small thing to make luatex compile with the system libpng +--- + source/texk/web2c/luatexdir/image/image.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: luatex-0.39.0/source/texk/web2c/luatexdir/image/image.h +=================================================================== +--- luatex-0.39.0.orig/source/texk/web2c/luatexdir/image/image.h 2009-04-16 18:07:17.000000000 +0200 ++++ luatex-0.39.0/source/texk/web2c/luatexdir/image/image.h 2009-04-16 18:13:11.000000000 +0200 +@@ -23,7 +23,7 @@ + #ifndef IMAGE_H + # define IMAGE_H + +-# include <../libpng/png.h> ++# include + + # define JPG_UINT16 unsigned int + # define JPG_UINT32 unsigned long --- luatex-0.50.0.orig/debian/patches/libpoppler-0.10 +++ luatex-0.50.0/debian/patches/libpoppler-0.10 @@ -0,0 +1,185 @@ +libpoppler-0.10 + +making luatex compile with libpoppler 0.10 release line + + source/configure | 6 +-- + source/texk/web2c/Makefile.in | 10 +++--- + source/texk/web2c/luatexdir/image/pdftoepdf.cc | 39 ++++++++++++------------- + source/texk/web2c/luatexdir/luatexextra.in | 2 - + source/texk/web2c/luatexdir/utils/utils.c | 6 +-- + 5 files changed, 33 insertions(+), 30 deletions(-) + +Index: luatex-0.40.0/source/configure +=================================================================== +--- luatex-0.40.0.orig/source/configure 2009-04-22 12:06:12.000000000 +0200 ++++ luatex-0.40.0/source/configure 2009-04-22 21:47:49.000000000 +0200 +@@ -2388,7 +2388,7 @@ + esac + + test "x$enable_web2c:$enable_pdftex" = xyes:yes && { +- need_xpdf=yes ++ need_xpdf=no + need_libpng=yes + need_obsdcompat=yes + } +@@ -2402,7 +2402,7 @@ + esac + + test "x$enable_web2c:$enable_luatex" = xyes:yes && { +- need_xpdf=yes ++ need_xpdf=no + need_libpng=yes + need_obsdcompat=yes + } +@@ -2416,7 +2416,7 @@ + esac + + test "x$enable_web2c:$enable_xetex" = xyes:yes && { +- need_xpdf=yes ++ need_xpdf=no + need_libpng=yes + need_freetype2=yes + need_icu=yes +Index: luatex-0.40.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.40.0.orig/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-04-22 12:05:46.000000000 +0200 ++++ luatex-0.40.0/source/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-04-22 21:46:46.000000000 +0200 +@@ -24,23 +24,24 @@ + #include + #include + #include +-#include +-#include +-#include +-#include + #include +-#include "Object.h" +-#include "Stream.h" +-#include "Array.h" +-#include "Dict.h" +-#include "XRef.h" +-#include "Catalog.h" +-#include "Link.h" +-#include "Page.h" +-#include "GfxFont.h" +-#include "PDFDoc.h" +-#include "GlobalParams.h" +-#include "Error.h" ++#include ++#include ++#include ++#include ++#include ++#include "poppler/Object.h" ++#include "poppler/Stream.h" ++#include "poppler/Array.h" ++#include "poppler/Dict.h" ++#include "poppler/XRef.h" ++#include "poppler/Link.h" ++#include "poppler/Catalog.h" ++#include "poppler/Page.h" ++#include "poppler/GfxFont.h" ++#include "poppler/PDFDoc.h" ++#include "poppler/GlobalParams.h" ++#include "poppler/Error.h" + + #include "epdf.h" + +@@ -163,7 +164,7 @@ + pdf_doc->file_path = xstrdup(file_path); + void **aa = avl_probe(PdfDocumentTree, pdf_doc); + assert(aa != NULL); +- GString *docName = new GString(pdf_doc->file_path); ++ GooString *docName = new GooString(pdf_doc->file_path); + pdf_doc->doc = new PDFDoc(docName); // takes ownership of docName + if (!pdf_doc->doc->isOk() || !pdf_doc->doc->okToPrint()) + pdftex_fail("xpdf: reading PDF image failed"); +@@ -533,7 +534,7 @@ + int i, l, c; + Ref ref; + char *p; +- GString *s; ++ GooString *s; + if (obj->isBool()) { + pdf_printf("%s", obj->getBool()? "true" : "false"); + } else if (obj->isInt()) { +@@ -725,7 +726,7 @@ + img_totalpages(idict) = pdf_doc->doc->getCatalog()->getNumPages(); + if (img_pagename(idict)) { + // get page by name +- GString name(img_pagename(idict)); ++ GooString name(img_pagename(idict)); + LinkDest *link = pdf_doc->doc->findDest(&name); + if (link == NULL || !link->isOk()) + pdftex_fail("PDF inclusion: invalid destination <%s>", +Index: luatex-0.40.0/source/texk/web2c/luatexdir/luatexextra.in +=================================================================== +--- luatex-0.40.0.orig/source/texk/web2c/luatexdir/luatexextra.in 2009-04-22 12:06:07.000000000 +0200 ++++ luatex-0.40.0/source/texk/web2c/luatexdir/luatexextra.in 2009-04-22 21:46:46.000000000 +0200 +@@ -25,7 +25,7 @@ + (generated from ../lib/texmfmp.c). + */ + +-#define BANNER "This is LuaTeX, Version LUATEX-VERSION" ++#define BANNER "This is LuaTeX using libpoppler, Version LUATEX-VERSION" + #define COPYRIGHT_HOLDER "Taco Hoekwater" + #define AUTHOR NULL + #define PROGRAM_HELP LUATEXHELP +Index: luatex-0.40.0/source/texk/web2c/luatexdir/utils/utils.c +=================================================================== +--- luatex-0.40.0.orig/source/texk/web2c/luatexdir/utils/utils.c 2009-04-22 12:06:01.000000000 +0200 ++++ luatex-0.40.0/source/texk/web2c/luatexdir/utils/utils.c 2009-04-22 21:46:46.000000000 +0200 +@@ -40,7 +40,7 @@ + #include "ptexlib.h" + + #include "png.h" +-#include "xpdf/config.h" /* just to get the xpdf version */ ++#include "poppler/poppler-config.h" /* just to get the xpdf version */ + + static const char __svn_version[] = + "$Id: utils.c 2329 2009-04-18 14:25:30Z hhenkel $ " +@@ -1125,9 +1125,9 @@ + (void) asprintf(versions, + "Compiled with libpng %s; using libpng %s\n" + "Compiled with zlib %s; using zlib %s\n" +- "Compiled with xpdf version %s\n", ++ "Compiled with poppler version %s\n", + PNG_LIBPNG_VER_STRING, png_libpng_ver, +- ZLIB_VERSION, zlib_version, xpdfVersion); ++ ZLIB_VERSION, zlib_version, POPPLERVERSION); + } + + /*************************************************/ +Index: luatex-0.40.0/source/texk/web2c/Makefile.in +=================================================================== +--- luatex-0.40.0.orig/source/texk/web2c/Makefile.in 2009-04-22 14:15:38.000000000 +0200 ++++ luatex-0.40.0/source/texk/web2c/Makefile.in 2009-04-22 21:48:48.000000000 +0200 +@@ -913,10 +913,10 @@ + -I$(srcdir)/mplibdir -Dextra_version_info=`date +-%Y%m%d%H` + luatex_ldadd = libluatex.a libff.a libluamisc.a libzzip.a \ + libluasocket.a liblua51.a $(LIBPNG_LIBS) $(ZLIB_LIBS) \ +- $(XPDF_LIBS) $(OBSDCOMPAT_LIBS) libmd5.a libmplib.a ++ -lpoppler $(OBSDCOMPAT_LIBS) libmd5.a libmplib.a + luatex_LDADD = $(luatex_ldadd) $(LDADD) $(socketlibs) + luatex_DEPENDENCIES = $(proglib) libluatex.a $(LIBPNG_DEPEND) \ +- $(ZLIB_DEPEND) $(XPDF_DEPEND) $(OBSDCOMPAT_DEPEND) libmd5.a \ ++ $(ZLIB_DEPEND) $(OBSDCOMPAT_DEPEND) libmd5.a \ + libmplib.a + luatex_c_h = luatexini.c luatex0.c luatexcoerce.h luatexd.h + nodist_luatex_SOURCES = $(luatex_c_h) luatex-pool.c luatexextra.c luatexdir/luatexextra.h +@@ -1191,11 +1191,13 @@ + luatexdir/luafontloader/src/ffdummies.c \ + luatexdir/luafontloader/src/luafflib.c + ++POPPLERVERSION=`pkg-config --modversion poppler` ++ + libluatex_a_DEPENDENCIES = libff.a + libluatex_a_CPPFLAGS = $(ZLIB_INCLUDES) $(LIBPNG_INCLUDES) \ +- $(XPDF_INCLUDES) $(OBSDCOMPAT_INCLUDES) -I$(srcdir)/libmd5 \ ++ -I/usr/include/poppler $(OBSDCOMPAT_INCLUDES) -I$(srcdir)/libmd5 \ + -Iluatexdir -I$(srcdir)/luatexdir -I$(srcdir)/luatexdir/lua51 \ +- -DpdfTeX ++ -DpdfTeX -DPOPPLERVERSION=\"$(POPPLERVERSION)\" + libluatex_a_SOURCES = \ + luatexdir/commands.h \ + luatexdir/font/dofont.c \ --- luatex-0.50.0.orig/debian/patches/system-zlib-build-fixes +++ luatex-0.50.0/debian/patches/system-zlib-build-fixes @@ -0,0 +1,55 @@ +--- + src/texk/web2c/luatexdir/luatexlib.mk | 24 ++++-------------------- + 1 file changed, 4 insertions(+), 20 deletions(-) + +Index: luatex-0.10.2/src/texk/web2c/luatexdir/luatexlib.mk +=================================================================== +--- luatex-0.10.2.orig/src/texk/web2c/luatexdir/luatexlib.mk 2007-08-14 10:32:18.000000000 +0200 ++++ luatex-0.10.2/src/texk/web2c/luatexdir/luatexlib.mk 2007-08-14 10:32:31.000000000 +0200 +@@ -113,18 +113,6 @@ + + # zziplib + +-# zziplib is a configuration nightmare, because it is so stubborn +-# about using a pre-installed zlib. configure and make have to +-# be fooled in two different ways. +-# - configure needs to find +-# the subdirs 'include' and 'lib' in the --with-zlib prefix, +-# and these need to contain the proper headers and libraries. +-# - make needs to find the right headers using an -I via CPPFLAGS, +-# because the zlib path is relative and can't be found otherwise. +-# +-# final trickyness: configure writes a Makefile in the source +-# directory. it is needed by anything, so I delete it right away +- + zzipretarget= + + ifeq ($(target),i386-mingw32) +@@ -135,23 +123,19 @@ + ZZIPLIBDIR=../../libs/zziplib + ZZIPLIBSRCDIR=$(srcdir)/$(ZZIPLIBDIR) + ZZIPLIBDEP = $(ZZIPLIBDIR)/zzip/.libs/libzzip.a ++ZIPZIPINC = -I$(ZLIBSRCDIR) + + $(ZZIPLIBDEP): $(ZZIPLIBSRCDIR) + mkdir -p $(ZZIPLIBDIR) && cd $(ZZIPLIBDIR) && \ +- mkdir -p zlib/include && cp $(ZLIBSRCDIR)/*.h zlib/include && \ +- mkdir -p zlib/lib && cp $(ZLIBDIR)/*.a zlib/lib && \ +- env CPPFLAGS=-I../zlib/include $(ZZIPLIBSRCDIR)/configure --with-zlib=zlib \ +- --srcdir=$(ZZIPLIBSRCDIR) --disable-builddir --disable-shared $(zzipretarget) && \ +- rm $(ZZIPLIBSRCDIR)/Makefile && \ +- cd $(ZZIPLIBDIR)/zzip && \ +- $(MAKE) $(common_makeargs) libzzip.la ++ cp -R $(ZZIPLIBSRCDIR)/* . && \ ++ env CPPFLAGS=$(ZIPZIPINC) ./configure --disable-builddir --disable-shared $(zzipretarget) && cd $(ZZIPLIBDIR)/zzip && $(MAKE) $(common_makeargs) libzzip.la + + # luazip + + LUAZIPDIR=../../libs/luazip + LUAZIPSRCDIR=$(srcdir)/$(LUAZIPDIR) + LUAZIPDEP=$(LUAZIPDIR)/src/luazip.o +-LUAZIPINC=-I../../lua51 -I../$(ZZIPLIBSRCDIR) -I../$(ZZIPLIBDIR) ++LUAZIPINC=-I../../lua51 -I../../zziplib + + $(LUAZIPDEP): $(LUAZIPDIR)/src/luazip.c + mkdir -p $(LUAZIPDIR) && cd $(LUAZIPDIR) && cp -R $(LUAZIPSRCDIR)/* . && \ --- luatex-0.50.0.orig/debian/patches/series +++ luatex-0.50.0/debian/patches/series @@ -0,0 +1,20 @@ +build-script +#system-zlib-build-fixes +# for etch backport +#libpoppler-0.4 +# for old unstable +#libpoppler-0.5 +# for lenny and 0.8 +#libpoppler-0.6 +# for current unstable 0.10 +#libpoppler-0.10 +#zlib-version-check-fix +#system-libpng +#texdoclua-fix +#fix-arm-buildfailure +#fix-pwd-inclusion +#ubuntu_libpoppler-0.11 +libpoppler-0.12 +#fix-opentype-loading +#upstream-fixes +#fix-hurd-ftbfs --- luatex-0.50.0.orig/debian/patches/fix-pwd-inclusion +++ luatex-0.50.0/debian/patches/fix-pwd-inclusion @@ -0,0 +1,87 @@ +fix implicite pointer conversion in getpwnam() +fix from upstream subversion repository rev 1279 +--- + src/texk/kpathsea/pwd.h | 18 ------------------ + src/texk/kpathsea/pwd_nt.h | 20 ++++++++++++++++++++ + src/texk/kpathsea/tilde.c | 4 ++++ + src/texk/kpathsea/user.c | 2 +- + 4 files changed, 25 insertions(+), 19 deletions(-) + +Index: luatex-0.25.3/src/texk/kpathsea/pwd.h +=================================================================== +--- luatex-0.25.3.orig/src/texk/kpathsea/pwd.h 2008-05-28 16:24:26.000000000 +0200 ++++ /dev/null 1970-01-01 00:00:00.000000000 +0000 +@@ -1,18 +0,0 @@ +-#ifndef _PWD_H_ +-#define _PWD_H_ +-/* +- * pwd.h doesn't exist on NT, so we put together our own. +- */ +- +-struct passwd { +- char *pw_name; +- char *pw_passwd; +- int pw_uid; +- int pw_gid; +- int pw_quota; +- char *pw_gecos; +- char *pw_dir; +- char *pw_shell; +-}; +- +-#endif /* _PWD_H_ */ +Index: luatex-0.25.3/src/texk/kpathsea/pwd_nt.h +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ luatex-0.25.3/src/texk/kpathsea/pwd_nt.h 2008-05-28 16:24:49.000000000 +0200 +@@ -0,0 +1,20 @@ ++#ifndef _PWD_H_ ++#define _PWD_H_ ++/* ++ * pwd.h doesn't exist on NT, so we put together our own. ++ */ ++ ++struct passwd { ++ char *pw_name; ++ char *pw_passwd; ++ int pw_uid; ++ int pw_gid; ++ int pw_quota; ++ char *pw_gecos; ++ char *pw_dir; ++ char *pw_shell; ++}; ++ ++struct passwd * getpwnam (const char *name); ++ ++#endif /* _PWD_H_ */ +Index: luatex-0.25.3/src/texk/kpathsea/tilde.c +=================================================================== +--- luatex-0.25.3.orig/src/texk/kpathsea/tilde.c 2008-05-28 16:24:42.000000000 +0200 ++++ luatex-0.25.3/src/texk/kpathsea/tilde.c 2008-05-28 16:24:49.000000000 +0200 +@@ -25,8 +25,12 @@ + #include + + #ifdef HAVE_PWD_H ++#ifdef _WIN32 ++#include ++#else + #include + #endif ++#endif + + + /* If NAME has a leading ~ or ~user, Unix-style, expand it to the user's +Index: luatex-0.25.3/src/texk/kpathsea/user.c +=================================================================== +--- luatex-0.25.3.orig/src/texk/kpathsea/user.c 2008-05-28 16:24:31.000000000 +0200 ++++ luatex-0.25.3/src/texk/kpathsea/user.c 2008-05-28 16:24:49.000000000 +0200 +@@ -29,7 +29,7 @@ + + /* Emulate getpwuid, getpwnam and others. */ + +-#include ++#include + #include + #include + #include --- luatex-0.50.0.orig/debian/patches/zlib-version-check-fix +++ luatex-0.50.0/debian/patches/zlib-version-check-fix @@ -0,0 +1,19 @@ +compare only the first 5 chars of zlibVersion and ZLIB_VERSION since the former +gives 1.3.3, while the later 1.3.3.2 +--- + src/libs/luazlib/lzlib.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: luatex-0.10.1/src/libs/luazlib/lzlib.c +=================================================================== +--- luatex-0.10.1.orig/src/libs/luazlib/lzlib.c 2007-08-06 17:38:12.000000000 +0200 ++++ luatex-0.10.1/src/libs/luazlib/lzlib.c 2007-08-06 17:38:33.000000000 +0200 +@@ -552,7 +552,7 @@ + + /* make sure header and library version are consistent */ + const char* version = zlibVersion(); +- if (strcmp(version, ZLIB_VERSION)) ++ if (strncmp(version, ZLIB_VERSION, 5)) + { + lua_pushfstring(L, "zlib library version does not match - header: %s, library: %s", ZLIB_VERSION, version); + lua_error(L); --- luatex-0.50.0.orig/debian/patches/upstream-fixes +++ luatex-0.50.0/debian/patches/upstream-fixes @@ -0,0 +1,40 @@ +--- + source/texk/web2c/luatexdir/pdf/pdfcolorstack.c | 4 ++-- + source/texk/web2c/luatexdir/tex/texnodes.c | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +Index: luatex-0.47.0/source/texk/web2c/luatexdir/pdf/pdfcolorstack.c +=================================================================== +--- luatex-0.47.0.orig/source/texk/web2c/luatexdir/pdf/pdfcolorstack.c 2009-12-21 07:29:01.000000000 +0900 ++++ luatex-0.47.0/source/texk/web2c/luatexdir/pdf/pdfcolorstack.c 2009-12-21 07:29:24.000000000 +0900 +@@ -206,7 +206,7 @@ + if (*str == 0) { + colstack->page_current = NULL; + } else { +- colstack->page_current = str; ++ colstack->page_current = xstrdup(str); + } + free(str); + } else { +@@ -220,7 +220,7 @@ + if (*str == 0) { + colstack->form_current = NULL; + } else { +- colstack->form_current = str; ++ colstack->form_current = xstrdup(str); + } + free(str); + } +Index: luatex-0.47.0/source/texk/web2c/luatexdir/tex/texnodes.c +=================================================================== +--- luatex-0.47.0.orig/source/texk/web2c/luatexdir/tex/texnodes.c 2009-12-21 07:29:01.000000000 +0900 ++++ luatex-0.47.0/source/texk/web2c/luatexdir/tex/texnodes.c 2009-12-21 07:29:24.000000000 +0900 +@@ -2076,7 +2076,7 @@ + attr_list_ref(q) = 1; + node_attr(n) = q; + } +- p = vlink(p); ++ p = vlink(node_attr(n)); + while (j-- > 0) + p = vlink(p); + t = attribute_value(p); --- luatex-0.50.0.orig/debian/patches/libpoppler-0.6 +++ luatex-0.50.0/debian/patches/libpoppler-0.6 @@ -0,0 +1,204 @@ +libpoppler-0.6 + +making luatex compile with libpoppler 0.6 release line + + src/configure | 6 ++-- + src/configure.in | 8 ++--- + src/texk/web2c/luatexdir/Makefile.in | 3 -- + src/texk/web2c/luatexdir/image/pdftoepdf.cc | 41 +++++++++++++--------------- + src/texk/web2c/luatexdir/luatex.mk | 5 ++- + src/texk/web2c/luatexdir/luatexextra.in | 2 - + src/texk/web2c/luatexdir/utils.c | 4 +- + 7 files changed, 35 insertions(+), 34 deletions(-) + +Index: luatex-0.35.0/src/configure +=================================================================== +--- luatex-0.35.0.orig/src/configure 2008-07-15 12:49:28.000000000 +0200 ++++ luatex-0.35.0/src/configure 2009-02-26 18:09:10.000000000 +0100 +@@ -6827,9 +6827,9 @@ + + # we need libxpdf for pdf[ex]tex, xetex + test ! -d $srcdir/$LIBXPDFDIR && : ${needs_libxpdf=no} +-test "$with_pdftex" != no && : ${needs_libxpdf=yes} +-test "$with_pdfetex" != no && : ${needs_libxpdf=yes} +-test "$with_xetex" != no && : ${needs_libxpdf=yes} ++test "$with_pdftex" != no && : ${needs_libxpdf=no} ++test "$with_pdfetex" != no && : ${needs_libxpdf=no} ++test "$with_xetex" != no && : ${needs_libxpdf=no} + : ${needs_libxpdf=no} + export needs_libxpdf + +Index: luatex-0.35.0/src/configure.in +=================================================================== +--- luatex-0.35.0.orig/src/configure.in 2008-07-15 12:49:28.000000000 +0200 ++++ luatex-0.35.0/src/configure.in 2009-02-26 18:09:10.000000000 +0100 +@@ -163,9 +163,9 @@ + + # we need libxpdf for pdf[ex]tex, xetex + test ! -d $srcdir/$LIBXPDFDIR && : ${needs_libxpdf=no} +-test "$with_pdftex" != no && : ${needs_libxpdf=yes} +-test "$with_pdfetex" != no && : ${needs_libxpdf=yes} +-test "$with_xetex" != no && : ${needs_libxpdf=yes} ++test "$with_pdftex" != no && : ${needs_libxpdf=no} ++test "$with_pdfetex" != no && : ${needs_libxpdf=no} ++test "$with_xetex" != no && : ${needs_libxpdf=no} + : ${needs_libxpdf=no} + export needs_libxpdf + +@@ -220,7 +220,7 @@ + sinclude(libs/ncurses/ncurses.ac) + sinclude(libs/zlib/zlib.ac) + sinclude(libs/libpng/libpng.ac) +-sinclude(libs/xpdf/libxpdf.ac) ++#sinclude(libs/xpdf/libxpdf.ac) + sinclude(libs/t1lib/t1lib.ac) + sinclude(libs/freetype/freetype.ac) + sinclude(libs/freetype2/freetype2.ac) +Index: luatex-0.35.0/src/texk/web2c/luatexdir/image/pdftoepdf.cc +=================================================================== +--- luatex-0.35.0.orig/src/texk/web2c/luatexdir/image/pdftoepdf.cc 2008-10-06 11:52:07.000000000 +0200 ++++ luatex-0.35.0/src/texk/web2c/luatexdir/image/pdftoepdf.cc 2009-02-26 18:09:10.000000000 +0100 +@@ -24,25 +24,24 @@ + #include + #include + #include +-#include +-#include +-#include +-#include +-#include + #include +-#include "Object.h" +-#include "Stream.h" +-#include "Array.h" +-#include "Dict.h" +-#include "XRef.h" +-#include "Catalog.h" +-#include "Link.h" +-#include "Page.h" +-#include "GfxFont.h" +-#include "PDFDoc.h" +-#include "GlobalParams.h" +-#include "Error.h" +- ++#include ++#include ++#include ++#include ++#include ++#include "poppler/Object.h" ++#include "poppler/Stream.h" ++#include "poppler/Array.h" ++#include "poppler/Dict.h" ++#include "poppler/XRef.h" ++#include "poppler/Link.h" ++#include "poppler/Catalog.h" ++#include "poppler/Page.h" ++#include "poppler/GfxFont.h" ++#include "poppler/PDFDoc.h" ++#include "poppler/GlobalParams.h" ++#include "poppler/Error.h" + #include "epdf.h" + + static const char _svn_version[] = +@@ -163,7 +162,7 @@ + pdf_doc->file_path = xstrdup(file_path); + void **aa = avl_probe(PdfDocumentTree, pdf_doc); + assert(aa != NULL); +- GString *docName = new GString(pdf_doc->file_path); ++ GooString *docName = new GooString(pdf_doc->file_path); + pdf_doc->doc = new PDFDoc(docName); // takes ownership of docName + if (!pdf_doc->doc->isOk() || !pdf_doc->doc->okToPrint()) + pdftex_fail("xpdf: reading PDF image failed"); +@@ -533,7 +532,7 @@ + int i, l, c; + Ref ref; + char *p; +- GString *s; ++ GooString *s; + if (obj->isBool()) { + pdf_printf("%s", obj->getBool()? "true" : "false"); + } else if (obj->isInt()) { +@@ -725,7 +724,7 @@ + img_totalpages(idict) = pdf_doc->doc->getCatalog()->getNumPages(); + if (img_pagename(idict)) { + // get page by name +- GString name(img_pagename(idict)); ++ GooString name(img_pagename(idict)); + LinkDest *link = pdf_doc->doc->findDest(&name); + if (link == NULL || !link->isOk()) + pdftex_fail("PDF inclusion: invalid destination <%s>", +Index: luatex-0.35.0/src/texk/web2c/luatexdir/luatexextra.in +=================================================================== +--- luatex-0.35.0.orig/src/texk/web2c/luatexdir/luatexextra.in 2009-02-23 15:44:44.000000000 +0100 ++++ luatex-0.35.0/src/texk/web2c/luatexdir/luatexextra.in 2009-02-26 18:10:08.000000000 +0100 +@@ -25,7 +25,7 @@ + (generated from ../lib/texmfmp.c). + */ + +-#define BANNER "This is LuaTeX, Version LUATEX-VERSION" ++#define BANNER "This is LuaTeX using libpoppler, Version LUATEX-VERSION" + #define COPYRIGHT_HOLDER "Taco Hoekwater" + #define AUTHOR NULL + #define PROGRAM_HELP LUATEXHELP +Index: luatex-0.35.0/src/texk/web2c/luatexdir/luatex.mk +=================================================================== +--- luatex-0.35.0.orig/src/texk/web2c/luatexdir/luatex.mk 2009-01-24 01:09:02.000000000 +0100 ++++ luatex-0.35.0/src/texk/web2c/luatexdir/luatex.mk 2009-02-26 18:10:54.000000000 +0100 +@@ -3,6 +3,9 @@ + # differ between releases of luatex + # $Id: luatex.mk 1831 2009-01-24 00:09:02Z oneiros $ + ++# use libpoppler instead of included xpdf code ++ADDLDFLAGS = -lpoppler ++ + # We build luatex + luatex = @LTEX@ luatex + luatexdir = luatexdir +@@ -43,7 +46,7 @@ + + # Making luatex + luatex: luatexd.h $(luatex_o) $(luatexextra_o) $(luatexlibsdep) +- @CXXHACKLINK@ $(luatex_o) $(luatexextra_o) $(luatexlibs) $(socketlibs) @SOCKETHACK@ @CXXHACKLDLIBS@ @CXXLDEXTRA@ ++ @CXXHACKLINK@ $(luatex_o) $(luatexextra_o) $(luatexlibs) $(socketlibs) @SOCKETHACK@ @CXXHACKLDLIBS@ @CXXLDEXTRA@ $(ADDLDFLAGS) + + # C file dependencies. + $(luatex_c) luatexcoerce.h luatexd.h: luatex.p $(web2c_texmf) $(srcdir)/$(luatexdir)/luatex.defines $(srcdir)/$(luatexdir)/luatex.h +Index: luatex-0.35.0/src/texk/web2c/luatexdir/Makefile.in +=================================================================== +--- luatex-0.35.0.orig/src/texk/web2c/luatexdir/Makefile.in 2009-01-24 01:09:02.000000000 +0100 ++++ luatex-0.35.0/src/texk/web2c/luatexdir/Makefile.in 2009-02-26 18:11:37.000000000 +0100 +@@ -12,10 +12,9 @@ + ALL_CXXFLAGS = @CXXFLAGS@ @DEFS@ $(XXCFLAGS) \ + -I. -I$(srcdir) \ + -I$(kpathsea_dir_parent) -I$(kpathsea_srcdir_parent) \ +- @LIBXPDFCPPFLAGS@ \ ++ -I/usr/include/poppler \ + -I$(LIBOBSDCOMPATDIR) -I$(LIBOBSDCOMPATDIR)/.. \ + -I$(LIBOBSDCOMPATFSRCDIR) -I$(LIBOBSDCOMPATFSRCDIR)/.. \ +- -I$(LIBPNGSRCDIR) -I$(ZLIBSRCDIR) \ + -DPDF_PARSER_ONLY -DDISABLE_OUTLINE -I../../../../src/libs/obsdcompat + CXX = @CXX@ + +Index: luatex-0.35.0/src/texk/web2c/luatexdir/utils.c +=================================================================== +--- luatex-0.35.0.orig/src/texk/web2c/luatexdir/utils.c 2009-02-23 15:44:44.000000000 +0100 ++++ luatex-0.35.0/src/texk/web2c/luatexdir/utils.c 2009-02-26 18:09:10.000000000 +0100 +@@ -41,7 +41,7 @@ + #include "ptexlib.h" + + #include "png.h" +-#include "xpdf/config.h" /* just to get the xpdf version */ ++#include "poppler/poppler-config.h" /* just to get the xpdf version */ + + static const char __svn_version[] = + "$Id: utils.c 1897 2009-02-23 14:44:44Z taco $ $URL: svn://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.35.0/src/texk/web2c/luatexdir/utils.c $"; +@@ -1131,7 +1131,7 @@ + (void) asprintf(versions, + "Compiled with libpng %s; using libpng %s\n" + "Compiled with zlib %s; using zlib %s\n" +- "Compiled with xpdf version %s\n", ++ "Compiled with libpoppler/xpdf version %s\n", + PNG_LIBPNG_VER_STRING, png_libpng_ver, + ZLIB_VERSION, zlib_version, xpdfVersion); + } --- luatex-0.50.0.orig/debian/examples/test-1.tex +++ luatex-0.50.0/debian/examples/test-1.tex @@ -0,0 +1,12 @@ + +\directlua0{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;} + +\directlua0{ + a = 1 + b = 2 + c = a*b + tex.print(c) +} + +\bye +