X-Recipient: archive-cygwin@delorie.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@cornell.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@cygwin.com
Subject: Re: /bin in path before /usr/bin breaks latex
References: <CA+tVKpCVNKN0p1rpTWd2eXG=h38wzDa1RzoaVjVX_J31MjDsag@mail.gmail.com>
In-Reply-To: <CA+tVKpCVNKN0p1rpTWd2eXG=h38wzDa1RzoaVjVX_J31MjDsag@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown@cornell.edu - Thu Apr 26 13:05:40 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

