From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31494 Path: news.gmane.org!not-for-mail From: Frank =?iso-8859-1?Q?K=FCster?= Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt on Debian: The wiki entry Date: Tue, 24 Oct 2006 07:53:55 +0200 Message-ID: <86hcxufedo.fsf@alhambra.kuesterei.ch> References: <453D38AD.1010608@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1161669253 24314 80.91.229.2 (24 Oct 2006 05:54:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 05:54:13 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 24 07:54:11 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcFEm-0002tu-Nr for gctc-ntg-context-518@m.gmane.org; Tue, 24 Oct 2006 07:54:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0542C1FE2C; Tue, 24 Oct 2006 07:54:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13909-03; Tue, 24 Oct 2006 07:54:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6FC191FE1E; Tue, 24 Oct 2006 07:54:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDA351FE24 for ; Tue, 24 Oct 2006 07:53:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14138-02-2 for ; Tue, 24 Oct 2006 07:53:56 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by ronja.ntg.nl (Postfix) with SMTP id 9A3381FE0B for ; Tue, 24 Oct 2006 07:53:56 +0200 (CEST) Original-Received: from [84.75.117.142] (helo=localhost) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1GcFEZ41cM-0004a5; Tue, 24 Oct 2006 07:53:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=localhost.localdomain) by localhost with esmtp (Exim 4.50) id 1GcFEZ-0001Ml-Cy for ntg-context@ntg.nl; Tue, 24 Oct 2006 07:53:55 +0200 Original-To: mailing list for ConTeXt users X-Attribution: fant X-Ehrenamt: http://www.langau.de In-Reply-To: <453D38AD.1010608@wxs.nl> (Hans Hagen's message of "Mon\, 23 Oct 2006 23\:48\:29 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:3fc7da83a58b7314ee3070631872032d X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31494 Archived-At: Hans Hagen wrote: > Sanjoy Mahajan wrote: >> A system-wide installation, if done cleanly, would be much easier >> (as plink pointed out). If you (or 'texexec --make' to generate the >> formats) ask kpathsea where to put the format files, it'll give you >> a directory in TEXMFHOME, so a per user install. But how do you ask >> kpathsea the correct question so that it'll tell you where they >> should go for a system-wide install? >> = > you can't and i remember asking for such a feature but ... ; Can you point me to this discussion? I think it doesn't need more as what fmtutil-sys, updmap-sys and texconfig-sys do before calling fmtutil, updmap or texconfig, respectively: v=3D`kpsewhich -var-value TEXMFSYSVAR` c=3D`kpsewhich -var-value TEXMFSYSCONFIG` TEXMFVAR=3D"$v" TEXMFCONFIG=3D"$c" export TEXMFVAR TEXMFCONFIG exec updmap ${1+"$@"} However, it would be probably more elegant and context-like to not have texexec and texexec-sys, but rather a commandline switch - in this case the handling would have to be done in the perl (or ruby?) scripts, which is somewhat trickier. > the only > way to figure that out is to check all format paths and take the first > one that fits; unfortunalty the tetex paths are rather messy so it's > hard to predict in what permutation of home, usr, share, sys, opt * > local * tex, TeX, teTeX, whatever * texmf, texmflocal, texmf-local, > texmf-teTeX, texmf-dis, texmf.local, texmf-whocares * web2c, > web2c/engine etc etc a format may end up; = I'm not sure what you mean. The default TEXMF path for teTeX (and I think also for TeXlive) is TEXMF =3D {!!$TEXMFCONFIG,!!$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMF= SYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST} where the first three are per-user, the others are system trees. An explanation about installing does not need to know whether, for example, TEXMFLOCAL is called texmf.local or texmf-local or /usr/local/share/texmf. The only problem might be that some users change the order or the trees, but that's not a big problem if we suggest to use the default path. > this is further complicated > by the fact that kpse has to do some guessing about where it's > configuration files are (web2c, etc, home, nowhere), This is only a problem if people have more than one texmf.cnf - is this actually the case? I don't think I ever heard of that. > what trees make > sense, etc etc; and, yes, some of the paths are hard coded in the > binaries, so relocating is tricky ... isn't it magic that tex still > runs -) AFAIK only the search path for texmf.cnf is hard-coded, and that can't be avoided. On the other hand, no one ever approached me and requested a relocation: What would you want, and in which cases? TIA, Frank -- = Dr. Frank K=FCster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Z= =FCrich Debian Developer (teTeX/TeXLive)