From 74a0f216c8dd82d04ccbdd81e6f4e36a78e77be2 Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Wed, 22 Nov 2023 14:29:15 -0800 Subject: [PATCH] texlive: fix executables and postinst - Preload libkpathsea.so.6 in $PKGDIR to make sure `make texlinks' creates executable symlinks to the correct paths. - Bump trie_size in /etc/texmf/web2c/texmf.cnf to fix postinst. --- app-doc/texlive/autobuild/build | 8 +++++++- .../texlive/autobuild/overrides/etc/texmf/web2c/texmf.cnf | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app-doc/texlive/autobuild/build b/app-doc/texlive/autobuild/build index f7f20dd7351..84394ccc3c5 100644 --- a/app-doc/texlive/autobuild/build +++ b/app-doc/texlive/autobuild/build @@ -44,8 +44,14 @@ make abinfo "Installing TeX Live binaries..." make install DESTDIR="$PKGDIR" + abinfo "Creating symlinks to actual binaries.." -make texlinks DESTDIR="$PKGDIR" +# FIXME: Symlink installation requires kpsewhich, which depends on +# libkpathsea.so.6, which is not yet available in LD_LIBRARY_PATH. +# +# Ref: https://gitlab.archlinux.org/archlinux/packaging/packages/texlive-bin/-/blob/f83b722db0c99cef02c18db41947b95299f0c735/PKGBUILD#L115 +LD_PRELOAD="$PKGDIR/usr/lib/libkpathsea.so.6" \ + make texlinks DESTDIR="$PKGDIR" cd .. diff --git a/app-doc/texlive/autobuild/overrides/etc/texmf/web2c/texmf.cnf b/app-doc/texlive/autobuild/overrides/etc/texmf/web2c/texmf.cnf index b8289fc065f..65bfeeb89da 100644 --- a/app-doc/texlive/autobuild/overrides/etc/texmf/web2c/texmf.cnf +++ b/app-doc/texlive/autobuild/overrides/etc/texmf/web2c/texmf.cnf @@ -734,7 +734,7 @@ buf_size = 200000 % for all known free hyphenation patterns to be loaded simultaneously % (as TeX Live does). % -trie_size = 1000000 +trie_size = 4194303 hyph_size = 8191 % prime number of hyphenation exceptions, >610, <32767. % http://primes.utm.edu/curios/page.php/8191.html