[tlbuild] Patching pdftex

Florian Breitwieser florian.bw at gmail.com
Mon Dec 16 16:48:23 CET 2013

Hello Norbert,

Thanks for the answer. Indeed this is the most reasonable way. I now
used the TexLive 2013 source, and it compiled without problems using
system kpathsea. Complete configure options:

    --disable-cxx-runtime-hack  \
    --disable-all-pkgs      \
    --disable-ptex        \
    --enable-pdftex       \
    --disable-native-texlive-build \
    --without-mf-x-toolkit    \
    --without-x         \
    --disable-shared      \
    --disable-largefile     \
    --with-system-xpdf      \
    --with-system-zlib      \
    --with-system-pnglib    \
    --disable-multiplatform   \
    --with-system-kpathsea    \

I have, however, still the issue that the newly compiled pdftex does
not see what system kpathsea sees:

# kpsewhich pdfetex.ini

# ~/bin/pdftex -ini -etex pdfetex.ini        # <-- patched pdftex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (INITEX)
 restricted \write18 enabled.
entering extended mode
! I can't find file `pdfetex.ini'.
<*> pdfetex.ini

# /usr/bin/pdftex -ini -etex pdfetex.ini   # <-- system pdftex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Arch
Linux) (INITEX)
 restricted \write18 enabled.
entering extended mode
... etc

For setting up the patched pdftex locally, I used the recipe from this
answer: [2]. Am I missing something?

[1] http://tex.stackexchange.com/a/98972/17557

On 12/16/13, Norbert Preining <preining at logic.at> wrote:
> Hi Florian,
>> I'd like to use a patched version of pdftex which contains fixes for
>> the PDF/A specification [1]. The most recent source of stand-alone
> Can you please send the patches against current TeX Live sources
> to the tex-implementors list
> http://tug.org/mailman/listinfo/tex-implementors
> THat is probably the best idea.
>> pdftex is 1.40.11 from 3 years ago at Sarovar [2]. I tried compiling
> Forget the version on Sarovar. I am not sure where it is currently
> developped, but the feed of changes always goes into TeX Live.
> So in some sense these are the most appropriate sources. (But I might
> be wrong)
>> TeX Live 2013 has pdftex version 1.40.14. Is pdftex now maintained at
>> TexLive? Further, if I port the patch, is there a way to only build
>> and then use a patched pdftex?
> Yes, just read the texlive sources README (severals) that allow
> you to build binaries on demand, with static or dynamic kpathsea.
> Norbert
> ------------------------------------------------------------------------
> PREINING, Norbert                               http://www.preining.info
> JAIST, Japan                                 TeX Live & Debian Developer
> DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
> ------------------------------------------------------------------------

More information about the tlbuild mailing list