The symlinks created by texlive-core

18 views
Skip to first unread message

Jan Henrik Sylvester

unread,
Nov 29, 2011, 3:23:43 PM11/29/11
to TeXLive FreeBSD
For me, several symlinks from texlive-core in /usr/local/bin are wrong,
pointing to ../texmf/..., which should be ../share/tex/...

I tried to fix some in the Makefile, but it does not work and there are
more created in a different way:
http://www.math.uni-hamburg.de/home/sylvester/freebsd/tl/tl-patch-dual-print_texlive-core

I fixed (most?) symlinks afterwards, but obviously this is not a good way:

cd /usr/local/bin ; find . -type l -exec ls -l {} \; | grep ' ->
\.\./texmf' | sed 's|^.*\./\(.*\) -> \.\./\(texmf.*\)$|\1:\2|' | while
read LINE ; do L=${LINE%%:*} ; T="../share/${LINE#*:}" ; ln -sf "$T"
"$L" ; done

I have had a look at configure, but it is not obvious to me, where the
correct place is to start fixing.

Suggestion?

Cheers,
Jan Henrik

Romain Tartière

unread,
Nov 30, 2011, 3:18:45 AM11/30/11
to TeXLive FreeBSD
Hi

On Tue, Nov 29, 2011 at 09:23:43PM +0100, Jan Henrik Sylvester wrote:
> For me, several symlinks from texlive-core in /usr/local/bin are wrong,
> pointing to ../texmf/..., which should be ../share/tex/...
>
> I tried to fix some in the Makefile, but it does not work and there are
> more created in a different way:
> http://www.math.uni-hamburg.de/home/sylvester/freebsd/tl/tl-patch-dual-print_texlive-core

Yes, I saw that some links where missing after a complete TeXLive
install so I compared the files I had on my computer with what I had
after installing with tl-install, and added the missing symlinks to the
Makefile.

Obviously, the new TeXLive version installs files in different locations
and so the created links are broken. I will apply your patch, thanks!

> I fixed (most?) symlinks afterwards, but obviously this is not a good way:
>
> cd /usr/local/bin ; find . -type l -exec ls -l {} \; | grep ' ->
> \.\./texmf' | sed 's|^.*\./\(.*\) -> \.\./\(texmf.*\)$|\1:\2|' | while
> read LINE ; do L=${LINE%%:*} ; T="../share/${LINE#*:}" ; ln -sf "$T"
> "$L" ; done
>
> I have had a look at configure, but it is not obvious to me, where the
> correct place is to start fixing.
>
> Suggestion?

Most symlinks are created at random locations in the TeXLive Makefiles.
Using grep(1) to locate a broken link name / target is generally a good
start.

I have to admit that I only use xelatex(1) on a regular basis, so I
trend to miss this kind of problems.

Thanks!
Romain

--
Romain Tartière <rom...@blogreen.org> http://romain.blogreen.org/
pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)

Reply all
Reply to author
Forward
0 new messages