Skip to content

Commit

Permalink
texlive: fix executables and postinst
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
MingcongBai committed Nov 23, 2023
1 parent 0edde92 commit 74a0f21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app-doc/texlive/autobuild/build
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74a0f21

Please sign in to comment.