Skip to content

Commit 72f115b

Browse files
committed
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.
1 parent 3dfa43a commit 72f115b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app-doc/texlive/autobuild/build

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ make
4444

4545
abinfo "Installing TeX Live binaries..."
4646
make install DESTDIR="$PKGDIR"
47+
4748
abinfo "Creating symlinks to actual binaries.."
48-
make texlinks DESTDIR="$PKGDIR"
49+
# FIXME: Symlink installation requires kpsewhich, which depends on
50+
# libkpathsea.so.6, which is not yet available in LD_LIBRARY_PATH.
51+
#
52+
# Ref: https://gitlab.archlinux.org/archlinux/packaging/packages/texlive-bin/-/blob/f83b722db0c99cef02c18db41947b95299f0c735/PKGBUILD#L115
53+
LD_PRELOAD="$PKGDIR/usr/lib/libkpathsea.so.6" \
54+
make texlinks DESTDIR="$PKGDIR"
4955

5056
cd ..
5157

app-doc/texlive/autobuild/overrides/etc/texmf/web2c/texmf.cnf

+1-1
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ buf_size = 200000
734734
% for all known free hyphenation patterns to be loaded simultaneously
735735
% (as TeX Live does).
736736
%
737-
trie_size = 1000000
737+
trie_size = 4194303
738738

739739
hyph_size = 8191 % prime number of hyphenation exceptions, >610, <32767.
740740
% http://primes.utm.edu/curios/page.php/8191.html

0 commit comments

Comments
 (0)