texlive: fix search path on x86_64

This commit is contained in:
Sergei Reznikov
2019-02-08 14:31:14 +03:00
parent beb1c9c59d
commit 673d62ada7

View File

@@ -481,10 +481,20 @@ fetchTexLiveInstaller()
if [ ! -e texmf-dist ] ; then
ln -s $sourceDir2/texmf-dist/ texmf-dist
fi
# Link our binaries to bin/i386-haiku
if [ ! -e bin/i386-haiku ] ; then
mkdir -p bin
ln -s $prefix/bin bin/i386-haiku
# Link our binaries to bin/{i386,x86_64}-haiku
if [ $targetArchitecture = x86_gcc2 ] || [ $targetArchitecture = x86 ]; then
if [ ! -e bin/i386-haiku ] ; then
mkdir -p bin
ln -s $prefix/bin bin/i386-haiku
fi
elif [ $targetArchitecture = x86_64 ]; then
if [ ! -e bin/x86_64-haiku ] ; then
mkdir -p bin
ln -s $prefix/bin bin/x86_64-haiku
fi
fi
}
@@ -667,7 +677,7 @@ INSTALL()
# the texfm local tree should probably be done with a post-install script, perhaps
sed -i -e 's/make_local_skeleton \".*//' install-tl
# run the TeX Live installer, and specify all our paths, once more, to be sure... ;-)
export PATH=bin/i386-haiku:$prefix/bin:$PATH
export PATH=bin/i386-haiku:bin/x86_64-haiku:$prefix/bin:$PATH
install-tl <<< $"D
1
$dataDir/texlive