On 12/07/2014 09:18 PM, Armin K. wrote:
>
> Why is '--bindir=/opt/texlive/2014/bin/$TEXARCH' specified? Why is it
> needed to specifiy an architecture there? For compatibility with binary
> installer which iirc does the same? Or is there something else that
> requires it to be like this?
> 

Ok, I believe the answer to this question is the answer to my problem below:

> 
> Last, but not the least. I have an issue. I went and installed it into
> /usr, but can't get some kind of catalog to generate itself, this the
> entire install becomes useless. The following output is from pdflatex:
> 
> 
> This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014 - BLFS)
> (preloaded format=pdflatex)
>  restricted \write18 enabled.
> 
> kpathsea: Running mktexfmt pdflatex.fmt
> /usr/bin/mktexfmt: line 398: //texmf-dist/texconfig/tcfmgr: No such file
> or directory
> fmtutil: config file `fmtutil.cnf' not found.
> I can't find the format file `pdflatex.fmt'!
> 
> The //texmf-dist is what's reported by kpsewhich -var-value TEXMFDIST
> which should be /usr/share/texmf-dist. The build script I used is
> available at:
> 
> https://raw.githubusercontent.com/elkrejzi/system-management/master/buildscripts/buildtexlive
> 
> kpsewhich appears to be looking in /usr/share/texmf-dist/web2c/texmf.cnf
> for details, but there's only a reference to
> 
> TEXMFROOT = $SELFAUTOPARENT
> TEXMFDIST = $TEXMFROOT/texmf-dist
> 
> However, I have no idea where SELFAUTOPARENT is being set and what it is
> being set to.
> 
> Cheers.
> 
> 
> 

Namely, SELFAUTOPARENT translates to ../../, which is / for /usr/bin,
and adds texmf-dist to the path, which translates to //texmf-dist. When
/opt/texlive/2014/bin/x86_64-linux is used, SELFAUTOPARENT translates to
/opt/texlive/2014, and since --datarootdir=/opt/texlive/2014 is set like
this, texmf-dist is installed into /opt/texlive/2014, which makes the
texlive work just fine with the default config.

For /usr, I have changed the file as suggested by the comments to a sort
of sane values:

sed -i "s@TEXMFROOT = \$SELFAUTOPARENT@TEXMFROOT = /usr/share@g"
/usr/share/texmf-dist/web2c/texmf.cnf
sed -i "s@TEXMFSYSVAR = \$TEXMFROOT/texmf-var@TEXMFSYSVAR =
/var/lib/texmf@g" /usr/share/texmf-dist/web2c/texmf.cnf
sed -i "s@TEXMFSYSCONFIG = \$TEXMFROOT/texmf-config@TEXMFSYSCONFIG =
/etc/texmf@g" /usr/share/texmf-dist/web2c/texmf.cnf
sed -i "s@TEXMFHOME = ~/texmf@TEXMFHOME = ~/.texmf@g"
/usr/share/texmf-dist/web2c/texmf.cnf

And bam, pdflatex now works. I'll upload the updated build script soon.

FBBG (Follow Book, Book Good).

-- 
Note: My last name is not Krejzi.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to