[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1004666: marked as done (Unable to set TEXMFAUXTREES in texlive)



Your message dated Mon, 31 Jan 2022 13:26:09 +0000
with message-id <VI1PR06MB409489FEFE92E0D57DEA558880259@VI1PR06MB4094.eurprd06.prod.outlook.com>
and subject line 
has caused the Debian Bug report #1004666,
regarding Unable to set TEXMFAUXTREES in texlive
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1004666: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004666
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive-latex-base
Version: 2020.20210202-3

I have a texmf tree that I plan to deploy in a *.deb package using a private
company-wide debian repository.

In postinst, I'm expecting to be able to add my tree to the TEXMFAUXTREES:

$ sudo tlmgr conf auxtrees add /usr/share/texlive/texmf-mycompany

Then I confirm it was added

$ tlmgr conf auxtrees
List of auxiliary texmf trees:
  /usr/share/texlive/texmf-mycompany

I can also confirm this in the texmf.cnf:

$ cat /usr/share/texlive/texmf.cnf 
TEXMFAUXTREES = /usr/share/texlive/texmf-mycompany,

However, it is not applied: 

$ kpsewhich -var-value TEXMFAUXTREES
{}

Further inspection shows /usr/share/texlive/texmf.cnf is not read by texlive: 

$ kpsewhich -all texmf.cnf
/etc/texmf/web2c/texmf.cnf
/usr/share/texmf/web2c/texmf.cnf
/usr/share/texlive/texmf-dist/web2c/texmf.cnf

$ kpsewhich -show-path texmf.cnf
/etc/texmf/web2c:/usr/local/share/texmf/web2c:/usr/share/texmf/web2c:/usr/share/texlive/texmf-dist/web2c://share/texmf/web2c

If support for /usr/share/texlive/texmf.cnf was removed to ensure tlmgr doesn't
conflict with apt, there should be an alternative provided so private package
maintainers can deploy trees.   

These are the texmf directories currently supported:
TEXMFLOCAL      /usr/local/share/texmf
TEXMFAUXTREES   {}
TEXMFDIST       /usr/share/texlive/texmf-dist
TEXMFHOME       $HOME/texmf

--- End Message ---
--- Begin Message ---
I found the answer. 

In /etc/texmf/texmf.d, deploy a*.cnf file with contents

TEXMFAUXTREES = /usr/share/texlive/texmf-mycompany,

Then run update-texmf to regenerate `/etc/texmf/web2c/texmf.cnf`


--- End Message ---

Reply to: