From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86440 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Update overwrites configuration Date: Tue, 25 Feb 2014 04:23:57 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393298642 17330 80.91.229.3 (25 Feb 2014 03:24:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 03:24:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 25 04:24:12 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WI8ct-0007em-1U for gctc-ntg-context-518@m.gmane.org; Tue, 25 Feb 2014 04:24:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D627101F3; Tue, 25 Feb 2014 04:24:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p3asnLpnkyGr; Tue, 25 Feb 2014 04:24:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5029A101EC; Tue, 25 Feb 2014 04:24:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7792101EC for ; Tue, 25 Feb 2014 04:24:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eyfSwvN95sus for ; Tue, 25 Feb 2014 04:24:05 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 65B3E101E3 for ; Tue, 25 Feb 2014 04:24:00 +0100 (CET) Original-Received: from mail-yh0-x22a.google.com (mail-yh0-x22a.google.com [IPv6:2607:f8b0:4002:c01::22a]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1P3NwD9028695 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 25 Feb 2014 04:23:59 +0100 Original-Received: by mail-yh0-f42.google.com with SMTP id a41so6427496yho.1 for ; Mon, 24 Feb 2014 19:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xZMUZOUoA4Kq/LP+oDd5oh7nfyCFWKGPchngrJLGS+g=; b=dR7Jtb4+JB5WyjQst5N9MiEkNliz5QKpEM6OdaQJYZ520Ck6pTCx2qBWRhCYJgoZ3g DwPQ05C5fhh1eDj7p+ZbPthTss9umsJkeSonGTPgKYsLuN6ZKOuYK/+rz5bMMa0pzURY FoON6emw7X2k+Bd4mQ38H3+1Fqvs/PaC9y4HwAZAedgt/J78IL9oWK8wP1Dg5q4Gl2h/ 7nco18yf9AZ3MjxSPRP8lKHDm6Nx/KT4G3na/xLYZip6mIP/W2MBgfP7CoYgd8c5HndV oKEy5zPPS+eiZm5TMyxxLA+d1T/LtvwZuYSMtCNgCwY6uMrZXa4UaUrWLRrsHlcKMA2L ZG6A== X-Received: by 10.236.16.83 with SMTP id g59mr3247365yhg.14.1393298637630; Mon, 24 Feb 2014 19:23:57 -0800 (PST) Original-Received: by 10.170.136.20 with HTTP; Mon, 24 Feb 2014 19:23:57 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4002:c01::22a; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLurnX0T - 8db74c4f0989 - 20140225 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86440 Archived-At: On Tue, Feb 25, 2014 at 3:55 AM, Thangalin wrote: > Hi, > > 1. Edit .../tex/texmf/web2c/texmfcnf.lua > 2. Set TEXMFCACHE = "/var/cache/context/texmf-cache" > 3. Run first-setup.sh to update ConTeXt. Create a file texmfcnf.lua next to setuptex for example (that is: in root of the installation) and set the variable there. That is: return { content = { variables = { TEXMFCACHE = "/var/cache/context/texmf-cache", }, }, } > Expected Results > TEXMFCACHE remains "/var/cache/context/texmf-cache" > > Actual Results > TEXMFCACHE reverts to "$SELFAUTOPARENT/texmf-cache" No, reverting to the original value is expected. If you want to modify some variables, just place texmfcnf.lua (or texmf.cnf) somewhere else and only put the differences there. The allowed locations for texmfcnf.lua are determined by the variable TEXMFCNF being set in texk/kpathsea/texmf.cnf in luatex sources: TEXMFCNF = {\ $SELFAUTOLOC,\ $SELFAUTOLOC/share/texmf-local/web2c,\ $SELFAUTOLOC/share/texmf-dist/web2c,\ $SELFAUTOLOC/share/texmf/web2c,\ $SELFAUTOLOC/texmf-local/web2c,\ $SELFAUTOLOC/texmf-dist/web2c,\ $SELFAUTOLOC/texmf/web2c,\ \ $SELFAUTODIR,\ $SELFAUTODIR/share/texmf-local/web2c,\ $SELFAUTODIR/share/texmf-dist/web2c,\ $SELFAUTODIR/share/texmf/web2c,\ $SELFAUTODIR/texmf-local/web2c,\ $SELFAUTODIR/texmf-dist/web2c,\ $SELFAUTODIR/texmf/web2c,\ \ $SELFAUTOGRANDPARENT/texmf-local/web2c,\ $SELFAUTOPARENT,\ \ $SELFAUTOPARENT/share/texmf-local/web2c,\ $SELFAUTOPARENT/share/texmf-dist/web2c,\ $SELFAUTOPARENT/share/texmf/web2c,\ $SELFAUTOPARENT/texmf-local/web2c,\ $SELFAUTOPARENT/texmf-dist/web2c,\ $SELFAUTOPARENT/texmf/web2c\ } > (c) user should be prompted to overwrite changed configuration values; > (d) user should be prompted to accept overwriting each new value; or > (e) a backup of the configuration file should be made, followed by a > message that the changes have been overwritten and previous values > archived. No changes that you make to texmf/, texmf-context/, texmf-modules/ or texmf-yourplatform/ will ever be preserved. You need to use other texmf trees for that (like texmf-local for example). Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________