From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A, WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7598 invoked from network); 28 Apr 2023 04:01:07 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 28 Apr 2023 04:01:07 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 858971C2906; Fri, 28 Apr 2023 06:00:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VryONeBcsKdW; Fri, 28 Apr 2023 06:00:42 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 665601C22AF; Fri, 28 Apr 2023 06:00:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 323CE1C22AF for ; Fri, 28 Apr 2023 06:00:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4WvtIqwBGsy for ; Fri, 28 Apr 2023 06:00:38 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.216.47; helo=mail-pj1-f47.google.com; envelope-from=mseven@telus.net; receiver= Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A255A80F for ; Fri, 28 Apr 2023 06:00:38 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-246eebbde1cso7856391a91.3 for ; Thu, 27 Apr 2023 21:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; t=1682654436; x=1685246436; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=U8S9sQ7FTZlX7BuCP3E4zIoa/0ZzSDD1+6nzEtVEi54=; b=J82b8ybuN8hBK32N1Yy7ttrQ6bjmRzBY/taxWwcZ/g6WvCn5q/jyXtLc+aNgrL9Qpx 6+LVG5Abbo29vgb5zTUWLwsTdgd06+JUk8xCbouovPG6394+P6tc8Sp8AHAQ3sZSH0xQ iViXR4+/23zuEXYbaIXPT+o6P0ZlojhCCkhj3ys8u0+j5yjrGjm1pn+JsI213fFdc8aG ter2meYMKtHBnXCxnIRHudwhq9JkLUzNE3mh7GsMX3vg8vVd6fWhNvGFZRBZrJ6UJKTb P0Kt4MqY9jM2TWKRgO1Z4y9ir7dp1pnL7WUXSQm0njH0D9+0Wub4tFGGuIIpcWZ3x+je ijbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682654436; x=1685246436; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U8S9sQ7FTZlX7BuCP3E4zIoa/0ZzSDD1+6nzEtVEi54=; b=anSPseF8YSEKpnSz4NgA799TrBkoqbpbyfuOaz+R5sX6rI0ho7+YxFLSzBbRk6Xf3D QE3rOp6iBgl7odr+padsyU1GyYbbT0J64KL8Gd5qVc8QMRhY5bj/HyBNwFlAkGK2E/Wx DVl38LRh2btoVq4eLO+KxpY/swmY3O5xc32iL84OaWbTzSwNRp8wKdcYYaOP7+w4104+ QDsUi1IU+2GszwPM6aNN285w991n/TLbpXrPWhI0acYghOW4v3DvbB7Y+MSFKh/GegSO xaau2qpR1Hsp/qAGVlVNknZ59nDHd//ysDZoerYIseLylXiD3d3mh7OiHE9TlKH/A1sz SQEQ== X-Gm-Message-State: AC+VfDxF+J+IBpRm03lKS2oXzDAbZAPI0D9Kq7sLLoBeeVule9lNmPiJ GlzN1dSwNCkYTEs3lij5lIq0f3HmtmfYA7PqDDg= X-Google-Smtp-Source: ACHHUZ5Ejz4W9gdVGxKdq/LRAlz+G7Zo8C3chYvkJhX8cbjMFxDU3afH0X0KQnIyPK57WtBZO4s9rw== X-Received: by 2002:a17:90b:1d01:b0:247:4f32:d108 with SMTP id on1-20020a17090b1d0100b002474f32d108mr4115473pjb.13.1682654435941; Thu, 27 Apr 2023 21:00:35 -0700 (PDT) Received: from ?IPv6:2001:56a:725d:a800::527? (node-1w7jr9y78ltbtszz2lxsg2ecn.ipv6.telus.net. [2001:56a:725d:a800::527]) by smtp.gmail.com with ESMTPSA id e6-20020a17090a280600b0024bff9dbe6esm3095310pjd.41.2023.04.27.21.00.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 21:00:35 -0700 (PDT) Message-ID: <9338ba4d4d69bc3ce633ed9c0eebf116fa473a25.camel@telus.net> To: ntg-context Date: Thu, 27 Apr 2023 22:00:34 -0600 User-Agent: Evolution 3.48.1 (3.48.1-1.fc38) MIME-Version: 1.0 Subject: [NTG-context] LuaMetaTeX doesn't find files when symlinked X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Max Chernoff via ntg-context Reply-To: mailing list for ConTeXt users Cc: Max Chernoff Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" Hi Hans, With the LuaMetaTeX-based ConTeXt wrapper, it's not generally possible to run ConTeXt from a symlinked binary in another directory. This shows up if someone makes symlinks in "/usr/bin" so that they can avoid adding anything to their $PATH. If you make run a symlink to the LuaMetaTeX-based ConTeXt wrapper, it looks for texmfcnf.lua relative to the symlink location, not the symlink target. With the old LuaTeX/kpse-based wrapper, the script would look for texmfcnf.lua relative to the symlink target. I know that my description above is terrible, so here's a demo: $ bin=$(mtxrun --expand-var TEXMFOS | head -1)/* $ cd $(mktemp -d) $ ln -s $bin/luatex $bin/luametatex $bin/context $bin/context.lua $bin/mtxrun $bin/mtxrun.lua . $ ./context --nofile $ ./context --luatex --nofile Running the above commands used to work with the old LuaTeX/kpse-based wrapper, but it doesn't work any more. I was able to ""fix"" this by adding the lines if os.selfpath then environment.ownbin = lfs.symlinktarget(os.selfpath .. io.fileseparator .. os.selfname) environment.ownpath = environment.ownbin:match("^.*" .. io.fileseparator) else environment.ownpath = kpse.new("luatex"):var_value("SELFAUTOLOC") environment.ownbin = environment.ownpath .. io.fileseparator .. (arg[-2] or arg[-1] or arg[0] or "luatex"):match("[^" .. io.fileseparator .. "]*$") end to mtxrun.lua, right below the line package.loaded["data-ini"] = package.loaded["data-ini"] or true but this is obviously not a very good fix. There are some threads with more details at: https://tug.org/pipermail/tex-live/2023-March/049028.html https://gitlab.com/islandoftex/images/texlive/-/issues/30 Those links only discuss TL, but I get the same issue if I make a symlink to the standalone ConTeXt files. Thanks, -- Max ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________