delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/26/13:06:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,SPF_NEUTRAL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F998057.8080200@cornell.edu>
Date: Thu, 26 Apr 2012 13:05:27 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: /bin in path before /usr/bin breaks latex
References: <CA+tVKpCVNKN0p1rpTWd2eXG=h38wzDa1RzoaVjVX_J31MjDsag AT mail DOT gmail DOT com>
In-Reply-To: <CA+tVKpCVNKN0p1rpTWd2eXG=h38wzDa1RzoaVjVX_J31MjDsag@mail.gmail.com>
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown AT cornell DOT edu - Thu Apr 26 13:05:40 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 4/26/2012 11:05 AM, Mark Frazer wrote:
> Updating cygwin yesterday broke several of my scripts.  Turns out this
> was because they have /bin before /usr/bin in their PATH exported to
> child processes which broke latex.
>
> To reproduce:
>    env PATH=/bin:"$PATH" latex manual.tex
>
> Seems that the latex related symlinks in /bin do not function.
> Putting /usr/bin in the path first fixes this.

This has nothing to do with symlinks.  You have the same problem if you 
try to run /bin/pdftex directly.  Furthermore, the files in /bin are the 
same as those in /usr/bin (see /etc/fstab), so you can't remove files or 
symlinks in /bin without also removing them from /usr/bin.

The problem here is that the tex-related binaries don't find the 
configuration file /usr/share/texmf/web2c/texmf.cnf when invoked as 
/bin/* rather than /usr/bin/*.  I'll fix this and release an updated 
texlive package shortly.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019